安卓ADT项目及升级AS(Android Studio)全攻略
安卓ADT项目及升级AS(Android Studio)全攻略
Android开发规范及常用(配置) 命名规范 代码规范 包注释package-info.java使用说明 eclipse配置类代码注释方式
In your xml import an extra namespace on the root of your layout <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:whatever="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="wrap_content" > .... <!-- Your actual layout --> .... </LinearLayout> Note: It's not mandatory to use it on the root element. Also remember to change the xmlns value with your package name Whenever you need to use the FormEditText just do the following in your xml. <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:whatever="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="wrap_content" > <!-- Some stuff --> <com.andreabaccega.widget.FormEditText whatever:testType="alpha" android:id="@+id/et_firstname" android:layout_width="match_parent" android:layout_height="wrap_content" /> <!-- Some other stuff --> </LinearLayout> As you noticed there is a whatever:test attribute setted to alpha. This let the FormEditText know that the data inside it should be only Alpha characters. There are several values you can set to the test attribute: regexp: for custom regexp numeric: for an only numeric field alpha: for an alpha only field alphaNumeric: guess what? personName: checks if the entered text is a person first or last name. personFullName: checks if the entered value is a complete full name. email: checks that the field is a valid email creditCard: checks that the field contains a valid credit card using Luhn Algorithm phone: checks that the field contains a valid phone number domainName: checks that field contains a valid domain name ( always passes the test in API Level < 8 ) ipAddress: checks that the field contains a valid ip address webUrl: checks that the field contains a valid url ( always passes the test in API Level < 8 ) date: checks that the field is a valid date/datetime format ( if customFormat is set, checks with customFormat ) nocheck: It does not check anything except the emptyness of the field. For most of the test type values this library comes with a couple of default strings. This means that error strings ( english only ) are already available for the following test types: numeric, alpha, alphanumeric You can customize them using the attributes testErrorString used when the field does not pass the test emptyErrorString used when the field is empty
列表上拉下拉刷新支持 ListView ExpandableListView GridView WebView ScrollView HorizontalScrollView ViewPager
1.可实现无限级栏目分类 2.执行效率高,速度快 3.只需表id(主键)、classname(名称)和parentid(父级id),其它字段任意 4.采用对象方式进行参数传递 5.对任意数据库任意表都可用 6.用时只要将:无限级栏目获取.txt文件中的内容放到一个独立的类中即可 7.不要忘了把构造方法名称改一下哦
1、课题研究的现状和意义 2、课题研究预期效果及可行性分析 3、课题要解决的问题或研究的基本内容 4、课题研究进程计划 5、研究成果形式 6、课题研究的主要参考资料