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

The following examples show how to use android.widget.SeekBar#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: PDFFragment.java    From PowerFileExplorer with GNU General Public License v3.0 6 votes vote down vote up
private void makeButtonsView() {
	mButtonsView = fragActivity.getLayoutInflater().inflate(R.layout.document_mu_activity, null);
	mFilenameView = (TextView)mButtonsView.findViewById(R.id.docNameText);
	mPageSlider = (SeekBar)mButtonsView.findViewById(R.id.pageSlider);
	mPageNumberView = (TextView)mButtonsView.findViewById(R.id.pageNumber);
	mSearchButton = (ImageButton)mButtonsView.findViewById(R.id.searchButton);
	mOutlineButton = (ImageButton)mButtonsView.findViewById(R.id.outlineButton);
	mTopBarSwitcher = (ViewAnimator)mButtonsView.findViewById(R.id.switcher);
	mSearchBack = (ImageButton)mButtonsView.findViewById(R.id.searchBack);
	mSearchFwd = (ImageButton)mButtonsView.findViewById(R.id.searchForward);
	mSearchClose = (ImageButton)mButtonsView.findViewById(R.id.searchClose);
	mSearchText = (EditText)mButtonsView.findViewById(R.id.searchText);
	mLinkButton = (ImageButton)mButtonsView.findViewById(R.id.linkButton);
	mTopBarSwitcher.setVisibility(View.INVISIBLE);
	mPageNumberView.setVisibility(View.INVISIBLE);

	mPageSlider.setVisibility(View.INVISIBLE);
}
 
Example 2
Source File: DocumentActivity.java    From PowerFileExplorer with GNU General Public License v3.0 6 votes vote down vote up
private void makeButtonsView() {
	mButtonsView = getLayoutInflater().inflate(R.layout.document_mu_activity, null);
	mFilenameView = (TextView)mButtonsView.findViewById(R.id.docNameText);
	mPageSlider = (SeekBar)mButtonsView.findViewById(R.id.pageSlider);
	mPageNumberView = (TextView)mButtonsView.findViewById(R.id.pageNumber);
	mSearchButton = (ImageButton)mButtonsView.findViewById(R.id.searchButton);
	mOutlineButton = (ImageButton)mButtonsView.findViewById(R.id.outlineButton);
	mTopBarSwitcher = (ViewAnimator)mButtonsView.findViewById(R.id.switcher);
	mSearchBack = (ImageButton)mButtonsView.findViewById(R.id.searchBack);
	mSearchFwd = (ImageButton)mButtonsView.findViewById(R.id.searchForward);
	mSearchClose = (ImageButton)mButtonsView.findViewById(R.id.searchClose);
	mSearchText = (EditText)mButtonsView.findViewById(R.id.searchText);
	mLinkButton = (ImageButton)mButtonsView.findViewById(R.id.linkButton);
	mTopBarSwitcher.setVisibility(View.INVISIBLE);
	mPageNumberView.setVisibility(View.INVISIBLE);

	mPageSlider.setVisibility(View.INVISIBLE);
}
 
Example 3
Source File: DocumentActivity.java    From AndroidDocumentViewer with MIT License 6 votes vote down vote up
private void makeButtonsView() {
    mButtonsView = getLayoutInflater().inflate(R.layout.document_activity, null);
    mFilenameView = (TextView) mButtonsView.findViewById(R.id.docNameText);
    mPageSlider = (SeekBar) mButtonsView.findViewById(R.id.pageSlider);
    mPageNumberView = (TextView) mButtonsView.findViewById(R.id.pageNumber);
    mSearchButton = (ImageButton) mButtonsView.findViewById(R.id.searchButton);
    mOutlineButton = (ImageButton) mButtonsView.findViewById(R.id.outlineButton);
    mTopBarSwitcher = (ViewAnimator) mButtonsView.findViewById(R.id.switcher);
    mSearchBack = (ImageButton) mButtonsView.findViewById(R.id.searchBack);
    mSearchFwd = (ImageButton) mButtonsView.findViewById(R.id.searchForward);
    mSearchClose = (ImageButton) mButtonsView.findViewById(R.id.searchClose);
    mSearchText = (EditText) mButtonsView.findViewById(R.id.searchText);
    mButtonsView.findViewById(R.id.ib_go_back).setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            finish();
        }
    });
    mLinkButton = (ImageButton) mButtonsView.findViewById(R.id.linkButton);
    mLinkButton.setVisibility(View.GONE);
    mTopBarSwitcher.setVisibility(View.INVISIBLE);
    mPageNumberView.setVisibility(View.INVISIBLE);

    mPageSlider.setVisibility(View.INVISIBLE);
}
 
