本文整理汇总了Java中com.gigamole.navigationtabstrip.NavigationTabStrip类的典型用法代码示例。如果您正苦于以下问题:Java NavigationTabStrip类的具体用法?Java NavigationTabStrip怎么用?Java NavigationTabStrip使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
NavigationTabStrip类属于com.gigamole.navigationtabstrip包,在下文中一共展示了NavigationTabStrip类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: onCreate
import com.gigamole.navigationtabstrip.NavigationTabStrip; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
final ViewPager viewPager = (ViewPager) findViewById(R.id.vp_main);
viewPager.setAdapter(new MainPagerAdapter(getSupportFragmentManager()));
viewPager.setOffscreenPageLimit(2);
final NavigationTabStrip navigationTabStrip = (NavigationTabStrip) findViewById(R.id.nts);
navigationTabStrip.setTitles("HOW WE WORK", "WE WORK WITH");
navigationTabStrip.setViewPager(viewPager);
}
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:14,代码来源:MainActivity.java
示例2: onCreate
import com.gigamole.navigationtabstrip.NavigationTabStrip; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_home);
ButterKnife.bind(this);
mViewPager.setAdapter(new HomePagerAdapter(getSupportFragmentManager()));
mViewPager.setOffscreenPageLimit(2);
mViewPager.setCurrentItem(1);
final NavigationTabStrip navigationTabStrip = (NavigationTabStrip) findViewById(R.id.nts_center);
navigationTabStrip.setViewPager(mViewPager);
FlowingDrawer mDrawer = (FlowingDrawer) findViewById(R.id.drawerlayout);
mDrawer.setTouchMode(ElasticDrawer.TOUCH_MODE_BEZEL);
mDrawer.setOnDrawerStateChangeListener(new ElasticDrawer.OnDrawerStateChangeListener() {
@Override
public void onDrawerStateChange(int oldState, int newState) {
if (newState == ElasticDrawer.STATE_CLOSED) {
Log.i("MainActivity", "Drawer STATE_CLOSED");
}
}
@Override
public void onDrawerSlide(float openRatio, int offsetPixels) {
Log.i("MainActivity", "openRatio=" + openRatio + " ,offsetPixels=" + offsetPixels);
}
});
}
开发者ID:othreecodes,项目名称:Dampp,代码行数:32,代码来源:HomeActivity.java
示例3: onCreate
import com.gigamole.navigationtabstrip.NavigationTabStrip; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
final ViewPager viewPager = (ViewPager) findViewById(R.id.vp_main);
viewPager.setAdapter(new MainPagerAdapter(getSupportFragmentManager()));
viewPager.setOffscreenPageLimit(2);
final NavigationTabStrip navigationTabStrip = (NavigationTabStrip) findViewById(R.id.nts);
navigationTabStrip.setTitles("HORIZONTAL", "VERTICAL", "TWO-WAY");
navigationTabStrip.setViewPager(viewPager);
}
开发者ID:AnveshReddyT,项目名称:DevLight-Mobile-Agency-InfiniteCycleViewPager,代码行数:14,代码来源:MainActivity.java
示例4: initUI
import com.gigamole.navigationtabstrip.NavigationTabStrip; //导入依赖的package包/类
private void initUI() {
mViewPager = (ViewPager) findViewById(R.id.vp);
mCenterNavigationTabStrip = (NavigationTabStrip) findViewById(R.id.nts_center);
}
开发者ID:braulio94,项目名称:Quadro,代码行数:5,代码来源:UserActivity.java
示例5: onCreate
import com.gigamole.navigationtabstrip.NavigationTabStrip; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_home);
mViewPager = (ViewPager) findViewById(R.id.vp_main);
mCenterNavigationTabStrip = (NavigationTabStrip) findViewById(R.id.nts_center);
mViewPager.setAdapter(new HomePagerAdapter(getSupportFragmentManager()));
mViewPager.setOffscreenPageLimit(2);
final NavigationTabStrip navigationTabStrip = (NavigationTabStrip) findViewById(R.id.nts_center);
navigationTabStrip.setViewPager(mViewPager);
}
开发者ID:othreecodes,项目名称:WaJeun,代码行数:17,代码来源:HomeActivity.java
示例6: initUI
import com.gigamole.navigationtabstrip.NavigationTabStrip; //导入依赖的package包/类
private void initUI() {
mViewPager = (ViewPager) findViewById(R.id.vp);
mTopNavigationTabStrip = (NavigationTabStrip) findViewById(R.id.nts_top);
mCenterNavigationTabStrip = (NavigationTabStrip) findViewById(R.id.nts_center);
mBottomNavigationTabStrip = (NavigationTabStrip) findViewById(R.id.nts_bottom);
}
开发者ID:Devlight,项目名称:NavigationTabStrip,代码行数:7,代码来源:MainActivity.java
注:本文中的com.gigamole.navigationtabstrip.NavigationTabStrip类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论