摘要:
android 使用Scroller实现缓慢移动 阅读全文
posted @ 2016-05-30 23:55
星辰之力
阅读(123)
评论(0)
推荐(0)
摘要:
RelativeLayout的意义: 布局各个部件的相对布局。使得界面空间合理利用。 一、ScrollView局限: 滑动的只能是linearlayout,甚至整个布局都不能有RelativeLayout。这使得让人觉得ScrollView控件有点鸡肋。其实不然.......... linearla 阅读全文
posted @ 2016-05-30 23:53
星辰之力
阅读(1449)
评论(0)
推荐(0)
摘要:
左右滑动的控件我们使用的也是非常多了,但是基本上都是使用的viewpager 等 android基础的控件,那么我们有么有考虑过查看他的源码进行定制呢?当然,如果你自我感觉非常好的话可以自己定制一个,osc的ScrollLayout就是自己定义的View 和Viewpager的区别还是不小的 代码不 阅读全文
posted @ 2016-05-30 23:50
星辰之力
阅读(2764)
评论(0)
推荐(0)
摘要:
这个是美团网个人订单的效果,找了很多地方都没找到,自己研究了两天终于弄出来了^_^,有什么问题希望大家指出来,谢谢。 实现原理是上方使用HorizontalScrollView这个可以水平横向拖动的控件,在其中加入了5个RadioButton;下方使用的是ViewPager,里面加入了7个Layou 阅读全文
posted @ 2016-05-30 17:03
星辰之力
阅读(1910)
评论(0)
推荐(0)
摘要:
Android 日历控件 mCalendarView 阅读全文
posted @ 2016-05-30 16:44
星辰之力
阅读(713)
评论(0)
推荐(0)
摘要:
22个值得收藏的android开源代码-UI篇 阅读全文
posted @ 2016-05-30 16:43
星辰之力
阅读(257)
评论(0)
推荐(0)
摘要:
/** * 获得指定日期的前一天 * @param specifiedDay * @return * @throws Exception */ public static String getSpecifiedDayBefore(String specifiedDay){ //SimpleDateFormat simpleDateFormat = new SimpleDateFor... 阅读全文
posted @ 2016-05-30 16:01
星辰之力
阅读(71221)
评论(2)
推荐(0)
摘要:
Calendar calendar = Calendar.getInstance(); calendar.add(Calendar.DATE, -1); //得到前一天 calendar.add(Calendar.MONTH, -1); //得到前一个月 int year = calendar.get(Calendar.YEAR); int month = c... 阅读全文
posted @ 2016-05-30 15:51
星辰之力
阅读(10349)
评论(0)
推荐(0)
摘要:
使用Calendar的add(int field, int amount)方法 Calendar ca = Calendar.getInstance();//得到一个Calendar的实例 ca.setTime(new Date()); //设置时间为当前时间 ca.add(Calendar.YEAR, -1); //年份减1 Date lastMonth = ca.getTime(); //结... 阅读全文
posted @ 2016-05-30 15:48
星辰之力
阅读(9335)
评论(0)
推荐(0)
摘要:
设置imageView显示网络上的图片 picUrl = new URL(getIntent().getExtras().getString("map_url")); Bitmap pngBM = BitmapFactory.decodeStream(picUrl.openStream()); mapIMG.setImageBitmap(pngBM); 阅读全文
posted @ 2016-05-30 12:58
星辰之力
阅读(3494)
评论(0)
推荐(0)
摘要:
目前下拉刷新已经满大街都是,在自己的应用如果不使用这个模式的话,出门都不好意思和人家打招呼,该文章就是简单探讨下针对于 github 上的这个开源项目的使用心得。 为什么是它?因为在 stackoverflow 上大家都说它不错,所以就试试看吧!该项目的位置 Android-PullToRefres 阅读全文
posted @ 2016-05-30 10:32
星辰之力
阅读(7605)
评论(0)
推荐(0)
摘要:
1.定义类MapListImageAndText管理ListViewItem中控件的内容 2. 定义类MapListViewCache实例化ListViewItem中的控件 3. 定义类AsyncImageLoader,开启线程下载指定图片 4. 定义类MapListImageAndTextList 阅读全文
posted @ 2016-05-30 10:12
星辰之力
阅读(1066)
评论(0)
推荐(0)
浙公网安备 33010602011771号