上一页 1 ··· 3 4 5 6 7 8 下一页
摘要: xml<RelativeLayout xmlns: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" tools:context=".MainActivity" ><ListView an 阅读全文
posted @ 2013-03-10 00:22 小三小山 阅读(110) 评论(0) 推荐(0) 编辑
摘要: mainactivity.xml<LinearLayout xmlns: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" tools:context=".MainActivity" > < 阅读全文
posted @ 2013-03-10 00:19 小三小山 阅读(110) 评论(0) 推荐(0) 编辑
摘要: <LinearLayout xmlns: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" tools:context=".MainActivity" > <ListView androi 阅读全文
posted @ 2013-03-09 17:23 小三小山 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 主xml中<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <ListView android:id="@+id/listview1" android:layout_width="match_parent" android:layout_ 阅读全文
posted @ 2013-03-09 17:21 小三小山 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 第一种listviewxml文件中<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <ListView android:id="@+id/listview1" android:entries="@array/info" android:l 阅读全文
posted @ 2013-03-09 17:11 小三小山 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 事件监听器方式一:匿名内部类,直接在组件上添加监听器;例子如下button.setOnclickListener(new OnClickListener(){ System.out.println("hahahh"); });监听方式二:实现某个监听器的接口,然后在添加该接口的实现类实现监听机制;public class MainActivity extends Activity implements OnClickListener{ protected void onCreate(Bundle savedInstanceState) { ... 阅读全文
posted @ 2013-03-09 17:06 小三小山 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 例子一:实现下拉列表在res文件下中的values目录中创建array.xml文件<?xml version="1.0" encoding="utf-8"?><resources> <string-array name="address"> <item>厦门</item> <item>上海</item> <item>浙江</item> <item>江西</item> </string-array&g 阅读全文
posted @ 2013-03-09 16:46 小三小山 阅读(316) 评论(0) 推荐(0) 编辑
摘要: <LinearLayout xmlns: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" tools:context=".Ma 阅读全文
posted @ 2013-03-09 16:38 小三小山 阅读(145) 评论(0) 推荐(0) 编辑
摘要: <LinearLayout xmlns: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" tools:context=".MainActivity" > <RadioGroup andr 阅读全文
posted @ 2013-03-09 16:36 小三小山 阅读(132) 评论(0) 推荐(0) 编辑
摘要: <RelativeLayout xmlns: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" tools:context=".MainActivity" ><!-- 相对布局 --> 阅读全文
posted @ 2013-03-09 16:32 小三小山 阅读(112) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 下一页