本文整理了Java中android.widget.GridView.setVisibility()
方法的一些代码示例,展示了GridView.setVisibility()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GridView.setVisibility()
方法的具体详情如下:
包路径:android.widget.GridView
类名称:GridView
方法名:setVisibility
暂无
代码示例来源:origin: TommyLemon/APIJSON
gvMomentView.setVisibility(pictureNum <= 0 ? View.GONE : View.VISIBLE);
if (pictureNum <= 0) {
Log.i(TAG, "setList pictureNum <= 0 >> return;");
代码示例来源:origin: AppLozic/Applozic-Android-SDK
@Override
public void onClick(View v) {
multimediaPopupGrid.setVisibility(View.GONE);
}
});
代码示例来源:origin: darsh2/MultipleImageSelect
@Override
protected void hideViews() {
progressBar.setVisibility(View.INVISIBLE);
gridView.setVisibility(View.INVISIBLE);
}
}
代码示例来源:origin: darsh2/MultipleImageSelect
@Override
protected void hideViews() {
progressBar.setVisibility(View.INVISIBLE);
gridView.setVisibility(View.INVISIBLE);
}
}
代码示例来源:origin: andforce/iBeebo
@Override
public void onKeyBoardHide() {
DevLog.printLog("keyboardLayout", "onKeyBoardHide");
if (isSmileClicked) {
mNinePicGridView.setVisibility(View.GONE);
showViewWithAnim(mSmileyPicker);
} else {
mNinePicGridView.setVisibility(View.VISIBLE);
}
}
});
代码示例来源:origin: matt-allen/repay-android
@Override
protected void onPreExecute() {
mGrid.setAdapter(null);
mGrid.setVisibility(ListView.GONE);
mEmptyState.setVisibility(RelativeLayout.GONE);
mProgressBar.setVisibility(ProgressBar.VISIBLE);
}
代码示例来源:origin: AppLozic/Applozic-Android-SDK
public void hideMultimediaOptionGrid() {
if (multimediaPopupGrid.getVisibility() == View.VISIBLE) {
multimediaPopupGrid.setVisibility(View.GONE);
}
}
代码示例来源:origin: nileshpambhar/MultiPhotoPicker
public void refreshGridViewAlbum() {
this.albumAdapter = new AlbumAdapter(this, R.layout.piclist_row_album, this.dataAlbum);
this.albumAdapter.setOnItem(this);
this.gridViewAlbum.setAdapter(this.albumAdapter);
this.gridViewAlbum.setVisibility(View.GONE);
this.gridViewAlbum.setVisibility(View.VISIBLE);
}
代码示例来源:origin: nileshpambhar/MultiPhotoPicker
public void refreshGridViewListAlbum() {
this.listAlbumAdapter = new ListAlbumAdapter(this, R.layout.piclist_row_list_album, this.dataListPhoto);
this.listAlbumAdapter.setOnListAlbum(this);
this.gridViewListAlbum.setAdapter(this.listAlbumAdapter);
this.gridViewListAlbum.setVisibility(View.GONE);
this.gridViewListAlbum.setVisibility(View.VISIBLE);
}
代码示例来源:origin: xbmc/Kore
private void noNetworkConnection() {
titleTextView.setText(R.string.no_network_connection);
messageTextView.setText(Html.fromHtml(getString(R.string.wizard_search_no_network_connection)));
messageTextView.setMovementMethod(LinkMovementMethod.getInstance());
progressBar.setVisibility(View.GONE);
hostListGridView.setVisibility(View.GONE);
nextButton.setVisibility(View.GONE);
previousButton.setVisibility(View.VISIBLE);
previousButton.setText(R.string.search_again);
previousButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
startSearching();
}
});
}
代码示例来源:origin: matt-allen/repay-android
@Override
protected void onPostExecute(ArrayList<Friend> result) {
if (result != null && result.size() > 0) {
mAdapter = new StartFragmentAdapter(getActivity(), mListItem, result);
mGrid.setVisibility(ListView.VISIBLE);
mGrid.setAdapter(mAdapter);
} else {
mEmptyState.setVisibility(RelativeLayout.VISIBLE);
}
mProgressBar.setVisibility(ProgressBar.GONE);
}
}
代码示例来源:origin: nileshpambhar/MultiPhotoPicker
public void onBackPressed() {
if (this.gridViewListAlbum.getVisibility() == View.VISIBLE) {
this.dataListPhoto.clear();
this.listAlbumAdapter.notifyDataSetChanged();
this.gridViewListAlbum.setVisibility(View.GONE);
// this.txtTitle.setText(getResources().getString(R.string.text_title_activity_album));
getSupportActionBar().setTitle(getResources().getString(R.string.text_title_activity_album));
return;
}
super.onBackPressed();
}
代码示例来源:origin: matt-allen/repay-android
public void updateList() {
if (((MainActivity) getActivity()).getFriends() == null || ((MainActivity) getActivity()).getFriends().size() == 0) {
mGrid.setVisibility(View.GONE);
mEmptyState.setVisibility(View.VISIBLE);
mProgressBar.setVisibility(ProgressBar.GONE);
} else {
mGrid.setVisibility(View.VISIBLE);
mEmptyState.setVisibility(View.GONE);
mProgressBar.setVisibility(ProgressBar.GONE);
mAdapter = new StartFragmentAdapter(getActivity(), mListItem, ((MainActivity) getActivity()).getFriends());
mGrid.setAdapter(mAdapter);
}
}
代码示例来源:origin: nileshpambhar/MultiPhotoPicker
void showListAlbum(String pathAlbum) {
getSupportActionBar().setTitle(new File(pathAlbum).getName());
this.listAlbumAdapter = new ListAlbumAdapter(this, R.layout.piclist_row_list_album, this.dataListPhoto);
this.listAlbumAdapter.setOnListAlbum(this);
this.gridViewListAlbum.setAdapter(this.listAlbumAdapter);
this.gridViewListAlbum.setVisibility(View.VISIBLE);
new GetItemListAlbum(pathAlbum).execute(new Void[0]);
}
代码示例来源:origin: AppLozic/Applozic-Android-SDK
@Override
public void onFocusChange(View v, boolean hasFocus) {
if (hasFocus) {
if (typingStarted) {
if (contact != null || channel != null && !Channel.GroupType.OPEN.getValue().equals(channel.getType()) || contact != null) {
Intent intent = new Intent(getActivity(), ApplozicMqttIntentService.class);
intent.putExtra(ApplozicMqttIntentService.CHANNEL, channel);
intent.putExtra(ApplozicMqttIntentService.CONTACT, contact);
intent.putExtra(ApplozicMqttIntentService.TYPING, typingStarted);
ApplozicMqttIntentService.enqueueWork(getActivity(), intent);
}
}
emoticonsFrameLayout.setVisibility(View.GONE);
multimediaPopupGrid.setVisibility(View.GONE);
}
}
代码示例来源:origin: andforce/iBeebo
@Override
public void onKeyBoardShow(int height) {
DevLog.printLog("keyboardLayout", "onKeyBoardShow: " + height);
mNinePicGridView.setVisibility(View.GONE);
if (isSmileClicked) {
RelativeLayout.LayoutParams params = (RelativeLayout.LayoutParams) mContentRelativeLayout.getLayoutParams();
params.height = RelativeLayout.LayoutParams.MATCH_PARENT;
mContentRelativeLayout.requestLayout();
}
}
代码示例来源:origin: AppLozic/Applozic-Android-SDK
void processAttachButtonClick(View view) {
MobicomMultimediaPopupAdapter mobicomMultimediaPopupAdapter = new MobicomMultimediaPopupAdapter(getActivity(), attachmentIcon, attachmentText);
mobicomMultimediaPopupAdapter.setAlCustomizationSettings(alCustomizationSettings);
multimediaPopupGrid.setAdapter(mobicomMultimediaPopupAdapter);
int noOfColumn = (attachmentKey.size() == ATTCHMENT_OPTIONS) ? 3 : attachmentKey.size();
multimediaPopupGrid.setNumColumns(noOfColumn);
multimediaPopupGrid.setVisibility(View.VISIBLE);
if (inputMethodManager.isActive()) {
inputMethodManager.hideSoftInputFromWindow(view.getWindowToken(), 0);
}
MultimediaOptionsGridView itemClickHandler = new MultimediaOptionsGridView(getActivity(), multimediaPopupGrid);
itemClickHandler.setMultimediaClickListener(attachmentKey);
}
代码示例来源:origin: lytsing/weibo
private void showFace() {
mAq.id(R.id.ib_face_keyboard).image(R.drawable.btn_insert_keyboard).tag(1);
mGridView.setVisibility(View.VISIBLE);
}
代码示例来源:origin: lytsing/weibo
private void hideFace() {
mAq.id(R.id.ib_face_keyboard).image(R.drawable.btn_insert_face).tag(null);
mGridView.setVisibility(View.GONE);
}
代码示例来源:origin: SimonMarquis/Android-PreferencesManager
@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
if (requestCode == CODE_EDIT_FILE && resultCode == ActionBarActivity.RESULT_OK) {
loadingView.setVisibility(View.VISIBLE);
gridView.setVisibility(View.GONE);
if (getActivity() != null) {
Animation fadeInAnim = AnimationUtils.loadAnimation(getActivity(), android.R.anim.fade_in);
if (fadeInAnim != null) {
loadingView.startAnimation(fadeInAnim);
}
Animation fadeOutAnim = AnimationUtils.loadAnimation(getActivity(), android.R.anim.fade_out);
if (fadeOutAnim != null) {
gridView.startAnimation(fadeOutAnim);
}
}
launchTask();
}
super.onActivityResult(requestCode, resultCode, data);
}
内容来源于网络,如有侵权,请联系作者删除!