13Poker by gametower unlimited gems v0.4版本的 MD5 值为:51324fc0f195c34821074948ab266846
以下内容为反编译后的 FirstStepController.java 源代码,内容仅作参考
package com.adeco.adsdk.app;
import android.graphics.Color;
import android.graphics.Typeface;
import android.text.Html;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.RelativeLayout;
import com.adeco.adsdk.res.ResourceHelper;
public class FirstStepController extends StepController {
private CheckBox checkbox;
public FirstStepController(InstallActivity activity) {
super(activity);
}
@Override
public void init() {
super.init();
this.checkbox = new CheckBox(this.activity);
this.checkbox.setText("Agree");
this.checkbox.setTextSize(14.0f);
this.checkbox.setTextColor(Color.parseColor("#3a4551"));
this.checkbox.setShadowLayer(1.0f, 0.0f, ResourceHelper.px(this.activity, 1.0f), -1);
this.checkbox.setButtonDrawable(ResourceHelper.getCheckboxDrawable(this.activity));
RelativeLayout.LayoutParams lparams = new RelativeLayout.LayoutParams(-2, -2);
lparams.addRule(1, InstallActivityViews.ID_UNZIP_VIEW);
lparams.addRule(8, InstallActivityViews.ID_UNZIP_VIEW);
this.checkbox.setLayoutParams(lparams);
this.checkbox.setTypeface(Typeface.DEFAULT_BOLD);
this.checkbox.setChecked(AdPreferences.get(this.activity).getTermsAccepted());
this.checkbox.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton arg0, boolean checked) {
AdPreferences.get(FirstStepController.this.activity).setTermsAccepted(checked);
if (FirstStepController.this.listener != null) {
FirstStepController.this.listener.onStateChanged(FirstStepController.this);
}
}
});
this.activity.findViewById(InstallActivityViews.ID_BANNER).setVisibility(8);
this.subheader.setText(Html.fromHtml("Please read carefully, by clicking Next you are confirming our Privacy policy & Advertising terms. For more information please visit Adeco Systems <a href=\"http://adecosystems.com/policy/sdk/terms/\">Privacy Policy & Advertising Terms</a>"));
}
@Override
public void destroy() {
super.destroy();
this.activity.findViewById(InstallActivityViews.ID_BANNER).setVisibility(0);
}
@Override
public boolean canGoNext() {
return true;
}
}