随笔分类 - Android--小功能
记录小功能的实现方式,比如Tab切换等。
摘要:原文:ListView滑动删除 ,仿腾讯QQ(鸿洋_) 文章实现的功能是:在ListView的Item上从右向左滑时,出现删除按钮,点击删除按钮把Item删除。 看过文章后,感觉没有必要把dispatchTouchEvent()和onTouchEvent()两个方法都重写,只要重写onTouchEv
阅读全文
摘要:原文地址:http://blog.csdn.net/crazy1235/article/details/42678877 效果:滑动切换;点击标签切换。 代码:https://github.com/ldb-github/Layout_Tab 1、使用ViewPager和PagerTabStrip/P
阅读全文
摘要:原文地址:http://blog.csdn.net/crazy1235/article/details/42678877 效果:滑动切换;点击标签切换。 代码:https://github.com/ldb-github/Layout_Tab 1、布局:使用LinearLayout布置标签;再使用Vi
阅读全文
摘要:原文地址:http://blog.csdn.net/crazy1235/article/details/42678877 效果: 代码:https://github.com/ldb-github/Layout_Tab 1、布局:使用LinearLayout布置标签;再使用FrameLayout来布置
阅读全文
摘要:原文地址:http://blog.csdn.net/crazy1235/article/details/42678877 效果:滑动切换,自动切换。 代码:https://github.com/ldb-github/Layout_Tab 1、布局界面通过ViewPager标签来实现视图左右切换。 2
阅读全文
摘要:原文地址:http://blog.csdn.net/crazy1235/article/details/42678877 TabActivity在API13之后被fragment替代了,所以不建议使用 效果:点击头像标签,进行切换。 代码:https://github.com/ldb-github/
阅读全文