Esempio n. 1
0
 @Override
 protected void onCreate(Bundle savedState) {
   super.onCreate(savedState);
   setContentView(R.layout.activity_setting_industry);
   initView();
   loadData();
 }
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    /*记录操作 0902*/
    OperaEventUtils.recordOperation(OperaEvent.OPERA_WATCH_NOTIFICATION);

    setContentView(R.layout.notification_detail_layout);
    DisplayMetrics outMetrics = new DisplayMetrics();
    getWindowManager().getDefaultDisplay().getMetrics(outMetrics);
    imageWidth = outMetrics.widthPixels;
    imageHeight = outMetrics.heightPixels;
    double scale = (double) imageHeight / imageWidth;
    imageWidth -= getResources().getDimensionPixelSize(R.dimen.notification_detail_padding);
    imageHeight = (int) (imageWidth * scale);
    initView();
  }
 @Override
 public void onLeftButtonClick() {
   super.onBackPressed();
 }
Esempio n. 4
0
 @Override
 public void onRightButtonClick() {
   super.onRightButtonClick();
   updateData();
 }