Example 4
Source File: DocumentActivity.java    From AndroidMuPDF with Apache License 2.0 6 votes vote down vote up
private void makeButtonsView() {
	mButtonsView = getLayoutInflater().inflate(R.layout.document_activity, null);
	mFilenameView = (TextView)mButtonsView.findViewById(R.id.docNameText);
	mPageSlider = (SeekBar)mButtonsView.findViewById(R.id.pageSlider);
	mPageNumberView = (TextView)mButtonsView.findViewById(R.id.pageNumber);
	mSearchButton = (ImageButton)mButtonsView.findViewById(R.id.searchButton);
	mOutlineButton = (ImageButton)mButtonsView.findViewById(R.id.outlineButton);
	mTopBarSwitcher = (ViewAnimator)mButtonsView.findViewById(R.id.switcher);
	mSearchBack = (ImageButton)mButtonsView.findViewById(R.id.searchBack);
	mSearchFwd = (ImageButton)mButtonsView.findViewById(R.id.searchForward);
	mSearchClose = (ImageButton)mButtonsView.findViewById(R.id.searchClose);
	mSearchText = (EditText)mButtonsView.findViewById(R.id.searchText);
	mLinkButton = (ImageButton)mButtonsView.findViewById(R.id.linkButton);
	mTopBarSwitcher.setVisibility(View.INVISIBLE);
	mPageNumberView.setVisibility(View.INVISIBLE);
	mPageSlider.setVisibility(View.INVISIBLE);
}
 
Example 5
Source File: MuPDFFragment.java    From mupdf-android with GNU Affero General Public License v3.0 6 votes vote down vote up
private void makeButtonsView() {
	mButtonsView = getActivity().getLayoutInflater().inflate(R.layout.buttons,null);
	mFilenameView = (TextView)mButtonsView.findViewById(R.id.docNameText);
	mPageSlider = (SeekBar)mButtonsView.findViewById(R.id.pageSlider);
	mPageNumberView = (TextView)mButtonsView.findViewById(R.id.pageNumber);
	mInfoView = (TextView)mButtonsView.findViewById(R.id.info);
	mSearchButton = (ImageButton)mButtonsView.findViewById(R.id.searchButton);
	mReflowButton = (ImageButton)mButtonsView.findViewById(R.id.reflowButton);
	mOutlineButton = (ImageButton)mButtonsView.findViewById(R.id.outlineButton);
	mAnnotButton = (ImageButton)mButtonsView.findViewById(R.id.editAnnotButton);
	mAnnotTypeText = (TextView)mButtonsView.findViewById(R.id.annotType);
	mTopBarSwitcher = (ViewAnimator)mButtonsView.findViewById(R.id.switcher);
	mSearchBack = (ImageButton)mButtonsView.findViewById(R.id.searchBack);
	mSearchFwd = (ImageButton)mButtonsView.findViewById(R.id.searchForward);
	mSearchText = (EditText)mButtonsView.findViewById(R.id.searchText);
	mLinkButton = (ImageButton)mButtonsView.findViewById(R.id.linkButton);
	mMoreButton = (ImageButton)mButtonsView.findViewById(R.id.moreButton);
	mTopBarSwitcher.setVisibility(View.INVISIBLE);
	mPageNumberView.setVisibility(View.INVISIBLE);
	mInfoView.setVisibility(View.INVISIBLE);
	mPageSlider.setVisibility(View.INVISIBLE);
}
 
Example 6
Source File: MuPDFActivity.java    From mupdf-android with GNU Affero General Public License v3.0 6 votes vote down vote up
private void makeButtonsView() {
	mButtonsView = getLayoutInflater().inflate(R.layout.buttons,null);
	mFilenameView = (TextView)mButtonsView.findViewById(R.id.docNameText);
	mPageSlider = (SeekBar)mButtonsView.findViewById(R.id.pageSlider);
	mPageNumberView = (TextView)mButtonsView.findViewById(R.id.pageNumber);
	mInfoView = (TextView)mButtonsView.findViewById(R.id.info);
	mSearchButton = (ImageButton)mButtonsView.findViewById(R.id.searchButton);
	mReflowButton = (ImageButton)mButtonsView.findViewById(R.id.reflowButton);
	mOutlineButton = (ImageButton)mButtonsView.findViewById(R.id.outlineButton);
	mAnnotButton = (ImageButton)mButtonsView.findViewById(R.id.editAnnotButton);
	mAnnotTypeText = (TextView)mButtonsView.findViewById(R.id.annotType);
	mTopBarSwitcher = (ViewAnimator)mButtonsView.findViewById(R.id.switcher);
	mSearchBack = (ImageButton)mButtonsView.findViewById(R.id.searchBack);
	mSearchFwd = (ImageButton)mButtonsView.findViewById(R.id.searchForward);
	mSearchText = (EditText)mButtonsView.findViewById(R.id.searchText);
	mLinkButton = (ImageButton)mButtonsView.findViewById(R.id.linkButton);
	mMoreButton = (ImageButton)mButtonsView.findViewById(R.id.moreButton);
	mTopBarSwitcher.setVisibility(View.INVISIBLE);
	mPageNumberView.setVisibility(View.INVISIBLE);
	mInfoView.setVisibility(View.INVISIBLE);
	mPageSlider.setVisibility(View.INVISIBLE);
}
 
