android-boostrap
2014-01-15 17:37
375 查看
之前在github发现的一个很酷的android界面库 android-boostrap ,里面包括了一些boostrap样式的按钮(Bootstrap
v3),输入框,略缩图背景样式,而且还支持Font Awesome v4的textview(其实更像是imageview);
效果图:
其中的BootstrapButton和BootstrapEditText比较有利用价值,在不同版本的android系统下可以保持统一的风格。
我们可以很方便的在layout中引用他们,例如:
icon属性中我们可以设置Font Awesome中的各种icon,具体可以从该页面中中获取:http://fortawesome.github.io/Font-Awesome/cheatsheet/
而具体的使用技巧可以到github主页中下载sample研究
v3),输入框,略缩图背景样式,而且还支持Font Awesome v4的textview(其实更像是imageview);
效果图:
其中的BootstrapButton和BootstrapEditText比较有利用价值,在不同版本的android系统下可以保持统一的风格。
我们可以很方便的在layout中引用他们,例如:
<com.beardedhen.androidbootstrap.BootstrapEditText android:id="@+id/editText_username" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="14dp" android:layout_toRightOf="@+id/imageView1" android:ems="10" android:hint="@string/user_name" android:singleLine="true" android:text="fans" bootstrapbutton:be_roundedCorners="true" bootstrapbutton:be_state="warning"> <com.beardedhen.androidbootstrap.BootstrapButton android:id="@+id/btn_login" android:layout_width="match_parent" android:layout_height="50dp" android:layout_below="@+id/linearLayout1" android:layout_centerHorizontal="true" android:layout_marginLeft="40dp" android:layout_marginRight="40dp" android:text="@string/login" bootstrapbutton:bb_icon_left="fa-check" bootstrapbutton:bb_roundedCorners="true" app:bb_text_gravity="center" bootstrapbutton:bb_type="primary"/>
icon属性中我们可以设置Font Awesome中的各种icon,具体可以从该页面中中获取:http://fortawesome.github.io/Font-Awesome/cheatsheet/
而具体的使用技巧可以到github主页中下载sample研究
相关文章推荐
- android 代码实现控件之间的间距
- 查看github pages文档的方式
- 使用BAE的基于Web.py的简单博客程序
- 解決Linux下Android开发真机调试设备不被识别问题
- bootstrap初试进度条
- [Android]在代码里运行另一个程序的方法
- [软件咨询]WPS2012正式版已发布 金山Office移动版4.0发布
- Android笔记-Linux Kernel Ftrace (Function Trace)解析
- 修复mysql数据库
- android USB如何修改VID具体实现
- Android Mouse实现过程详细笔记
- 深入Android Browser配置管理的详解
- 桌面中心(一)创建数据库
- Android Mms之:深入理解对话列表管理
- 基于Bootstrap的网页设计实例
- 精彩的Bootstrap案例分享 重点在注释!(选项卡、栅格布局)
- Android APP与媒体存储服务的交互
- android 多线程技术应用
- Android之采用execSQL与rawQuery方法完成数据的添删改查操作详解
- 浅析C语言头文件和库的一些问题