private void setViewsVisiable(int visibility) {
   mGallery.setVisibility(visibility);
   mListViewLayout.setVisibility(visibility);
   mGalleryLayout.setVisibility(visibility);
   mTvLeft.setVisibility(visibility);
   mTvRight.setVisibility(visibility);
   mListCover.setVisibility(visibility);
 }
 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]);
 }
Exemple #3
0
 // показываю все элементы активити
 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);
 }
Exemple #4
0
 // прячу все элементы
 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);
 }