下面列出了android.widget.ViewAnimator#setVisibility ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}