Example 7
Source File: CameraActivity.java    From Augendiagnose with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Update the focus mode.
 *
 * @param focusMode The new focus mode.
 */
private void setFocusMode(final FocusMode focusMode) {
	mCurrentFocusMode = focusMode;

	SeekBar seekbarCameraFocus = findViewById(R.id.seekbarCameraFocus);
	seekbarCameraFocus.setVisibility(mCurrentFocusMode == FocusMode.MANUAL ? VISIBLE : GONE);

	mCameraHandler.setFocusMode(mCurrentFocusMode);

	Button buttonCameraFocus = findViewById(R.id.buttonCameraFocus);

	if (mCurrentFocusMode == null) {
		buttonCameraFocus.setVisibility(GONE);
	}
	else {
		buttonCameraFocus.setText(mCurrentFocusMode.toDisplayString());
	}
}
 
Example 8
Source File: DocumentActivity.java    From Mupdf with Apache License 2.0 6 votes vote down vote up
private void makeButtonsView() {
    mButtonsView = getLayoutInflater().inflate(R.layout.document_activity, null);
    mFilenameView = (TextView) mButtonsView.findViewById(R.id.docNameText);
    mPageSlider = (SeekBar) mButtonsView.findViewById(R.id.pageSlider);
    mPageNumberView = (TextView) mButtonsView.findViewById(R.id.pageNumber);
    mSearchButton = (ImageButton) mButtonsView.findViewById(R.id.searchButton);
    mOutlineButton = (ImageButton) mButtonsView.findViewById(R.id.outlineButton);
    mTopBarSwitcher = (ViewAnimator) mButtonsView.findViewById(R.id.switcher);
    mSearchBack = (ImageButton) mButtonsView.findViewById(R.id.searchBack);
    mSearchFwd = (ImageButton) mButtonsView.findViewById(R.id.searchForward);
    mSearchClose = (ImageButton) mButtonsView.findViewById(R.id.searchClose);
    mSearchText = (EditText) mButtonsView.findViewById(R.id.searchText);
    mLinkButton = (ImageButton) mButtonsView.findViewById(R.id.linkButton);
    mTopBarSwitcher.setVisibility(View.INVISIBLE);
    mPageNumberView.setVisibility(View.INVISIBLE);

    mPageSlider.setVisibility(View.INVISIBLE);
}
 
Example 9
Source File: OverviewFormFragment.java    From CameraV with GNU General Public License v3.0 5 votes vote down vote up
@Override
public View onCreateView(LayoutInflater li, ViewGroup container, Bundle savedInstanceState)
{
	super.onCreateView(li, container, savedInstanceState);

	rootView = li.inflate(R.layout.fragment_forms_overview, container, false);

	historyHeader = rootView.findViewById(R.id.historyHeader);
	historyHeaderSubTitle = (TextView) historyHeader.findViewById(R.id.tvSubTitle);
//	showHistoryIndicator = (ImageView) rootView.findViewById(R.id.indicator);
	lvHistory = (AdapteredLinearLayout) rootView.findViewById(R.id.lvHistory);
	lvHistory.setVisibility(View.VISIBLE);
	mShowingHistory = true;
	
	notes = (TextView) rootView.findViewById(R.id.media_notes);
	notes.setText("");
	notesAnswerHolder = (EditText) rootView.findViewById(R.id.media_notes_edit); // new EditText(container.getContext());
	notesAnswerHolder.setVisibility(View.GONE);
	notesAnswerHolder.setText("");

	rlAudio = rootView.findViewById(R.id.rlAudio);
	rlAudio.setVisibility(View.GONE);
	llAudioFiles = (LinearLayout) rootView.findViewById(R.id.llAudioFiles);
	sbAudio = (SeekBar) rootView.findViewById(R.id.sbAudio);
	sbAudio.setVisibility(View.GONE);
	return rootView;
}
 
Example 10
Source File: BaseFilter.java    From ImageCropRotateFilter with MIT License 4 votes vote down vote up
public boolean onBar1Setup(SeekBar bar) {
    bar.setVisibility(View.GONE);
    return false;
}