码迷,mamicode.com
首页 > 移动开发
一款漂亮实用的Android开源日期控件timessquare
这个开源控件可以兼容到SDK8版本,可以自定义显示的年月日,以及时间范围,如图 如果我们只想显示两个月的日期选择区间:final Calendar month = Calendar.getInstance();month.add(Calendar.MONTH, 1);然后初始化时候可以传进去一些参数...
分类:移动开发   时间:2014-12-07 10:10:11    阅读次数:288
android 设置View控件的全局样式和风格
android开发部中,不可避免的要设定某一类按钮的按压,点击,聚焦等状态,通常对于这一类问题而言,最原始的方式就是在布局文件中亲自设定,然而对于一个比较大型的项目而言,这种方式造成的可维护性不是很好,因...
分类:移动开发   时间:2014-12-07 09:05:16    阅读次数:425
Android项目之weiyi通讯录(一)
好久没有写博客了,这几天都在忙这找工作也没有时间写博客,这周想休息下  就做了这个小项目,当练习 凌晨了还在这是写博客 希望能帮助到需要的人 先说说这个项目的功能吧 有联系人列表,通话记录,短信记录,设置。可能后期会加入一些功能,这个项目主要使用类似微信UI效果,个人觉得还不错哦 在联系人列表使用了自定义控件,等等吧后面会介绍的 -----------欢迎加入交流群 386451316 有...
分类:移动开发   时间:2014-12-07 09:04:37    阅读次数:190
android第一天
RelativeLayout(相对布局):layout/activity_main.xml<RelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"android:layout_height="match_parent"><Text..
分类:移动开发   时间:2014-12-07 06:54:19    阅读次数:176
android第三天--AbsoluteLayout绝对布局
AbsoluteLayout绝对布局:layout/activity_main.xml<AbsoluteLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"android:layout_height="match_parent"><TextView..
分类:移动开发   时间:2014-12-07 06:54:36    阅读次数:156
android之网格布局GridLayout
TableLayout(网格布局)需要注意的:网格布局需要最低版本支持:API14也就是最低andriod4.0:layout/activity_main.xml<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="match_parent"android:layout_height="match_parent"..
分类:移动开发   时间:2014-12-07 06:52:37    阅读次数:215
android之网格布局GridLayout
TableLayout(网格布局)需要注意的:网格布局需要最低版本支持:API14也就是最低andriod4.0:layout/activity_main.xml<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="match_parent"android:layout_height="match_parent"..
分类:移动开发   时间:2014-12-07 06:52:43    阅读次数:263
android之线性布局LinearLayout以及weight权重使用
LinearLayout(线性布局)::layout/activity_main.xml<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"android:layout_height="match_parent"android:orient..
分类:移动开发   时间:2014-12-07 06:52:50    阅读次数:315
android之网格布局和线性布局实现注册页面
android之网格布局和线性布局实现注册页面(注意:1、再用weight的时候,各个组件要设置宽度为0dp,高度也要设置,2、即使没有设置weight,再用linear布局时,比如view和button都要设置宽度高度。3、如果出现运行错误,可以先检查哪个组件没设置高度):values/strings.xml<..
分类:移动开发   时间:2014-12-07 06:52:54    阅读次数:357
android之实现各个组件点击事件处理
android之实现各个组件点击事件处理:注意:(TextView这个组件要点击产生效果的话,要设置,android:clickable="true"这个属性)布局:layout/activity_main.xml<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.andr..
分类:移动开发   时间:2014-12-07 06:52:01    阅读次数:223
android之实现各个组件点击事件监听
布局:layout/activity_main.xml<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"android:layout_height="match_parent"android:orientation="vertical">&l..
分类:移动开发   时间:2014-12-07 06:49:50    阅读次数:183
android之实现ProgressBar进度条组件
android之实现ProgressBar进度条组件:(注意:横向那个进度条要android4.0以上版本支持,也就是最低(android:minSdkVersion="14")支持)布局:layout/activity_main.xml<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://sch..
分类:移动开发   时间:2014-12-07 06:52:01    阅读次数:217
android之实现SeekBar拖动组件
android之实现SeekBar拖动组件:布局:layout/activity_main.xml<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"android:layout_height="match_parent"androi..
分类:移动开发   时间:2014-12-07 06:51:18    阅读次数:163
android之实现注册功能
2014-11-2317:3217人阅读评论(0)收藏编辑删除android之实现注册功能:注意:(1、之前一直找不到不成功的原因,经过调试,找到了,原来是:Toast.makeText(this,"用户名不能为空",2000).show()没调用show方法;2、在switch下的case语句后一定要加break,不然他就会一直执行下一..
分类:移动开发   时间:2014-12-07 06:50:01    阅读次数:206
android之无返回结果跳转intent
android之无返回结果跳转intent:(注意跳转的时候要传像user的对象必须实现Serializable接口)登陆页面布局:layout/activity_login.xml:<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:..
分类:移动开发   时间:2014-12-07 06:49:57    阅读次数:225
android之有返回结果跳转intent
android之有返回结果跳转intent:(1、注意跳转的时候要传像user的对象必须实现Serializable接口,2、login的java代码中setResult(RESULT_OK,intent);后一定要调用finish()方法)主页面布局:layout/activity_main.xml:<RelativeLayoutxmlns:android="http://schemas.andro..
分类:移动开发   时间:2014-12-07 06:51:19    阅读次数:296
android之activities的生命周期
生命周期图片:测试主页面布局::layout/activity_main.xml<RelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"android:layout_height="match_parent"android:p..
分类:移动开发   时间:2014-12-07 06:49:36    阅读次数:220
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!