Ejemplo n.º 1
0
 @Override
 public void initLayout(Bundle paramBundle) {
   setContentView(R.layout.bind_ipp_layout);
   ViewUtils.inject(this);
   CHUtils.addUnderlineTextView(tvWhatIpp);
   CHUtils.addUnderlineTextView(tvForgetPwd);
   CHUtils.addUnderlineTextView(tvNoIpp);
 }
Ejemplo n.º 2
0
 private void initView() {
   bitmapUtilsPic = new BitmapUtils(PindanDetailActivity.this);
   bitmapUtilsPic.configDefaultLoadingImage(R.drawable.picture);
   bitmapUtilsPic.configDefaultLoadFailedImage(R.drawable.picture);
   bitmapUtilsPic.configDefaultBitmapConfig(Bitmap.Config.RGB_565);
   detail_go_pindan_btn = (Button) findViewById(R.id.detail_go_pindan_btn);
   allDetailContent = (ScrollView) findViewById(R.id.scroll_content);
   pindanTitle = (TextView) findViewById(R.id.pindan_title);
   pindanContent = (TextView) findViewById(R.id.pindan_content);
   content_all = (RelativeLayout) findViewById(R.id.content_all);
   detail_go_pindan_btn.setOnClickListener(this);
   exit_button = (ImageView) findViewById(R.id.exit_button);
   super.exitButtonClick(exit_button);
   //
   pagerLayout = (LinearLayout) findViewById(R.id.pagerLayout);
   pagerImage = (ViewPager) findViewById(R.id.pagerImage);
   // Gallery显示左右滑动的图片
   frame_gallery = (LinearLayout) findViewById(R.id.frame_gallery);
   frame_gallery.setLayoutParams(
       new LinearLayout.LayoutParams(CHUtils.getScreenWidth(getBaseContext()), 500));
   frame_dian = (LinearLayout) findViewById(R.id.frame_dian);
   gallery = (CustomGallery) findViewById(R.id.gallery);
   // 初始化点击查看大图的动画
   animationsmall_big = AnimationUtils.loadAnimation(this, R.anim.scalesamall_big);
   animationbig_small = AnimationUtils.loadAnimation(this, R.anim.scalesbig_small);
 }
Ejemplo n.º 3
0
 public void initDownloaderDir() {
   File folder = new File(CHUtils.getDiskCacheDir(getBaseContext(), DOWNLOAD_FOLDER_NAME));
   if (!folder.exists() || !folder.isDirectory()) {
     folder.mkdirs();
   }
 }