当前位置: 首页>>代码示例>>Java>>正文


Java BottomSheetUtils类代码示例

本文整理汇总了Java中biz.laenger.android.vpbs.BottomSheetUtils的典型用法代码示例。如果您正苦于以下问题:Java BottomSheetUtils类的具体用法?Java BottomSheetUtils怎么用?Java BottomSheetUtils使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


BottomSheetUtils类属于biz.laenger.android.vpbs包,在下文中一共展示了BottomSheetUtils类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setupViewPager

import biz.laenger.android.vpbs.BottomSheetUtils; //导入依赖的package包/类
private void setupViewPager() {
    bottomSheetToolbar.setTitle(R.string.action_bottom_sheet_dialog);
    bottomSheetViewPager.setOffscreenPageLimit(1);
    bottomSheetViewPager.setAdapter(new SimplePagerAdapter(getContext()));
    bottomSheetTabLayout.setupWithViewPager(bottomSheetViewPager);
    BottomSheetUtils.setupViewPager(bottomSheetViewPager);
}
 
开发者ID:laenger,项目名称:ViewPagerBottomSheet,代码行数:8,代码来源:DialogFragment.java

示例2: setupBottomSheet

import biz.laenger.android.vpbs.BottomSheetUtils; //导入依赖的package包/类
private void setupBottomSheet() {
    bottomSheetToolbar.setTitle(R.string.bottom_sheet_title);
    final PagerAdapter sectionsPagerAdapter = new PagerAdapter(getSupportFragmentManager(), this, TabItem.NESTED_SCROLL, TabItem.VIEW_PAGER, TabItem.RECYCLER, TabItem.RECYCLER);
    bottomSheetViewPager.setOffscreenPageLimit(1);
    bottomSheetViewPager.setAdapter(sectionsPagerAdapter);
    bottomSheetTabLayout.setupWithViewPager(bottomSheetViewPager);
    BottomSheetUtils.setupViewPager(bottomSheetViewPager);
}
 
开发者ID:laenger,项目名称:ViewPagerBottomSheet,代码行数:9,代码来源:MainActivity.java

示例3: setupViewPager

import biz.laenger.android.vpbs.BottomSheetUtils; //导入依赖的package包/类
@AfterViews
void setupViewPager() {
	BottomSheetUtils.setupViewPager(viewPager);
	viewPager.setAdapter(new GoodsPagerAdapter(getChildFragmentManager()));
	circleIndicator.setViewPager(viewPager);

	// temporary fix to show the global stock menu first as the others havent been implemented yet
	viewPager.setCurrentItem(4);
}
 
开发者ID:jsettlers,项目名称:settlers-remake,代码行数:10,代码来源:GoodsMenuFragment.java

示例4: setupNestedViewPager

import biz.laenger.android.vpbs.BottomSheetUtils; //导入依赖的package包/类
private void setupNestedViewPager() {
    final PagerAdapter sectionsPagerAdapter = new PagerAdapter(getChildFragmentManager(), getContext(), TabItem.NESTED_SCROLL, TabItem.RECYCLER);
    viewPager.setAdapter(sectionsPagerAdapter);
    tabLayout.setupWithViewPager(viewPager);
    BottomSheetUtils.setupViewPager(viewPager);
}
 
开发者ID:laenger,项目名称:ViewPagerBottomSheet,代码行数:7,代码来源:ViewPagerFragment.java

示例5: setupBottomSheet

import biz.laenger.android.vpbs.BottomSheetUtils; //导入依赖的package包/类
@AfterViews
void setupBottomSheet() {
	BottomSheetUtils.setupViewPager(viewPager);
	viewPager.setAdapter(new SettlersPagerAdapter(getChildFragmentManager()));
	circleIndicator.setViewPager(viewPager);
}
 
开发者ID:jsettlers,项目名称:settlers-remake,代码行数:7,代码来源:SettlersMenuFragment.java

示例6: setupBottomSheet

import biz.laenger.android.vpbs.BottomSheetUtils; //导入依赖的package包/类
@AfterViews
void setupBottomSheet() {
	BottomSheetUtils.setupViewPager(viewPager);
	viewPager.setAdapter(new BuildingsPagerAdapter(getChildFragmentManager()));
	circleIndicator.setViewPager(viewPager);
}
 
开发者ID:jsettlers,项目名称:settlers-remake,代码行数:7,代码来源:BuildingsMenuFragment.java


注:本文中的biz.laenger.android.vpbs.BottomSheetUtils类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。