MDTabMaterial Design风格的Tabbar
MDTab
一个仿google photos和google G+的Material Design风格的Tabbar
如何使用
as引入:compile 'org.loader:mdtab:1.0.1'
在xml中使用
<org.loader.mdtab.MDTab android:id="@+id/tab" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="bottom" android:textSize="12sp" app:checked_color="#FF0000FF" app:checked_percent="130%" app:normal_color="@android:color/black" app:ripple_color="#22448aca" android:background="@android:color/white" app:tab_padding="5dp" />
效果如下:
如何配合CoordinatorLayout使用
添加一条配置项目app:layout_behavior="@string/tab_behavior"
就可以, 代码如下:
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal"> <android.support.v4.widget.NestedScrollView android:layout_width="match_parent" android:layout_height="match_parent"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:padding="50dp" android:text="loader" /> <!-- 像这样的TextView还有不少个--> </LinearLayout> </android.support.v4.widget.NestedScrollView> <org.loader.mdtab.MDTab android:id="@+id/tab" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="bottom" android:textSize="12sp" app:checked_color="#FF0000FF" app:checked_percent="130%" app:layout_behavior="@string/tab_behavior" app:normal_color="@android:color/black" app:ripple_color="#22448aca" android:background="@android:color/white" app:tab_padding="5dp" /></android.support.design.widget.CoordinatorLayout>
效果如下:
和ViewPager一块使用
调用方法
tab.setupWithViewPager(mViewPager);
实现效果:
评论
Material-DialogsAndroid Material Design 风格的 Dialogs
Material Dialogs 是一个可高度定制易用, 符合 Material Design 风格
Material-DialogsAndroid Material Design 风格的 Dialogs
0
Hexo-theme-FluidMaterial Design 风格的 Hexo 主题
Fluid是基于Hexo框架开发的一款MaterialDesign风格的主题。该主题相较于其他主题的优势:优雅的颜值,使用MaterialDesign风格突出层次感,但又不失简约,让用户能专注于写作;
Hexo-theme-FluidMaterial Design 风格的 Hexo 主题
0
MaterialViewPagerMaterial Design 风格的 ViewPager 库
MaterialViewPager 是一个简单易用 Material Design 风格的 View
MaterialViewPagerMaterial Design 风格的 ViewPager 库
0
Material-DialogsAndroid Material Design 风格的 Dialogs
MaterialDialogs是一个可高度定制易用,符合MaterialDesign风格的Dialogs,兼容AndroidAPI8以上版本,完全可替代Android原生控件,比原生更加简单易用。截图
Material-DialogsAndroid Material Design 风格的 Dialogs
0
MaterialViewPagerMaterial Design 风格的 ViewPager 库
MaterialViewPager是一个简单易用MaterialDesign风格的ViewPager库。效果图:
MaterialViewPagerMaterial Design 风格的 ViewPager 库
0
Angular MaterialAngular 的 Material Design 风格框架
Material Design for Angular 是 Angular 官方团队开发的基于最新版
Angular MaterialAngular 的 Material Design 风格框架
0