Exemplo n.º 1
0
 @Override
 protected void onCreate(Bundle savedState) {
   super.onCreate(savedState);
   setContentView(R.layout.activity_setting_industry);
   initView();
   loadData();
 }
Exemplo n.º 2
0
  @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();
  }
Exemplo n.º 3
0
 @Override
 public void onLeftButtonClick() {
   super.onBackPressed();
 }
Exemplo n.º 4
0
 @Override
 public void onRightButtonClick() {
   super.onRightButtonClick();
   updateData();
 }