android.widget.HorizontalScrollView.setVisibility()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(4.8k)|赞(0)|评价(0)|浏览(129)

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

HorizontalScrollView.setVisibility介绍

暂无

代码示例

代码示例来源:origin: wangdan/AisenWeiBo

scrollPicContainer.setVisibility(View.VISIBLE);
  scrollPicContainer.setVisibility(View.GONE);
layImageCover.setVisibility(View.GONE);
picShow.setVisibility(View.GONE);

代码示例来源:origin: LLhon/Android-Video-Editor

@OnClick({R.id.ll_trim_tab, R.id.ll_effect_tab})
public void onClick(View v) {
  switch (v.getId()) {
    case R.id.ll_trim_tab: //裁切tab
      mViewTrimIndicator.setVisibility(View.VISIBLE);
      mViewEffectIndicator.setVisibility(View.GONE);
      mLlTrimContainer.setVisibility(View.VISIBLE);
      mHsvEffect.setVisibility(View.GONE);
      break;
    case R.id.ll_effect_tab: //滤镜tab
      mViewTrimIndicator.setVisibility(View.GONE);
      mViewEffectIndicator.setVisibility(View.VISIBLE);
      mLlTrimContainer.setVisibility(View.GONE);
      mHsvEffect.setVisibility(View.VISIBLE);
      break;
  }
}

代码示例来源:origin: Calsign/APDE

public void hideCharInsertsNoAnimation() {
  TextView messageView = (TextView) findViewById(R.id.message);
  HorizontalScrollView charInsertTray = (HorizontalScrollView) findViewById(R.id.char_insert_tray);
  
  toggleCharInserts.setImageResource(errorMessage ? R.drawable.ic_caret_left_white : R.drawable.ic_caret_left_black);
  messageView.setVisibility(View.VISIBLE);
  charInsertTray.setVisibility(View.GONE);
  
  charInserts = false;
}

代码示例来源:origin: googlecreativelab/tunnelvision

@OnClick(R.id.filterLayout)
protected void onClickGUIToggle() {
  int nextVisibility = mHorizontalScrollView.getVisibility() == View.VISIBLE ? View.GONE
      : View.VISIBLE;
  mCollapseButton.setBackgroundResource(
      nextVisibility == View.VISIBLE ? R.drawable.collapse_arrow
          : R.drawable.expand_arrow);
  mHorizontalScrollView.setVisibility(nextVisibility);
}

代码示例来源:origin: com.actionbarsherlock/actionbarsherlock

@Override
public void setVisibility(int visibility) {
  if (mProxy != null) {
    if (visibility == GONE) {
      clearAnimation();
    } else if (visibility == VISIBLE) {
      setAnimation(mProxy);
    }
  }
  super.setVisibility(visibility);
}

代码示例来源:origin: com.willowtreeapps/oak-demos

@Override
public void setVisibility(int visibility) {
  if (mProxy != null) {
    if (visibility == GONE) {
      clearAnimation();
    } else if (visibility == VISIBLE) {
      setAnimation(mProxy);
    }
  }
  super.setVisibility(visibility);
}

代码示例来源:origin: fengmaolian/LoginAndShare

private void initImageListView() {
  final HorizontalScrollView hScrollView = (HorizontalScrollView) findViewByResName("hScrollView");
  ImageListResultsCallback callback = new ImageListResultsCallback() {
    @Override
    public void onFinish(ArrayList<ImageInfo> results) {
      if(results == null)
        return;
      LinearLayout layout = (LinearLayout) findViewByResName("imagesLinearLayout");
      for(ImageInfo imageInfo : results) {
        if(imageInfo.bitmap == null)
          continue;
        layout.addView(makeImageItemView(imageInfo));
      }
    }
  };
  if(!initImageList(callback)) {
    hScrollView.setVisibility(View.GONE);
  }
}

代码示例来源:origin: vanilla-music/vanilla

mLimiterScroller.setVisibility(View.VISIBLE);
} else {
  mLimiterScroller.setVisibility(View.GONE);

代码示例来源:origin: WiInputMethod/VE

@Override
public void setVisibility(int visibility) {
  if (direction == horizontal) {
    horizontalScrollView.setVisibility(visibility);
  } else {
    scrollView.setVisibility(visibility);
  }
  layoutforWrapButtons.setVisibility(visibility);
  for (QuickButton quickButton : buttonList) {
    quickButton.clearAnimation();
    quickButton.setVisibility(visibility);
  }
  updateViewLayout();
}

代码示例来源:origin: vickychijwani/udacity-p1-p2-popular-movies

@Subscribe
public void onMovieLoadedEvent(MovieLoadedEvent event) {
  mMovie = event.movie;
  updateFavoriteBtn(mInitialMovieLoaded ? 0 : mAnimActivityStartDelay);
  List<Review> reviews = mMovie.getReviews();
  List<Video> trailers = Movie.getTrailers(mMovie);
  if (BuildConfig.DEBUG) {
    Log.d(TAG, String.format("%1$s: fav=%2$s reviews=%3$d trailers=%4$d",
        mMovie.getTitle(), String.valueOf(mMovie.isFavorite()),
        reviews.size(), trailers.size()));
  }
  boolean hasTrailers = !trailers.isEmpty();
  mToolbar.getMenu().findItem(R.id.share_trailer).setVisible(hasTrailers);
  mTrailersHeader.setVisibility(hasTrailers ? View.VISIBLE : View.GONE);
  mTrailersScrollView.setVisibility(hasTrailers ? View.VISIBLE : View.GONE);
  if (hasTrailers) {
    addTrailers(trailers);
  }
  boolean hasReviews = !reviews.isEmpty();
  mReviewsHeader.setVisibility(hasReviews ? View.VISIBLE : View.GONE);
  mReviewsView.setVisibility(hasReviews ? View.VISIBLE : View.GONE);
  if (hasReviews) {
    addReviews(reviews);
  }
  mInitialMovieLoaded = true;
}

代码示例来源:origin: quaap/LaunchTime

mQuickRow.getScroller().setVisibility(View.GONE);
mQuickRow.getScroller().setVisibility(View.VISIBLE);

代码示例来源:origin: firelotus/Meteorite

hsv.setVisibility(View.GONE);
thirdrow.setVisibility(View.GONE);
spinnertable.setVisibility(View.GONE);
submitQuery.setVisibility(View.GONE);
customQuery.setVisibility(View.VISIBLE);
hsv.setVisibility(View.VISIBLE);

相关文章

HorizontalScrollView类方法