- 博客(11)
- 收藏
- 关注
原创 使用DatePicker以及TimePicker显示当前日期和时间
package com.example.datetimepicker;import java.util.Calendar;import android.app.Activity;import android.app.DatePickerDialog;import android.app.DatePickerDialog.OnDateSetListener;import androi
2016-11-14 11:13:11 2225
原创 Android 计算器
package com.imooc.calculator;import android.R.bool;import android.R.string;import android.app.Activity;import android.os.Bundle;import android.view.View;import android.view.View.OnClickListener
2016-11-12 18:20:02 571
原创 使用Intent实现页面跳转 (另一种方法)
package com.example.demo1;import android.app.Activity;import android.content.Context;import android.content.Intent;import android.os.Bundle;import android.view.View;import android.view.View.OnC
2016-11-11 16:14:15 2415
原创 使用Intent实现页面跳转
package com.example.demo1;import android.app.Activity;import android.content.Context;import android.content.Intent;import android.os.Bundle;import android.view.View;import android.view.View.OnC
2016-11-11 13:48:53 733
原创 五布局之表格布局TableLayout
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:stretchColumns="*"> <TextView
2016-11-10 09:00:32 504
原创 五布局之帧布局FrameLayout
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" > <ProgressBar android:layout_grav
2016-11-09 20:26:31 488
原创 五布局之相对布局RelativeLayout
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" > <ImageView android:id="@+id/i
2016-11-09 19:40:19 483
原创 使用RadioGroup与RadioButton实现单选效果
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/container" android:layout_width="match_parent" android:layout_height="match_parent" > <RadioG
2016-11-09 14:23:04 3277
原创 使用CheckBox实现多选效果
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/container" android:layout_width="match_parent" android:layout_height="match_parent" > <CheckB
2016-11-09 13:43:54 1567
原创 ToggleButton按钮实现开关效果
package com.demo2.demo2;import android.app.Activity;import android.os.Bundle;import android.widget.CompoundButton;import android.widget.CompoundButton.OnCheckedChangeListener;import android.widg
2016-11-09 10:49:04 1884
原创 Android笔记
1.wrap_content:包裹实际文本内容match_parent:当前控件铺满父类容器,2.3api之后添加的一个属性值(一般用这个)fill_parent:当前控件铺满父类容器,2.3api之前的一个属性值2.Button和ImageButton:(1)共有的特性:都可以作为一个按钮产生点击事件;(2)不同点: 1>Button有text的属性,Ima
2016-11-09 10:47:13 373
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人