首页 > 移动平台
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:50:26    收藏:0  评论:0  赞:0  阅读:328
android之网格布局和线性布局实现注册页面
android之网格布局和线性布局实现注册页面(注意:1、再用weight的时候,各个组件要设置宽度为0dp,高度也要设置,2、即使没有设置weight,再用linear布局时,比如view和button都要设置宽度高度。3、如果出现运行错误,可以先检查哪个组件没设置高度):values/strings.xml<..
分类:移动平台   时间:2014-12-07 06:50:16    收藏:0  评论:0  赞:0  阅读:351
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:50:06    收藏:0  评论:0  赞:0  阅读:253
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:46    收藏:0  评论:0  赞:0  阅读:217
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:49:36    收藏:0  评论:0  赞:0  阅读:319
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:49:26    收藏:0  评论:0  赞:0  阅读:302
android之实现注册功能
2014-11-2317:3217人阅读评论(0)收藏编辑删除android之实现注册功能:注意:(1、之前一直找不到不成功的原因,经过调试,找到了,原来是:Toast.makeText(this,"用户名不能为空",2000).show()没调用show方法;2、在switch下的case语句后一定要加break,不然他就会一直执行下一..
分类:移动平台   时间:2014-12-07 06:49:16    收藏:0  评论:0  赞:0  阅读:460
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:06    收藏:0  评论:0  赞:0  阅读:404
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:48:56    收藏:0  评论:0  赞:0  阅读:297
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:48:26    收藏:0  评论:0  赞:0  阅读:388
android之bundle传递数据--两个activities之间
登陆页面布局:layout/activity_login.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="vertic..
分类:移动平台   时间:2014-12-07 06:48:16    收藏:0  评论:0  赞:0  阅读:439
android之纵横屏幕切换时保存数据
java代码:packagecom.sxt.day04_05;importjava.io.IOException;importjava.io.InputStream;importjava.net.MalformedURLException;importjava.net.URL;importjava.net.URLConnection;importcom.sxt.day04_05.R;importandroid.app.Activity;importandroid.os.Bundle;importandr..
分类:移动平台   时间:2014-12-07 06:48:06    收藏:0  评论:0  赞:0  阅读:303
android之启动桌面activity
主页面布局:layout\activity_main.xml<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="match_parent"android:layout_height="match_parent"android:orientation="vertical"><Buttonandroid:id="@+id/btnHome"android..
分类:移动平台   时间:2014-12-07 06:47:46    收藏:0  评论:0  赞:0  阅读:387
android之ListView和adapter配合显示图片和文字列表
listView页面布局: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="ho..
分类:移动平台   时间:2014-12-07 06:47:26    收藏:0  评论:0  赞:0  阅读:373
android之simpleAdaper应用
listView页面布局: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:paddingBottom..
分类:移动平台   时间:2014-12-07 06:47:16    收藏:0  评论:0  赞:0  阅读:309
android之ArrayAdaper应用
listView页面布局: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:paddingBottom..
分类:移动平台   时间:2014-12-07 06:47:06    收藏:0  评论:0  赞:0  阅读:260
android之ArrayAdaper之Spinner
listView页面布局: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="ve..
分类:移动平台   时间:2014-12-07 06:46:56    收藏:0  评论:0  赞:0  阅读:270
android之GridView和Gallery
GridView:/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"><GridViewandroid:id="@+id/gvG..
分类:移动平台   时间:2014-12-07 06:46:46    收藏:0  评论:0  赞:0  阅读:330
android之listView缓存机制
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:paddingBottom="@dimen/activity_vertic..
分类:移动平台   时间:2014-12-07 06:46:16    收藏:0  评论:0  赞:0  阅读:298
android之listView之增删改查
主显示布局以及代码: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"><ListViewandroid:i..
分类:移动平台   时间:2014-12-07 06:46:06    收藏:0  评论:0  赞:0  阅读:338
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!