摘要: gridView = (GridView) findViewById(R.id.gridView); //这种赋值方式只适用于声明 并不是声明则得初始化就是new int[] images={R.drawable.sample_0,R.drawable.sample_1... 阅读全文
posted @ 2015-09-25 20:10 毕哥 阅读(209) 评论(0) 推荐(0) 编辑
摘要: drawable下有很多图片 可以 1 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2... 阅读全文
posted @ 2015-09-23 12:18 毕哥 阅读(810) 评论(0) 推荐(0) 编辑
摘要: 在ScrollView中的listView gridView添加适配器之后添加//设置gridView整体的高度 public void setListViewHeightBasedOnChildren(GridView gridView) { // 获取ListView对应的Adapter if( 阅读全文
posted @ 2015-09-22 22:31 毕哥 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 1 package com.qianfeng.gp08_day26_hanlder2; 2 3 import android.os.Bundle; 4 import android.os.Handler; 5 import android.app.Activity; 6 import andro... 阅读全文
posted @ 2015-09-19 22:28 毕哥 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 1 package com.example.gp08_day26_handler3; 2 3 import android.os.Bundle; 4 import android.os.Handler; 5 import android.os.Looper; 6 import android.o... 阅读全文
posted @ 2015-09-19 22:27 毕哥 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 1 package com.qianfeng.gp08_day24_internalstorage; 2 3 import java.io.FileInputStream; 4 import java.io.FileNotFoundException; 5 import java.io... 阅读全文
posted @ 2015-09-19 22:26 毕哥 阅读(560) 评论(0) 推荐(0) 编辑
摘要: 1 import android.os.Bundle; 2 import android.app.Activity; 3 import android.graphics.Color; 4 import android.view.Menu; 5 import android.view.MenuIte... 阅读全文
posted @ 2015-09-19 22:13 毕哥 阅读(303) 评论(0) 推荐(0) 编辑
摘要: 1 import java.lang.reflect.Method; 2 3 import android.os.Bundle; 4 import android.provider.Settings; 5 import android.app.Activity; 6 import android... 阅读全文
posted @ 2015-09-19 22:09 毕哥 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 1 import android.os.Bundle; 2 import android.app.Activity; 3 import android.app.Fragment; 4 import android.app.FragmentManager; 5 import android.view... 阅读全文
posted @ 2015-09-19 22:06 毕哥 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 1 import java.util.Date; 2 import java.util.LinkedList; 3 4 import com.qianfeng.gp08_day23_fragment5.fragment.TestFragment; 5 6 import android.os.B... 阅读全文
posted @ 2015-09-19 22:01 毕哥 阅读(291) 评论(0) 推荐(0) 编辑