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之网格布局和线性布局实现注册页面(注意:1、再用weight的时候,各个组件要设置宽度为0dp,高度也要设置,2、即使没有设置weight,再用linear布局时,比如view和button都要设置宽度高度。3、如果出现运行错误,可以先检查哪个组件没设置高度):values/strings.xml<..
分类:
移动平台 时间:
2014-12-07 06:50:16
收藏:
0 评论:
0 赞:
0 阅读:
351
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
布局: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进度条组件:(注意:横向那个进度条要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拖动组件:布局: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
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:(注意跳转的时候要传像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:(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
生命周期图片:测试主页面布局::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
登陆页面布局: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
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
主页面布局: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
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
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
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
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
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
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
主显示布局以及代码: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