当前位置: 首页>>代码示例>>Java>>正文


Java IdentifyNumPageLayout.getLayout方法代码示例

本文整理汇总了Java中cn.smssdk.gui.layout.IdentifyNumPageLayout.getLayout方法的典型用法代码示例。如果您正苦于以下问题:Java IdentifyNumPageLayout.getLayout方法的具体用法?Java IdentifyNumPageLayout.getLayout怎么用?Java IdentifyNumPageLayout.getLayout使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在cn.smssdk.gui.layout.IdentifyNumPageLayout的用法示例。


在下文中一共展示了IdentifyNumPageLayout.getLayout方法的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();
	}

}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:47,代码来源:SmartVerifyPage.java

示例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();
	}

}
 
开发者ID:zzlnewair,项目名称:Myshop,代码行数:47,代码来源:SmartVerifyPage.java


注:本文中的cn.smssdk.gui.layout.IdentifyNumPageLayout.getLayout方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。