예제 #1
0
  /** Called when activity is created. */
  @SuppressLint("InlinedApi")
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    LanguageUtils.setLanguageConfiguration(getResources());
    super.onCreate(savedInstanceState);

    getWindow()
        .setFlags(
            WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
    getWindow().requestFeature(Window.FEATURE_NO_TITLE);

    setContentView(R.layout.help_view);
    mViewPager = (ViewPager) findViewById(R.id.view_pager);
    FragmentPagerAdapter pageAdapter = getPageAdapter();
    mViewPager.setAdapter(pageAdapter);

    mIndicator = (UnderlinePageIndicator) findViewById(R.id.underline_indicator);
    mIndicator.setViewPager(mViewPager);
    mIndicator.setFades(false);

    mCloseButton = (ImageButton) findViewById(R.id.closeButton);
    mCloseButton.setOnClickListener(
        new View.OnClickListener() {
          @Override
          public void onClick(View v) {
            finish();
          }
        });
  }
예제 #2
0
 @Override
 protected void onResume() {
   super.onResume();
   LanguageUtils.setLanguageConfiguration(getResources());
 }