android-viewpager-indicator
- 授权协议: GPL
- 开发语言: Java
- 操作系统: Android
- 软件首页: https://github.com/panxw/android-viewpager-indicator
软件介绍
一、简介
android-viewpager-indicator 是 Tab+ViewPager 切换控件。
GitHub地址:https://github.com/panxw/android-viewpager-indicator
二、使用示例
1. Android 布局文件:
<com.allthelucky.common.view.ViewPagerIndicatorView android:id="@+id/viewpager_indicator_view" android:layout_width="match_parent" android:layout_height="wrap_content" />
2. 在 Java 代码中设置 ViewPagerIndicatorView:
ViewPagerIndicatorView viewPagerIndicatorView; = (ViewPagerIndicatorView) findViewById(R.id.viewpager_indicator_view);
final Map<String, View> map = new HashMap<String, View>();
map.put("TAB1", LayoutInflater.from(this).inflate(R.layout.activity_sample_pager_0, null));
map.put("TAB2", LayoutInflater.from(this).inflate(R.layout.activity_sample_pager_1, null));
viewPagerIndicatorView.setupLayout(map);
3.效果图
PS:
顺便宣传下自己的GitHub,https://github.com/panxw, 欢迎来Follow~
王牌创业者:风口游戏
澈言 / 百花洲文艺出版社 / 2018-2 / 48.00
《王牌创业者:风口游戏》是一部围绕互联网创业展开的商战小说:故事的主人公莫飞是“毕业即创业”的当代年轻创业者的典型代表,他大学在校时就凭借创业项目拿到了天使融资,创业几年后,当产品估值越做越大时,他却忽然遭遇创业伙伴及投资人的联手陷害,失去了自己一手建立的公司。 此时, 莫飞的女友林姿参加了一场声势浩大的创业比赛,并一举夺魁,直进决赛。可在决赛中,突如其来的一场新闻事件让她名誉扫地。最终,为......一起来看看 《王牌创业者:风口游戏》 这本书的介绍吧!
