Getting Started

<!-- rounded edit text -->
<com.beardedhen.androidbootstrap.BootstrapEditText
android:id="@+id/txtOne"
android:layout_width="150dp"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:hint="rounded"
bootstrapbutton:be_roundedCorners="true"
android:gravity="center"
bootstrapbutton:be_state="success"
/>

The above code inserts a rounded bootstrap edit text with the state set to be succesfull. The following attributes can be added:

bootstrapbutton:be_state="success" The state of the Bootstrap Edit Text e.g. warning, danger, success. Leave blank for default state.

bootstrapbutton:be_roundedCorners="true" Whether the Bootstrap Edit Text should have rounded corners

  • and all the other variables for a typical edit text!

You can also change the Bootstrap Edit Text programmatically!

txtItem.setEnabled(false); change whether the edit text is enabled or disabled!

txtItem.setState("default"); change the state of the Bootstrap Edit Text from warning, danger, success, or default.

txtItem.setSuccess(); change the state of the Bootstrap Edit Text to success

txtItem.setWarning(); change the state of the Bootstrap Edit Text to warning

txtItem.setDanger(); change the state of the Bootstrap Edit Text to danger

txtItem.setDefault(); change the state of the Bootstrap Edit Text to default

  • and all the functions for a typical edit text.
  • Note: You can also set up listeners and interact as per regular edit texts

最新文章

  1. 别再抱怨了,国内这么多优秀的Android资源你都知道吗?
  2. .NET LINQ基本查询操作
  3. cocos2dx阴影层的实现
  4. android ListView详解继承ListActivity
  5. dom core,html dom,css dom,jquery 中的dom操作
  6. 使用ContentProvider管理联系人------搜索联系人
  7. Logstash最佳实践
  8. POJ1837 Balance(DP)
  9. Codeforces Round #340 (Div. 2) C. Watering Flowers 暴力
  10. 第三十篇、iOS开发中常用的宏
  11. C++中new和不new的区别
  12. 9张思维导图学习Javascript
  13. MYSQL死锁
  14. Linux shell中的一个问题 ${}带正则匹配的表达式
  15. sqlserver 存储过程实例
  16. 在toolbar里动态创建多个button(ext.net)
  17. Git - error: RPC failed; result=22, HTTP code = 401 fatal: The remote end hung up unexpectedly
  18. C#Session丢失问题的解决办法
  19. tox环境安装
  20. php list()函数

热门文章

  1. Linux有问必答:Linux上如何查看某个进程的线程
  2. Android 软键盘监听事件
  3. 基于 MySQL 5.6 keepalived的双主搭建
  4. Angularjs Nodejs Grunt 一个样例
  5. XMPP之ios即时通讯客户端开发-mac上搭建openfire服务器(二)
  6. linux服务器集群重复批量操作脚本实现
  7. hadoop实现购物商城推荐系统
  8. 【序列操作III】线段树
  9. Cordova之如何用命令行创建一个项目(完整示例)
  10. 【87.65%】【codeforces 731A】Night at the Museum