本文整理了Java中android.widget.ViewFlipper.removeAllViews()
方法的一些代码示例,展示了ViewFlipper.removeAllViews()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ViewFlipper.removeAllViews()
方法的具体详情如下:
包路径:android.widget.ViewFlipper
类名称:ViewFlipper
方法名:removeAllViews
暂无
代码示例来源:origin: FarbodSalamat-Zadeh/UsefulViews
/**
* Removes the front and back Views from the card/widget
*
* @see #setFrontAndBackViews(View, View)
*/
public void removeFrontAndBack() {
mViewFlipper.removeAllViews();
}
代码示例来源:origin: PrivacyApps/document-viewer
void showBookcase(final BooksAdapter bookshelfAdapter, final RecentAdapter recentAdapter) {
final ViewFlipper vf = getViewflipper();
vf.removeAllViews();
if (bookcaseView == null) {
bookcaseView = (BookcaseView) LayoutInflater.from(this).inflate(R.layout.bookcase_view, vf, false);
bookcaseView.init(bookshelfAdapter, recentAdapter);
}
vf.addView(bookcaseView, 0);
}
代码示例来源:origin: FarbodSalamat-Zadeh/UsefulViews
mViewFlipper.removeAllViews();
代码示例来源:origin: ChessLuo/TextBannerView
/**设置数据集合*/
public void setDatas(List<String> datas){
this.mDatas = datas;
if (DisplayUtils.notEmpty(mDatas)){
mViewFlipper.removeAllViews();
for (int i = 0; i < mDatas.size(); i++) {
TextView textView = new TextView(getContext());
setTextView(textView,i);
mViewFlipper.addView(textView,i);//添加子view,并标识子view位置
}
}
}
代码示例来源:origin: ChessLuo/TextBannerView
return;
mViewFlipper.removeAllViews();
for (int i = 0; i < mDatas.size(); i++) {
TextView textView = new TextView(getContext());
代码示例来源:origin: ymback/NGA-CLIENT-VER-OPEN-SOURCE
@Override
public void updateHeaderView() {
mHeaderView.removeAllViews();
UserManager um = UserManagerImpl.getInstance();
final List<User> userList = um.getUserList();
if (userList.isEmpty()) {
mHeaderView.addView(getUserView(null, 0));
} else {
for (int i = 0; i < userList.size(); i++) {
mHeaderView.addView(getUserView(userList, i));
}
mHeaderView.setDisplayedChild(um.getActiveUserIndex());
}
mHeaderView.setOnClickListener(v -> mPresenter.toggleUser(userList));
mHeaderView.setInAnimation(AnimationUtils.loadAnimation(getContext(), R.anim.right_in));
mHeaderView.setOutAnimation(AnimationUtils.loadAnimation(getContext(), R.anim.right_out));
}
代码示例来源:origin: PrivacyApps/document-viewer
void showLibrary(final LibraryAdapter libraryAdapter, final RecentAdapter recentAdapter) {
if (recentBooksView == null) {
recentBooksView = new RecentBooksView(getController(), recentAdapter);
registerForContextMenu(recentBooksView);
}
if (libraryView == null) {
libraryView = new LibraryView(getController(), libraryAdapter);
registerForContextMenu(libraryView);
}
final ViewFlipper vf = getViewflipper();
vf.removeAllViews();
vf.addView(recentBooksView, VIEW_RECENT);
vf.addView(libraryView, VIEW_LIBRARY);
if (recentAdapter.getCount() == 0) {
changeLibraryView(VIEW_LIBRARY);
}
}
内容来源于网络,如有侵权,请联系作者删除!