本文整理汇总了Java中cn.smssdk.gui.layout.IdentifyNumPageLayout类的典型用法代码示例。如果您正苦于以下问题:Java IdentifyNumPageLayout类的具体用法?Java IdentifyNumPageLayout怎么用?Java IdentifyNumPageLayout使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IdentifyNumPageLayout类属于cn.smssdk.gui.layout包,在下文中一共展示了IdentifyNumPageLayout类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onCreate
import cn.smssdk.gui.layout.IdentifyNumPageLayout; //导入依赖的package包/类
public void onCreate() {
IdentifyNumPageLayout page = new IdentifyNumPageLayout(activity);
LinearLayout layout = page.getLayout();
if (layout != null) {
activity.setContentView(layout);
activity.findViewById(ResHelper.getIdRes(activity, "ll_back")).setOnClickListener(this);
btnSubmit = (Button) activity.findViewById(ResHelper.getIdRes(activity, "btn_submit"));
btnSubmit.setOnClickListener(this);
btnSubmit.setEnabled(false);
tvTitle = (TextView) activity.findViewById(ResHelper.getIdRes(activity, "tv_title"));
int resId = ResHelper.getStringRes(activity, "smssdk_write_identify_code");
if (resId > 0) {
tvTitle.setText(resId);
}
etIdentifyNum = (EditText) activity.findViewById(ResHelper.getIdRes(activity, "et_put_identify"));
tvIdentifyNotify = (TextView) activity.findViewById(ResHelper.getIdRes(activity, "tv_identify_notify"));
resId = ResHelper.getStringRes(activity, "smssdk_send_mobile_detail");
if (resId > 0) {
String text = getContext().getString(resId);
tvIdentifyNotify.setText(Html.fromHtml(text));
}
tvPhone = (TextView) activity.findViewById(ResHelper.getIdRes(activity, "tv_phone"));
tvPhone.setText(formatedPhone);
tvUnreceiveIdentify = (TextView) activity.findViewById(ResHelper.getIdRes(activity, "tv_unreceive_identify"));
resId = ResHelper.getStringRes(activity, "smssdk_receive_msg");
if (resId > 0) {
String unReceive = getContext().getString(resId, time);
tvUnreceiveIdentify.setText(Html.fromHtml(unReceive));
}
tvUnreceiveIdentify.setOnClickListener(this);
tvUnreceiveIdentify.setEnabled(false);
ivClear = (ImageView) activity.findViewById(ResHelper.getIdRes(activity, "iv_clear"));
ivClear.setOnClickListener(this);
countDown();
}
}
示例2: onCreate
import cn.smssdk.gui.layout.IdentifyNumPageLayout; //导入依赖的package包/类
public void onCreate() {
IdentifyNumPageLayout page = new IdentifyNumPageLayout(activity);
LinearLayout layout = page.getLayout();
if (layout != null) {
activity.setContentView(layout);
activity.findViewById(Res.id.ll_back).setOnClickListener(this);
btnSubmit = (Button) activity.findViewById(Res.id.btn_submit);
btnSubmit.setOnClickListener(this);
btnSubmit.setEnabled(false);
tvTitle = (TextView) activity.findViewById(Res.id.tv_title);
int resId = getStringRes(activity, "smssdk_write_identify_code");
if (resId > 0) {
tvTitle.setText(resId);
}
etIdentifyNum = (EditText) activity.findViewById(Res.id.et_put_identify);
tvIdentifyNotify = (TextView) activity.findViewById(Res.id.tv_identify_notify);
resId = getStringRes(activity, "smssdk_send_mobile_detail");
if (resId > 0) {
String text = getContext().getString(resId);
tvIdentifyNotify.setText(Html.fromHtml(text));
}
tvPhone = (TextView) activity.findViewById(Res.id.tv_phone);
tvPhone.setText(formatedPhone);
tvUnreceiveIdentify = (TextView) activity.findViewById(Res.id.tv_unreceive_identify);
resId = getStringRes(activity, "smssdk_receive_msg");
if (resId > 0) {
String unReceive = getContext().getString(resId, time);
tvUnreceiveIdentify.setText(Html.fromHtml(unReceive));
}
tvUnreceiveIdentify.setOnClickListener(this);
tvUnreceiveIdentify.setEnabled(false);
ivClear = (ImageView) activity.findViewById(Res.id.iv_clear);
ivClear.setOnClickListener(this);
countDown();
}
}