Java Code Examples for android.widget.HorizontalScrollView#setVisibility()

The following examples show how to use android.widget.HorizontalScrollView#setVisibility() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: EditPage.java    From BigApp_Discuz_Android with Apache License 2.0 6 votes vote down vote up
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);
	}

}
 
Example 2
Source File: EditPage.java    From BigApp_WordPress_Android with Apache License 2.0 6 votes vote down vote up
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);
	}

}