コード例 #1
0
 private void setViewsVisiable(int visibility) {
   mGallery.setVisibility(visibility);
   mListViewLayout.setVisibility(visibility);
   mGalleryLayout.setVisibility(visibility);
   mTvLeft.setVisibility(visibility);
   mTvRight.setVisibility(visibility);
   mListCover.setVisibility(visibility);
 }
コード例 #2
0
 private void init() {
   // 判断照片的数量,根据数量选择控件显示,1张图片用ImageView显示,多张用Gallery显示
   if (mKXApplication.mAlbumList.size() > 1) {
     mDisplaySingle.setVisibility(View.GONE);
     mDisplay.setVisibility(View.VISIBLE);
     mCurrentPosition = 0;
     mAdapter = new GalleryAdapter();
     mDisplay.setAdapter(mAdapter);
     mDisplay.setSelection(mCurrentPosition);
   } else if (mKXApplication.mAlbumList.size() == 1) {
     mDisplaySingle.setVisibility(View.VISIBLE);
     mDisplay.setVisibility(View.GONE);
     mCurrentPosition = 0;
     mCurrentPath = mKXApplication.mAlbumList.get(mCurrentPosition).get("image_path");
     mDisplaySingle.setImageBitmap(mKXApplication.getPhoneAlbum(mCurrentPath));
   }
   // 获取地理位置数据
   getLocation();
   // 显示默认地理位置、相册
   mLocation.setText(mKXApplication.mMyLocationResults.get(mLocationPosition).getName());
   mAlbum.setText(mAlbums[mAlbumPosition]);
 }
コード例 #3
0
ファイル: InventarActivity.java プロジェクト: Azigar/Client
 // показываю все элементы активити
 static void EnableAll() {
   imgAmulet.setVisibility(View.VISIBLE);
   imgGloves.setVisibility(View.VISIBLE);
   imgRightRing.setVisibility(View.VISIBLE);
   imgLeftRing.setVisibility(View.VISIBLE);
   imgHelmet.setVisibility(View.VISIBLE);
   imgArmor.setVisibility(View.VISIBLE);
   imgBoots.setVisibility(View.VISIBLE);
   imgRightHand.setVisibility(View.VISIBLE);
   imgLeftHand.setVisibility(View.VISIBLE);
   invetarLayour.setVisibility(View.VISIBLE);
   gallery.setVisibility(View.VISIBLE);
   info.setVisibility(View.VISIBLE);
   txtSizeInventar.setVisibility(View.VISIBLE);
 }
コード例 #4
0
ファイル: InventarActivity.java プロジェクト: Azigar/Client
 // прячу все элементы
 static void DisableAll() {
   imgAmulet.setVisibility(View.GONE);
   imgGloves.setVisibility(View.GONE);
   imgRightRing.setVisibility(View.GONE);
   imgLeftRing.setVisibility(View.GONE);
   imgHelmet.setVisibility(View.GONE);
   imgArmor.setVisibility(View.GONE);
   imgBoots.setVisibility(View.GONE);
   imgRightHand.setVisibility(View.GONE);
   imgLeftHand.setVisibility(View.GONE);
   invetarLayour.setVisibility(View.GONE);
   gallery.setVisibility(View.GONE);
   info.setVisibility(View.GONE);
   btnShoot.setVisibility(View.GONE);
   btnWear.setVisibility(View.GONE);
   btnThrow.setVisibility(View.GONE);
   txtSizeInventar.setVisibility(View.GONE);
 }