package com.hjx.personalcenter.activity; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.ImageView; import android.widget.TextView; import com.hjx.personalcenter.R; import com.hjx.personalcenter.util.GetDevicesUtil; /**确认保卡信息 * Created by h on 2017/8/11. */ public class ElectronicCardInfoOKActivity extends Activity implements View.OnClickListener { private Button btn_finish; private ImageView iv_last_step; private TextView usename,deviceModel,customer_address,mac_adress,shoptime,deviceNumber,shopadress,phone,tlePhone; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_ok_cardinfo); initView(); initData(); initLister(); } private void initView() { btn_finish = (Button) findViewById(R.id.btn_finish); usename = (TextView) findViewById(R.id.iv_card_username); deviceModel = (TextView) findViewById(R.id.tv_card_deviceModel); customer_address = (TextView) findViewById(R.id.tv_card_adress); mac_adress = (TextView) findViewById(R.id.tv_card_mac); shoptime = (TextView) findViewById(R.id.tv_card_time); deviceNumber = (TextView) findViewById(R.id.tv_card_deviceNumber); shopadress = (TextView) findViewById(R.id.tv_card_shopAdress); phone = (TextView) findViewById(R.id.tv_card_phone); tlePhone = (TextView) findViewById(R.id.tv_card_tleNember); } private void initData() { //获取设备信息 deviceModel.setText(GetDevicesUtil.getDevicesInfo(this).getDeviceModel()); deviceNumber.setText(GetDevicesUtil.getDevicesInfo(this).getDeviceNumber()); mac_adress.setText(GetDevicesUtil.getDevicesInfo(this).getMac()); //获取保卡信息 } private void initLister() { btn_finish.setOnClickListener(this); } @Override public void onClick(View v) { switch (v.getId()){ case R.id.btn_finish: Intent intent = new Intent(); intent.setClass(ElectronicCardInfoOKActivity.this,TheStartPageActivity.class); startActivity(intent); overridePendingTransition(R.anim.rightin, R.anim.rightout); break; } } }