本文整理匯總了Java中com.lqr.wechat.ui.fragment.FragmentFactory類的典型用法代碼示例。如果您正苦於以下問題:Java FragmentFactory類的具體用法?Java FragmentFactory怎麽用?Java FragmentFactory使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
FragmentFactory類屬於com.lqr.wechat.ui.fragment包,在下文中一共展示了FragmentFactory類的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: initView
import com.lqr.wechat.ui.fragment.FragmentFactory; //導入依賴的package包/類
@Override
public void initView() {
setToolbarTitle(UIUtils.getString(R.string.app_name));
mIbAddMenu.setVisibility(View.VISIBLE);
//等待全局數據獲取完畢
showWaitingDialog(UIUtils.getString(R.string.please_wait));
//默認選中第一個
setTransparency();
mTvMessagePress.getBackground().setAlpha(255);
mTvMessageTextPress.setTextColor(Color.argb(255, 69, 192, 26));
//設置ViewPager的最大緩存頁麵
mVpContent.setOffscreenPageLimit(3);
mFragmentList.add(FragmentFactory.getInstance().getRecentMessageFragment());
mFragmentList.add(FragmentFactory.getInstance().getContactsFragment());
mFragmentList.add(FragmentFactory.getInstance().getDiscoveryFragment());
mFragmentList.add(FragmentFactory.getInstance().getMeFragment());
mVpContent.setAdapter(new CommonFragmentPagerAdapter(getSupportFragmentManager(), mFragmentList));
}
示例2: initView
import com.lqr.wechat.ui.fragment.FragmentFactory; //導入依賴的package包/類
@Override
public void initView() {
setToolbarTitle(UIUtils.getString(R.string.app_name));//設置Title名字
mIbAddMenu.setVisibility(View.VISIBLE);
//等待全局數據獲取完畢
showWaitingDialog(UIUtils.getString(R.string.please_wait));
//默認選中第一個
setTransparency();
mTvMessagePress.getBackground().setAlpha(255);
mTvMessageTextPress.setTextColor(Color.argb(255, 69, 192, 26));
//設置ViewPager的最大緩存頁麵
mVpContent.setOffscreenPageLimit(3);
mFragmentList.add(FragmentFactory.getInstance().getRecentMessageFragment());
mFragmentList.add(FragmentFactory.getInstance().getContactsFragment());
mFragmentList.add(FragmentFactory.getInstance().getDiscoveryFragment());
mFragmentList.add(FragmentFactory.getInstance().getMeFragment());
mVpContent.setAdapter(new CommonFragmentPagerAdapter(getSupportFragmentManager(), mFragmentList));
}
示例3: onPageSelected
import com.lqr.wechat.ui.fragment.FragmentFactory; //導入依賴的package包/類
@Override
public void onPageSelected(int position) {
if (position == 1) {
//如果是“通訊錄”頁被選中,則顯示快速導航條
FragmentFactory.getInstance().getContactsFragment().showQuickIndexBar(true);
} else {
FragmentFactory.getInstance().getContactsFragment().showQuickIndexBar(false);
}
}
示例4: onPageScrollStateChanged
import com.lqr.wechat.ui.fragment.FragmentFactory; //導入依賴的package包/類
@Override
public void onPageScrollStateChanged(int state) {
if (state != ViewPager.SCROLL_STATE_IDLE) {
//滾動過程中隱藏快速導航條
FragmentFactory.getInstance().getContactsFragment().showQuickIndexBar(false);
} else {
FragmentFactory.getInstance().getContactsFragment().showQuickIndexBar(true);
}
}
示例5: onPageSelected
import com.lqr.wechat.ui.fragment.FragmentFactory; //導入依賴的package包/類
/**
* 設置點擊的時候通訊錄裏麵字母導航顯示或者隱藏
* @param position
*/
@Override
public void onPageSelected(int position) {
if (position == 1) {
//如果是“通訊錄”頁被選中,則顯示快速導航條
FragmentFactory.getInstance().getContactsFragment().showQuickIndexBar(true);
} else {
FragmentFactory.getInstance().getContactsFragment().showQuickIndexBar(false);
}
}
示例6: onPageScrollStateChanged
import com.lqr.wechat.ui.fragment.FragmentFactory; //導入依賴的package包/類
/**
* 設置滑動的時候通訊錄裏麵字母導航顯示或者隱藏
* @param state
*/
@Override
public void onPageScrollStateChanged(int state) {
if (state != ViewPager.SCROLL_STATE_IDLE) {
//滾動過程中隱藏快速導航條
FragmentFactory.getInstance().getContactsFragment().showQuickIndexBar(false);
} else {
FragmentFactory.getInstance().getContactsFragment().showQuickIndexBar(true);
}
}