示例#1
0
 @Override
 protected void onResume() {
   super.onResume();
   int actionBarSize = UIUtils.calculateActionBarSize(this);
   DrawShadowFrameLayout drawShadowFrameLayout =
       (DrawShadowFrameLayout) findViewById(R.id.main_content);
   if (drawShadowFrameLayout != null) {
     drawShadowFrameLayout.setShadowTopOffset(actionBarSize);
   }
   setContentTopClearance(actionBarSize);
 }
示例#2
0
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_about);
    rootView = findViewById(R.id.about_container);

    TextView body = (TextView) rootView.findViewById(R.id.about_main);
    body.setText(Html.fromHtml(getString(R.string.about_main, BuildConfig.VERSION_NAME)));
    rootView.findViewById(R.id.about_terms).setOnClickListener(mOnClickListener);
    rootView.findViewById(R.id.about_privacy_policy).setOnClickListener(mOnClickListener);
    rootView.findViewById(R.id.about_licenses).setOnClickListener(mOnClickListener);
    rootView.findViewById(R.id.about_eula).setOnClickListener(mOnClickListener);

    overridePendingTransition(0, 0);
  }