@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_CUSTOM_TITLE); setContentView(R.layout.activity_retrieve_password_authcode); getWindow() .setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.deflaut_titlebar); // titlebar为自己标题栏的布局 CommonUtils.addActivity(this); context = getApplicationContext(); initView(); }
@Override public void onClickListener(View view) { switch (view.getId()) { case R.id.callBtn: CommonUtils.makeingCalls(context, getResources().getString(R.string.Service_phone)); break; case R.id.retrieve_get_authcode_button: doGetAuthcode(); break; case R.id.retrieve_next_button: doGotoSetPassword(); break; default: break; } }