04 2015 档案
简单的导航viewpager
摘要:下载PagerSlidingTabStrip https://github.com/astuetz/PagerSlidingTabStrip主界面: 1 public class MainActivity extends FragmentActivity { 2 3 private ... 阅读全文
posted @ 2015-04-16 17:43 runleo 阅读(286) 评论(0) 推荐(0)
图片处理
摘要:1 public class BitmapUtil { 2 3 private static BitmapFactory.Options opt; 4 /** 5 * 从SD Card中获取图片 6 * 7 */ 8 public ... 阅读全文
posted @ 2015-04-16 16:00 runleo 阅读(132) 评论(0) 推荐(0)
指南针
摘要:1 public class SensorZhinan extends Activity implements SensorEventListener{ 2 3 private ImageView point; 4 private SensorManager sensor; 5 ... 阅读全文
posted @ 2015-04-16 15:50 runleo 阅读(121) 评论(0) 推荐(0)
activity管理
摘要:1 public class MainApp extends Application { 2 3 private static ArrayList> activitys; 4 public volatile static MainApp instance; 5 ... 阅读全文
posted @ 2015-04-16 15:46 runleo 阅读(162) 评论(0) 推荐(0)
图片轮播
摘要:自定义一个view 1 public class AdView extends RelativeLayout { 2 3 4 private List urls; 5 private ViewPager pager; 6 private int currentItem = 0; 7... 阅读全文
posted @ 2015-04-16 15:43 runleo