當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。