摘要: package com.example.second; import java.util.zip.Inflater; import android.support.v7.app.ActionBarActivity;import android.app.AlertDialog;import andro 阅读全文
posted @ 2016-03-26 12:12 yuxiao_l 阅读(130) 评论(0) 推荐(0) 编辑
摘要: MainActivity.java主要代码: public class MainActivity extends ActionBarActivity { public ListView lv; public int[] imageIDS={R.drawable.a,R.drawable.b,R.dr 阅读全文
posted @ 2016-03-26 12:09 yuxiao_l 阅读(197) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com 阅读全文
posted @ 2016-03-26 12:02 yuxiao_l 阅读(146) 评论(0) 推荐(0) 编辑
摘要: package com.example.first; import java.util.ArrayList;import java.util.HashMap;import java.util.List;import java.util.Map;import java.util.zip.Inflate 阅读全文
posted @ 2016-03-26 12:02 yuxiao_l 阅读(118) 评论(0) 推荐(0) 编辑
摘要: package com.example.second; import android.support.v7.app.ActionBarActivity;import android.os.Bundle;import android.view.Gravity;import android.view.M 阅读全文
posted @ 2016-03-26 11:59 yuxiao_l 阅读(214) 评论(0) 推荐(0) 编辑
摘要: <TableLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_pare 阅读全文
posted @ 2016-03-26 11:56 yuxiao_l 阅读(473) 评论(0) 推荐(0) 编辑
摘要: 注:1.android:padding="25dp"是指内容距离边框本身25dp,是内部与边界的关系。若是paddingleft=“25dp”则仅有左边界距离边框25dp2.Android:alignLeft="@id/+"是指对齐属性,其中的Left可替换为Right,Top,BottomAndr 阅读全文
posted @ 2016-03-26 11:54 yuxiao_l 阅读(780) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-03-26 11:52 yuxiao_l 阅读(159) 评论(0) 推荐(0) 编辑