Java Code Examples for android.widget.ViewAnimator#setVisibility()
The following examples show how to use
android.widget.ViewAnimator#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 |
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 |
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 |
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 |
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 |
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 |
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: DocumentActivity.java From Mupdf with Apache License 2.0 | 6 votes |
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); }