コード例 #1
0
  private void initView() {
    View titleContainer = findViewById(R.id.userinfo_detail_title);
    mTitle = new Title(titleContainer);
    mTitle.setContent(getString(R.string.detail_detail_info));
    mTitle.setOnBackListener(
        new Action<View>() {
          @Override
          public void onExecute(View arg) {
            finish();
          }
        });

    initBasicUserInfo();
    initReplyBlock();
    initPagerView();
    initBottomView();

    ViewPager pager = (ViewPager) findViewById(R.id.detail_viewpager);
    mViewPagerProxy = new ViewPagerProxy(pager);

    mMoveableView = (MoveableView) findViewById(R.id.moveable_view);
    mMoveableView.setonPagerListener(
        new Action<Integer>() {
          @Override
          public void onExecute(Integer pager) {
            updateTextBasedOnPager(pager);
          }
        });
    mViewPagerProxy.setOnPageChangeListener(mMoveableView);
  }
コード例 #2
0
 private void initTile() {
   View v = findViewById(R.id.setting_about_title);
   mTitle = new Title(v);
   mTitle.setContent(getString(R.string.setting_about_account_text));
 }