Exemplo n.º 1
0
 @Override
 void bindEvent() {
   mStartBtn.setOnClickListener(
       new View.OnClickListener() {
         @Override
         public void onClick(View view) {
           startAnimActivity(LoginActivity.class);
           CustomApplication.getInstance().getSpUtil().setFirstStart(false);
           finish();
         }
       });
   mScrollLayout.SetOnViewChangeListener(this);
 }
Exemplo n.º 2
0
 @Override
 void initView() {
   mCount = mScrollLayout.getChildCount();
   miPointImgs = new ImageView[mCount];
   for (int i = 0; i < mCount; i++) {
     miPointImgs[i] = (ImageView) mPointLayout.getChildAt(i);
     miPointImgs[i].setEnabled(true);
     miPointImgs[i].setTag(i);
   }
   mCurrentItem = 0;
   miPointImgs[mCurrentItem].setEnabled(false);
   bindEvent();
 }