android.widget.GridView.getVisibility()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(170)

本文整理了Java中android.widget.GridView.getVisibility()方法的一些代码示例,展示了GridView.getVisibility()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GridView.getVisibility()方法的具体详情如下:
包路径:android.widget.GridView
类名称:GridView
方法名:getVisibility

GridView.getVisibility介绍

暂无

代码示例

代码示例来源:origin: michael-rapp/AndroidBottomSheet

/**
 * Returns the grid view, which is contained by the bottom sheet.
 *
 * @return The grid view, which is contained by the bottom sheet, as an instance of the class
 * {@link GridView} or null, if the bottom sheet does not show any items or has not been shown
 * yet
 */
public final GridView getGridView() {
  return (gridView != null && gridView.getVisibility() == View.VISIBLE) ? gridView : null;
}

代码示例来源:origin: AppLozic/Applozic-Android-SDK

public void hideMultimediaOptionGrid() {
  if (multimediaPopupGrid.getVisibility() == View.VISIBLE) {
    multimediaPopupGrid.setVisibility(View.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: nileshpambhar/MultiPhotoPicker

@Override
public boolean onOptionsItemSelected(MenuItem item) {
  if (item.getItemId() == R.id.btnSort) {
    if (this.gridViewListAlbum.getVisibility() == View.GONE) {
      Log.d("tag", "1");
      showDialogSortAlbum();
    } else {
      showDialogSortListAlbum();
      Log.d("tag", "2");
    }
  }
  else if(item.getItemId()==android.R.id.home)
  {
    onBackPressed();
  }
  return super.onOptionsItemSelected(item);
}

代码示例来源:origin: MoMoWait/LeanbackLauncher

public boolean onKeyDown(int keyCode, KeyEvent event) {
  Log.i(TAG, "onKeyDown");
  if( mAllAppGridView.getVisibility() == View.VISIBLE){
    if(keyCode == KeyEvent.KEYCODE_BACK){
      mAllAppGridView.setVisibility(View.GONE);

代码示例来源:origin: AppLozic/Applozic-Android-SDK

if (conversationFragment != null && conversationFragment.isVisible() && (conversationFragment.multimediaPopupGrid.getVisibility() == View.VISIBLE)) {
  conversationFragment.hideMultimediaOptionGrid();
  return;

相关文章

GridView类方法