Android高手速成1--第一部分 个性化控件(View) - Aways.Online

Android高手速成1--第一部分 个性化控件(View) - Aways.Online

第一部分 个性化控件(View)

主要介绍那些不错个性化的View,包括ListView、ActionBar、Menu、ViewPager、Gallery、GridView、ImageView、ProgressBar、TextView、ScrollView、TimeView、TipView、FlipView、ColorPickView、GraphView、UI Style等等。

、其他

  1. android-pulltorefresh

    一个强大的拉动刷新开源项目,支持各种控件下拉刷新,ListView、ViewPager、WevView、ExpandableListView、GridView、ScrollView、Horizontal ScrollView、Fragment上下左右拉动刷新,比下面johannilsson那个只支持ListView的强大的多。并且他实现的下拉刷新ListView在item不足一屏情况下也不会显示刷新提示,体验更好。

    项目地址: https://github.com/chrisbanes/Android-PullToRefresh

    Demo地址: https://github.com/Trinea/TrineaDownload/blob/master/pull-to-refreshview-demo.apk?raw=true

    APP示例:新浪微博各个页面

  2. android-pulltorefresh-listview

    下拉刷新ListView

    项目地址: https://github.com/johannilsson/android-pulltorefresh

    Demo地址: https://github.com/Trinea/TrineaDownload/blob/master/pull-to-refresh-listview-demo.apk?raw=true

    PS:这个被很多人使用的项目实际有不少bug,推荐使用上面的android-pulltorefresh

  3. DragSortListView

    拖动排序的ListView,同时支持ListView滑动item删除,各个Item高度不一、单选、复选、CursorAdapter做为适配器、拖动背景变化等

    项目地址: https://github.com/bauerca/drag-sort-listview

    Demo地址: https://play.google.com/store/apps/details?id=com.mobeta.android.demodslv

    APP示例:Wordpress Android

  4. SwipeListView

    支持定义ListView左右滑动事件,支持左右滑动位移,支持定义动画时间

    项目地址: https://github.com/47deg/android-swipelistview

    Demo地址: https://play.google.com/store/apps/details?id=com.fortysevendeg.android.swipelistview

    APP示例:微信

  5. StickyListHeaders

    GroupName滑动到顶端时会固定不动直到另外一个GroupName到达顶端的ExpandListView,支持快速滑动,支持Android2.3及以上

    项目地址: https://github.com/emilsjolander/StickyListHeaders

    APP示例:Android 4.0联系人

    效果图: Renderings

  6. pinned-section-listview

    GroupName滑动到顶端时会固定不动直到另外一个GroupName到达顶端的ExpandListView

    项目地址: https://github.com/beworker/pinned-section-listview

    效果图: Renderings

  7. PinnedHeaderListView

    GroupName滑动到顶端时会固定不动直到另外一个GroupName到达顶端的ExpandListView

    项目地址: https://github.com/JimiSmith/PinnedHeaderListView

  8. QuickReturnHeader

    ListView/ScrollView的header或footer,当向下滚动时消失,向上滚动时出现

    项目地址: https://github.com/ManuelPeinado/QuickReturnHeader

    Demo地址: https://github.com/Trinea/TrineaDownload/blob/master/quick-return-header-demo.apk?raw=true

    APP示例:google plus

  9. IndexableListView

    ListView右侧会显示item首字母快捷索引,点击可快速滑动到某个item

    项目地址: https://github.com/woozzu/IndexableListView

    Demo地址:https://github.com/Trinea/TrineaDownload/blob/master/indexable-listview.apk?raw=true

    APP示例:微信通讯录、小米联系人

  10. CustomFastScrollView

    ListView快速滑动,同时屏幕中间PopupWindows显示滑动到的item内容或首字母

    项目地址: https://github.com/nolanlawson/CustomFastScrollViewDemo

    效果图: Renderings

  11. Android-ScrollBarPanel

    ListView滑动时固定的Panel指示显示在scrollbar旁边

    项目地址: https://github.com/rno/Android-ScrollBarPanel

    效果展示: https://github.com/rno/Android-ScrollBarPanel/raw/master/demo_capture.png

  12. SlideExpandableListView

    用户点击listView item滑出固定区域,其他item的区域收缩

    项目地址: https://github.com/tjerkw/Android-SlideExpandableListView

    Demo地址: https://github.com/Trinea/TrineaDownload/blob/master/slide-expandable-listView-demo.apk?raw=true

  13. JazzyListView

    ListView及GridView item以特殊动画效果进入屏幕,效果包括grow、cards、curl、wave、flip、fly等等

    项目地址: https://github.com/twotoasters/JazzyListView

    Demo地址: https://play.google.com/store/apps/details?id=com.twotoasters.jazzylistview.sample

    效果展示: http://lab.hakim.se/scroll-effects/

  14. ListViewAnimations

    带Item显示动画的ListView,动画包括底部飞入、其他方向斜飞入、下层飞入、渐变消失、滑动删除等

    项目地址: https://github.com/nhaarman/ListViewAnimations

    Demo地址: https://play.google.com/store/apps/details?id=com.haarman.listviewanimations

    APP示例:Google plus、Google Now卡片式进入、小米系统中应用商店、联系人、游戏中心、音乐、文件管理器的ListView、Ultimate、Light Flow Lite、TreinVerkeer、Running Coach、Pearl Jam Lyrics、Calorie Chart、Car Hire、Super BART、DK FlashCards、Counter Plus、Voorlees Verhaaltjes 2.0

  15. HorizontalVariableListView

    支持Item宽度不一致的ListView

    项目地址: https://github.com/sephiroth74/HorizontalVariableListView

  16. LinearListView

    用LinearLayout实现的ListView,可解决多个ListView并且等问题。目前自己也有需要,等亲自尝试过后会再具体介绍

    项目地址: https://github.com/frankiesardo/LinearListView

  17. EnhancedListView

    支持横向滑动滑动删除列表项以及撤销删除的ListView,该项目的前身是SwipeToDismissUndoList

    项目地址: https://github.com/timroes/EnhancedListView

    Demo地址: https://play.google.com/store/apps/details?id=de.timroes.android.listviewdemo&rdid=de.timroes.android.listviewdemo

  18. ListBuddies

    自动滚动的双列ListView ,两个ListView滚动速度不一致,有视差效果

    项目地址: https://github.com/jpardogo/ListBuddies

    Demo地址: https://play.google.com/store/apps/details?id=com.jpardogo.android.listbuddies

    效果展示: Renderings

  1. ActionBarSherlock

    为Android所有版本提供统一的ActionBar,解决4.0以下ActionBar的适配问题

    项目地址: https://github.com/JakeWharton/ActionBarSherlock

    Demo地址: https://play.google.com/store/apps/details?id=com.actionbarsherlock.sample.demos

    APP示例:太多了。。现在连google都在用

  2. ActionBar-PullToRefresh

    下拉刷新,ActionBar出现加载中提示

    项目地址: https://github.com/chrisbanes/ActionBar-PullToRefresh

    Demo地址: https://play.google.com/store/apps/details?id=uk.co.senab.actionbarpulltorefresh.samples.stock

    APP示例:Gmail,Google plus,知乎等

  3. FadingActionBar

    ListView向下滚动逐渐显现的ActionBar

    项目地址: https://github.com/ManuelPeinado/FadingActionBar

    Demo地址: https://play.google.com/store/apps/details?id=com.manuelpeinado.fadingactionbar.demo

    APP示例:google music,知乎

  4. NotBoringActionBar

    google music下拉收缩的ActionBar

    项目地址: https://github.com/flavienlaurent/NotBoringActionBar

    Demo地址: http://flavienlaurent.com/blog/2013/11/20/making-your-action-bar-not-boring/

    APP示例:Google音乐

  5. RefreshActionItem

    带进度显示和刷新按钮的ActionBar

    项目地址: https://github.com/ManuelPeinado/RefreshActionItem

    Demo地址: https://play.google.com/store/apps/details?id=com.manuelpeinado.refreshactionitem.demo

    APP示例:The New York Times,DevAppsDirect.

  6. GlassActionBar

    类似玻璃的有一定透明度的ActionBar

    项目地址: https://github.com/ManuelPeinado/GlassActionBar

    Demo地址: https://play.google.com/store/apps/details?id=com.manuelpeinado.glassactionbardemo

    APP示例:google music

  1. MenuDrawer

    滑出式菜单,通过拖动屏幕边缘滑出菜单,支持屏幕上下左右划出,支持当前View处于上下层,支持Windows边缘、ListView边缘、ViewPager变化划出菜单等。

    项目地址: https://github.com/SimonVT/android-menudrawer

    Demo地址: http://simonvt.github.io/android-menudrawer/

    APP示例:Gmail、Google Music等大部分google app

  2. SlidingMenu

    滑出式菜单,通过拖动屏幕边缘滑出菜单,支持屏幕左右划出,支持菜单zoom、scale、slide up三种动画样式出现。

    项目地址: https://github.com/jfeinstein10/SlidingMenu

    Demo地址: https://play.google.com/store/apps/details?id=com.slidingmenu.example

    APP示例:Foursquare, LinkedIn, Zappos, Rdio, Evernote Food, Plume, VLC for Android, ESPN ScoreCenter, MLS MatchDay, 9GAG, Wunderlist 2, The Verge, MTG Familiar, Mantano Reader, Falcon Pro (BETA), MW3 Barracks

    MenuDrawer和SlidingMenu比较:SlidingMenu支持菜单动画样式出现,MenuDrawer支持菜单view处于内容的上下层

  3. ArcMenu

    支持类似Path的左下角动画旋转菜单及横向划出菜单、圆心弹出菜单

    项目地址: https://github.com/daCapricorn/ArcMenu

    APP示例:Path

    效果图: Renderings

    https://dl.dropboxusercontent.com/u/11369687/preview1.png

    https://dl.dropboxusercontent.com/u/11369687/raymenu.png
  4. android-satellite-menu

    类似Path的左下角动画旋转菜单

    项目地址: https://github.com/siyamed/android-satellite-menu

    Demo地址:https://github.com/Trinea/TrineaDownload/blob/master/satellite-menu-demo.apk?raw=true

    APP示例:Path

  5. radial-menu-widget

    圆形菜单,支持二级菜单

    项目地址: https://code.google.com/p/radial-menu-widget/

    效果图:http://farm8.staticflickr.com/7377/11621125154_d1773c2dcc_o.jpg

  6. Android Wheel Menu

    圆形旋转选取菜单

    项目地址: https://github.com/anupcowkur/Android-Wheel-Menu

    效果图: Renderings

  7. FoldingNavigationDrawer

    滑动并以折叠方式打开菜单

    项目地址: https://github.com/tibi1712/FoldingNavigationDrawer-Android

    Demo地址: https://play.google.com/store/apps/details?id=com.ptr.folding.sample

    效果图: Renderings

  8. AndroidResideMenu

    仿 Dribbble 的边栏菜单

    项目地址: https://github.com/SpecialCyCi/AndroidResideMenu

    效果图: Renderings

四、ViewPager 、Gallery
  1. Android-ViewPagerIndicator

    配合ViewPager使用的Indicator,支持各种位置和样式

    项目地址: https://github.com/JakeWharton/Android-ViewPagerIndicator

    Demo地址: https://play.google.com/store/apps/details?id=com.viewpagerindicator.sample

    APP示例:太多了。。

  2. JazzyViewPager

    支持Fragment切换动画的ViewPager,动画包括转盘、淡入淡出、翻页、层叠、旋转、方块、翻转、放大缩小等

    项目地址: https://github.com/jfeinstein10/JazzyViewPager

    Demo地址:https://github.com/jfeinstein10/JazzyViewPager/blob/master/JazzyViewPager.apk?raw=true

    效果类似桌面左右切换的各种效果,不过桌面并非用ViewPager实现而已

  3. Android-DirectionalViewPager

    支持横向和纵向(垂直)的ViewPager

    项目地址: https://github.com/JakeWharton/Android-DirectionalViewPager

    Demo地址: https://market.android.com/details?id=com.directionalviewpager.sample

  4. android-pulltorefresh

    支持下拉刷新的ViewPager

    项目地址: https://github.com/chrisbanes/Android-PullToRefresh

    Demo地址: https://github.com/Trinea/TrineaDownload/blob/master/pull-to-refreshview-demo.apk?raw=true

    APP示例:新浪微博各个页面

  5. FancyCoverFlow

    支持Item切换动画效果的类似Gallery View

    项目地址: https://github.com/davidschreiber/FancyCoverFlow

    Demo地址: https://play.google.com/store/apps/details?id=at.technikum.mti.fancycoverflow.samples

    效果图: Renderings

  6. AndroidTouchGallery

    支持双击或双指缩放的Gallery(用ViewPager实现),相比下面的PhotoView,在被放大后依然能滑到下一个item,并且支持直接从url和文件中获取图片,

    项目地址: https://github.com/Dreddik/AndroidTouchGallery

    Demo地址:https://github.com/Trinea/TrineaDownload/blob/master/touch-gallery-demo.apk?raw=true

    APP示例:类似微信中查看聊天记录图片时可双击放大,并且放大情况下能正常左右滑动到前后图片

  7. Android Auto Scroll ViewPager

    Android自动滚动 轮播循环的ViewPager

    项目地址: https://github.com/Trinea/android-auto-scroll-view-pager

    Demo地址: https://play.google.com/store/apps/details?id=cn.trinea.android.demo

    文档介绍: http://www.trinea.cn/android/auto-scroll-view-pager/

  8. Salvage view

    带View缓存的Viewpager PagerAdapter,很方便使用

    项目地址: https://github.com/JakeWharton/salvage

  9. Android PagerSlidingTabStrip

    配合ViewPager使用的Indicator,支持ViewPager Scroll时Indicator联动

    项目地址: https://github.com/astuetz/PagerSlidingTabStrip

    Demo地址: https://play.google.com/store/apps/details?id=com.astuetz.viewpager.extensions.sample

  10. ViewPager3D

    ViewPager3D效果

    项目地址: https://github.com/inovex/ViewPager3D

  11. AnimaTabsview

    仿网易云音乐标签切换的动画,带透明小三角

    项目地址:  https://github.com/wuyexiong/transparent-over-animtabsview

    在线演示: http://v.youku.com/v_show/id_XNzA4MjY5NjA0.html

  1. StaggeredGridView

    允许非对齐行的GridView,类似Pinterest的瀑布流,并且跟ListView一样自带View缓存,继承自ViewGroup

    项目地址: https://github.com/maurycyw/StaggeredGridView

    Demo地址:https://github.com/Trinea/TrineaDownload/blob/master/staggered-gridview-demo.apk?raw=true

    APP示例:Pinterest等

  2. AndroidStaggeredGrid

    允许非对齐行的GridView,类似Pinterest的瀑布流,继承自AbsListView

    项目地址: https://github.com/etsy/AndroidStaggeredGrid

    APP示例:Pinterest等

  3. PinterestLikeAdapterView

    允许非对齐行的GridView,类似Pinterest的瀑布流,允许下拉刷新

    项目地址: https://github.com/GDG-Korea/PinterestLikeAdapterView

    APP示例:Pinterest等

  4. DraggableGridView

    Item可拖动交换位置的GridView,实际是自己继承ViewGroup实现,类似桌面的单屏效果,可屏幕自动上下滚动进行Item移动交换,多屏效果见下面PagedDragDropGrid

    项目地址: https://github.com/thquinn/DraggableGridView

    Demo地址:https://github.com/thquinn/DraggableGridView/blob/master/bin/DraggableGridViewSample.apk?raw=true

  5. StickyGridHeaders

    GroupName滑动到顶端时会固定不动直到另外一个GroupName到达顶端的GridView

    项目地址: https://github.com/TonicArtos/StickyGridHeaders

    效果图: Renderings

  6. PagedDragDropGrid

    Item可拖动交换位置、拖动删除的自定义控件,实际是自己继承ViewGroup实现,类似桌面的多屏效果,可拖动到屏幕边缘,屏幕自动左右滚动进行Item移动交换,可拖动进行删除,单屏效果见上面DraggableGridView

    项目地址: https://github.com/mrKlar/PagedDragDropGrid

    在线演示: http://youtu.be/FYTSRfthSuQ

  7. Android-DraggableGridViewPager

    Item可拖动交换位置的GridView,实际是自己继承ViewGroup实现,类似桌面的多屏效果,可屏幕自动左右滚动进行Item移动交换,单屏效果见上面DraggableGridView

    项目地址: https://github.com/zzhouj/Android-DraggableGridViewPager

    Demo地址: https://github.com/Trinea/trinea-download/blob/master/draggable-grid-viewpager-demo.apk?raw=true

  1. PhotoView

    支持双击或双指缩放的ImageView,在ViewPager等Scrolling view中正常使用,相比上面的AndroidTouchGallery,不仅支持ViewPager,同时支持单个ImageView

    项目地址: https://github.com/chrisbanes/PhotoView

    Demo地址: https://play.google.com/store/apps/details?id=uk.co.senab.photoview.sample

    APP示例:photup

  2. android-gif-drawable

    支持gif显示的view,用jni实现的,编译生成so库后直接xml定义view即可,而且本身不依赖于其他开源项目所以相对下面的ImageViewEx简单的多

    项目地址: https://github.com/koral--/android-gif-drawable

  3. ImageViewEx

    支持Gif显示的ImageView

    项目地址: https://github.com/frapontillo/ImageViewEx

    Demo地址:https://github.com/Trinea/TrineaDownload/blob/master/imageviewex-demo.apk?raw=true

    依赖很多,编译过程很繁琐!|_|!

  4. RoundedImageView

    带圆角的ImageView

    项目地址: https://github.com/vinc3m1/RoundedImageView

    效果图: Renderings

  5. ColorArt

    根据图片的均色设置背景色显示文字和图片,类似itune11中效果

    项目地址: https://github.com/MichaelEvans/ColorArt

    Demo地址: https://github.com/Trinea/TrineaDownload/blob/master/color-art-demo.apk?raw=true

  6. CircleImageView

    圆形的ImageView

    项目地址: https://github.com/hdodenhof/CircleImageView

    效果图: Renderings

  7. ImageViewZoom

    支持放大和平移的ImageView

    项目地址: https://github.com/sephiroth74/ImageViewZoom

    APP示例: https://play.google.com/store/apps/details?id=com.aviary.android.feather

  8. KenBurnsView

    实现Ken Burns effect效果,达到身临其境效果的ImageView

    项目地址: https://github.com/flavioarfaria/KenBurnsView

  9. CustomShapeImageView

    各种形状的ImageView, 相比上面的圆形ImageView,多了更多形状

    项目地址: https://github.com/MostafaGazar/CustomShapeImageView

    效果图: Renderings

  1. ProgressWheel

    支持进度显示的圆形ProgressBar

    项目地址: https://github.com/Todd-Davies/ProgressWheel

    Demo地址:https://github.com/Trinea/TrineaDownload/blob/master/progress-wheel-demo.apk?raw=true

  2. android-square-progressbar

    在图片周围显示进度

    项目地址: https://github.com/mrwonderman/android-square-progressbar

    Demo地址: https://play.google.com/store/apps/details?id=net.yscs.android.square_progressbar_example

    APP示例:square

    效果图: Renderings

  3. HoloCircularProgressBar

    Android4.1 时钟App样式

    项目地址: https://github.com/passsy/android-HoloCircularProgressBar

    APP示例:Android4.1时钟App

    效果图: Renderings

  4. ProgressButton

    通过图钉的不同状态显示进度

    项目地址: https://github.com/f2prateek/progressbutton

    文档介绍: http://f2prateek.com/progressbutton/

    效果图:Renderings

  5. GoogleProgressBar

    类似google 多个圆形卡片翻转的progressBar

    项目地址: https://github.com/jpardogo/GoogleProgressBar

    效果图: Renderings

  6. TH-ProgressButton

    带圆形进度显示的按钮

    项目地址; https://github.com/torryharris/TH-ProgressButton

    效果图: Renderings Renderings Renderings Renderings

  7. NumberProgressBar

    带数字进度的进度条

    项目地址: https://github.com/daimajia/NumberProgressBar

    效果图: Renderings

  8. CircularProgressDrawable

    带圆形进度显示的进度条

    项目地址: https://github.com/Sefford/CircularProgressDrawable

    效果图: Renderings

  9. circular-progress-button

    带进度显示的Button

    项目地址: https://github.com/dmytrodanylyk/circular-progress-button

    效果图: Renderings

包括TextView及所有继承自TextView控件,如EditText、Button、RadioButton

  1. android-flowtextview

    文字自动环绕其他View的Layout

    项目地址: https://code.google.com/p/android-flowtextview/

    效果图: http://i949.photobucket.com/albums/ad332/vostroman1500/1.png

  2. Android Form EditText

    验证输入合法性的编辑框,支持输入、英文、ip、url等多种正则验证

    项目地址: https://github.com/vekexasia/android-edittext-validator

    Demo地址: https://play.google.com/store/apps/details?id=com.andreabaccega.edittextformexample

  3. Emojicon

    支持emojis的TextView和EditText

    项目地址: https://github.com/rockerhieu/emojicon

    文档地址: http://rockerhieu.com/emojicon/

  4. android-circlebutton

    Android圆形按钮,实际实现是继承自ImageView

    项目地址: https://github.com/markushi/android-circlebutton

    Demo地址: https://github.com/markushi/android-circlebutton/blob/master/example/example.apk

  5. Segmented Radio Buttons for Android

    iOS’s segmented controls的实现

    项目地址: https://github.com/vinc3m1/android-segmentedradiobutton

    Demo地址:https://github.com/thquinn/DraggableGridView/blob/master/bin/DraggableGridViewSample.apk?raw=true

    效果图: Renderings

  6. Chips EditText Library

    支持国家名字联想从而选择显示该国国旗的EditText,实际就是通过SpannableStringBuilder实现

    项目地址: https://github.com/kpbird/chips-edittext-library

    Demo地址: https://github.com/kpbird/chips-edittext-library/tree/master/ChipsEditTextDemo/bin

  7. AutoFitTextView

    可固定边界内容字体大小自适应的TextView

    项目地址: https://github.com/grantland/android-autofittextview

  8. Shimmer for Android

    文字发淡光的TextView

    项目地址: https://github.com/RomainPiel/Shimmer-android

  9. Titanic

    可以显示水位上升下降(不知道该怎么描述 囧)的TextView

    项目地址: https://github.com/RomainPiel/Titanic

    效果图: Renderings

  10. android-iconify

    提供带Icon的TextView,Menu,Button等

    项目地址: https://github.com/JoanZapata/android-iconify

  11. Calligraphy

    让我们在android开发中使用自定义字体变得更加简单

    项目地址 : https://github.com/chrisjenx/Calligraphy

    效果图: Renderings

  12. CreditsRoll

    类似星球大战字幕效果的TextView

    项目地址: https://github.com/frakbot/CreditsRoll

  13. android-process-buton

    带加载或提交进度的Button

    项目地址: https://github.com/dmytrodanylyk/android-process-buton

  1. Discrollview

    支持滚动时Item淡入淡出,平移,缩放效果的ScrollView

    项目地址: https://github.com/flavienlaurent/discrollview

    Demo地址:https://github.com/flavienlaurent/discrollview/raw/master/sample.apk

  2. PullScrollView

    仿照新浪微博Android客户端个人中心的ScrollView,下拉背景伸缩回弹效果。

    项目地址: https://github.com/MarkMjw/PullScrollView

    效果图: Renderings

  3. ParallaxScrollView

    支持视差滚动的ScrollView ,背景图片的滚动速度小于ScrollView中子控件的滚动速度

    项目地址: https://github.com/chrisjenx/ParallaxScrollView

    Demo地址:http://cloud.github.com/downloads/chrisjenx/ParallaxScrollView/ParallaxScrollViewDemo-v1.0.5.apk

包括TimePicker、DatePicker、CalendarView、Clock等时间相关控件

  1. android-times-square

    Android日历时间部件,支持选取单个日期,多个日期,及日期区间段和对话框形式显示

    项目地址: https://github.com/square/android-times-square

    Demo地址: https://github.com/Trinea/TrineaDownload/blob/master/times-square-demo.apk?raw=true

  2. AndroidWheel

    Android Wheel支持城市、多种日期时间、密码、图片

    项目地址: https://code.google.com/p/android-wheel/

    效果图:Renderings

  3. GoogleDateTimePickers

    时间选择部件

    项目地址: https://github.com/Mirkoddd/GoogleDateTimePickers

    文档地址: https://play.google.com/store/apps/details?id=com.mirko.sample&hl=it

包括Toast、角标、UndoBar等提示性控件

    1. Crouton

      丰富样式的Toast,允许alert、comfirm、info样式及点击消失样式,允许设置Toast显示时间,允许自定义View。 本文32. SuperToasts为其扩展版

      项目地址: https://github.com/keyboardsurfer/Crouton

      Demo地址: http://play.google.com/store/apps/details?id=de.keyboardsurfer.app.demo.crouton

    2. supertooltips

      带动画效果的Tips显示

      项目地址: https://github.com/nhaarman/supertooltips

      Demo地址: https://play.google.com/store/apps/details?id=com.haarman.supertooltips

    3. Android ViewBadger

      为其他View添加角标等

      项目地址: https://github.com/jgilfelt/android-viewbadger

      Demo地址:https://github.com/Trinea/TrineaDownload/blob/master/android-viewbadger.apk?raw=true

      效果图: Renderings

    4. SuperToasts

      更丰富样式的toast,支持Button、Progress、Horizontal Progress样式、支持进入动画、支持撤销及其动画设置

      项目地址: https://github.com/JohnPersano/SuperToasts

      Demo地址: https://play.google.com/store/apps/details?id=com.supertoastsdemo

      效果图:SuperButtonToast

    5. UndoBar

      屏幕底部显示取消或是确认的PopupWindows

      项目地址: https://github.com/soarcn/UndoBar

      效果图: Renderings

    6. UndoBar

      屏幕底部显示取消或是确认某操作

      项目地址: https://github.com/jenzz/Android-UndoBar

      效果图:

    7. 十二、FlipView
      1. android-flip

        类似Flipboard翻转动画的实现

        项目地址: https://github.com/openaphid/android-flip

        Demo地址: https://github.com/openaphid/android-flip/blob/master/FlipView/Demo/APK/Aphid-FlipView-Demo.apk?raw=true

        APP示例:flipboard

      2. FlipImageView

        支持x、y、z及动画选择的翻转动画的实现

        项目地址: https://github.com/castorflex/FlipImageView

        Demo地址: https://play.google.com/store/apps/details?id=fr.castorflex.android.flipimageview

      3. FoldableLayout

        Flip翻转效果的ListView,目前还不支持ListView缓存

        项目地址: https://github.com/alexvasilkov/FoldableLayout

        Demo地址: http://play.google.com/store/apps/details?id=com.alexvasilkov.foldablelayout.sample

      十三、ColorPickView
      1. ColorPickerView

        颜色选择器,支持PopupWindows或新的Activity中打开

        项目地址: https://code.google.com/p/color-picker-view/

        效果图:Renderings

      2. ColorPickerPreference

        颜色选择器

        项目地址: https://github.com/attenzione/android-ColorPickerPreference

        效果图: Renderings

      1. achartengine

        强大的图表绘制工具,支持折线图、面积图、散点图、时间图、柱状图、条图、饼图、气泡图、圆环图、范围(高至低)条形图、拨号图/表、立方线图及各种图的结合

        项目地址: https://code.google.com/p/achartengine/

        官方网站: http://www.achartengine.org/

        效果图:Renderings

        http://www.achartengine.org/dimages/sales_line_and_area_chart.png

        http://www.achartengine.org/dimages/temperature_range_chart.png

        http://www.achartengine.org/dimages/combined_chart.png

        http://www.achartengine.org/dimages/budget_chart.png

        APP示例:Wordpress Android,Google Analytics

      2. GraphView

        绘制图表和曲线图的View,可用于Android上的曲形图、柱状图、波浪图展示

        项目地址: https://github.com/jjoe64/GraphView

        Demo地址: https://play.google.com/store/apps/details?id=com.sothree.umano

        Demo项目: https://github.com/jjoe64/GraphView-Demos

        APP示例:Wordpress Android,Google Analytics

      3. HoloGraphLibrary

        绘制现状图、柱状图、饼状图

        项目地址: https://bitbucket.org/danielnadeau/holographlibrary/src

        文档介绍:https://bitbucket.org/danielnadeau/holographlibrary/wiki/Home

      不同样式的系统UI风格,如IOS、Bootstrap风格

      1. UITableView

        ios风格控件,包括Button、ListView、TableView

        项目地址: https://github.com/thiagolocatelli/android-uitableview

        Demo地址:https://github.com/Trinea/TrineaDownload/blob/master/ui-tableview-demo.apk?raw=true

      2. Cards-UI

        卡片式View,支持单个卡片,item为卡片的ListView

        项目地址: https://github.com/afollestad/Cards-UI

        Demo地址:https://github.com/Trinea/TrineaDownload/blob/master/cards-ui-demo.apk?raw=true

      3. cardslib

        卡片式View,支持单个卡片,item为卡片的ListView和GridView

        项目地址: https://github.com/gabrielemariotti/cardslib

        Demo地址: https://play.google.com/store/apps/details?id=it.gmariotti.cardslib.demo

      4. Android-Bootstrap

        Bootstrap 风格的按钮

        项目地址:  https://github.com/Bearded-Hen/Android-Bootstrap

        效果图: Renderings

      1. SwipeBackLayout

        左右或向上滑动返回的Activity

        项目地址: https://github.com/Issacw0ng/SwipeBackLayout

        Demo地址: https://play.google.com/store/apps/details?id=me.imid.swipebacklayout.demo

        APP示例:知乎

      2. android-styled-dialogs

        可自定义样式的dialog,默认与Holo主题样式一致,在Android2.2以上同一样式

        项目地址: https://github.com/inmite/android-styled-dialogs

        Demo地址:https://github.com/Trinea/TrineaDownload/blob/master/styled-dialogs-demo.apk?raw=true

      3. Android Sliding Up Panel

        可拖动的View,能在当前Activity上扶起一个可拖动的Panel

        项目地址: https://github.com/umano/AndroidSlidingUpPanel

        Demo地址: https://play.google.com/store/apps/details?id=com.sothree.umano

        APP示例:Google Music精简播放栏

      4. AndroidWheel

        Android Wheel支持城市、多种日期时间、密码、图片

        项目地址: https://code.google.com/p/android-wheel/

        效果图:Renderings

      5. TableFixHeaders

        第一列固定的Table

        项目地址: https://github.com/InQBarna/TableFixHeaders

        Demo地址: http://bit.ly/13buAIq

      6. Inscription

        可用于展示应用change和new feature信息

        项目地址: https://github.com/MartinvanZ/Inscription

      7. ActivityTransition

        Activity切换动画,包括渐变、flip、某个位置进入等等

        项目地址: https://github.com/ophilbert/ActivityTransition

        使用介绍:https://github.com/jfeinstein10/JazzyViewPager/blob/master/JazzyViewPager.apk?raw=true

        效果图:类似桌面左右切换的各种效果,不过桌面并非用ViewPager实现而已

      8. GlowPadBackport

        将Android4.2的锁屏界面解锁扩展到Android1.6及1.6+

        项目地址: https://github.com/rock3r/GlowPadBackport

        Demo地址: https://play.google.com/store/apps/details?id=net.sebastianopoggi.samples.ui.GlowPadSample

        效果图: Renderings

      9. GlowPadView

        Android4锁屏界面解锁

        项目地址: https://github.com/nadavfima/GlowPadView

        效果图:https://raw.github.com/nadavfima/GlowPadView/master/example.png

      10. android-lockpattern

        Android的图案密码解锁

        项目地址: https://code.google.com/p/android-lockpattern/

        Demo地址: https://play.google.com/store/apps/details?id=group.pals.android.lib.ui.lockpattern.demo

        使用介绍: https://code.google.com/p/android-lockpattern/wiki/QuickUse

        APP示例:Android开机的图案密码解锁,支付宝的密码解锁

      11. RangeBar

        类似于SeekBar,不同的是可以选择一个范围内的值而不是单个值

        项目地址: https://github.com/edmodo/range-bar

        Demo地址:https://github.com/Trinea/TrineaDownload/blob/master/range-bar-demo.apk?raw=true

        效果图: Renderings

      12. ChromeView

        利用Chromium实现的WebView,解决各个Android版本WebView不同的问题,同时利用最新Chrome代码

        项目地址: https://github.com/pwnall/chromeview

      13. Android Slider Preference Library

        可添加到设置中的基于对话框的RankBar小部件

        项目地址: https://github.com/jayschwa/AndroidSliderPreference

      14. ShowcaseView library

        用于高亮显示应用程序的特定部分,从而突出突出重点

        项目地址: https://github.com/amlcurran/ShowcaseView

      15. android-segmented-control

        Android上的Segmented Controls,相当于RadioButton组

        项目地址: https://github.com/hoang8f/android-segmented-control

      16. Swipeable Cards

        类似Tinder的卡片效果,可以加载图片并动画效果展示,向左滑动表示喜欢,向右表示不喜欢

        项目地址: https://github.com/kikoso/Swipeable-Cards

        Demo地址: https://play.google.com/store/apps/details?id=info.hoang8f.fbutton.demo

      17. EdgeEffectOverride

        改变ScrollView, ListView, ExpandableListView, GridView, ViewPager等滚动控件滚动到边缘的颜色效果

        项目地址: https://github.com/AndroidAlliance/EdgeEffectOverride


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
仿zaker效果的拖拽排序。可以动态设置列数,动态增加或者减少item,当一页填满自动增加到下一页,当页数大于1,可以左右翻页。项目地址:https://github.com/zzhouj/Android-DraggableGridViewPager 效果图:  如何使用:xml中创建<com.coco.draggablegridviewpager.DraggableGridViewPager><com.coco.draggablegridviewpager.DraggableGridViewPager         android:id="@ id/draggable_grid_view_pager"         android:layout_width="match_parent"         android:layout_height="match_parent"         android:paddingBottom="20dp"         android:paddingLeft="20dp"         android:paddingRight="60dp"         android:paddingTop="20dp" >     </com.coco.draggablegridviewpager.DraggableGridViewPager>2. 为DraggableGridViewPager设置AdaptermAdapter = new ArrayAdapter<String>(this, 0) {     @Override     public View getView(int position, View convertViewViewGroup parent) {         final String text = getItem(position); if (convertView == null) {     convertView = (TextView) getLayoutInflater().inflate(R.layout.draggable_grid_item, null); } ((TextView) convertView).setText(text); return convertView;     } }; mDraggableGridViewPager.setAdapter(mAdapter);3. 为DraggableGridViewPager设置监听器mDraggableGridViewPager.setOnPageChangeListener(new OnPageChangeListener() {//页面滚动监听 @Override public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {//页面正在滚动时触发     //System.out.println("onPageScrolled 滚动了"); } @Override public void onPageSelected(int position) {//由于页面滚动,导致页面发生变化     //System.out.println("onPageScrolled 页面变化了 position="   position); } @Override public void onPageScrollStateChanged(int state) {//滚动时,监听滚动状态的变化     //System.out.println("onPageScrolled 滚动状态state="   state); } }); mDraggableGridViewPager.setOnItemClickListener(new OnItemClickListener() {//单击某一item时触发 @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { showToast(((TextViewview).getText().toString()); } }); mDraggableGridViewPager.setOnItemLongClickListener(new OnItemLongClickListener() {//长按某一item触发 @Override public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) { showToast(((TextViewview).getText().toString()   " long clicked!!!"); return true; } }); mDraggableGridViewPager.setOnRearrangeListener(new OnRearrangeListener() {//拖动导致重新排序触发 @Override public void onRearrange(int oldIndex, int newIndex) { System.out.println("onPageScrolled OnRearrangeListener.onRearrange from="   oldIndex   ", to="   newIndex); String item = mAdapter.getItem(oldIndex); mAdapter.setNotifyOnChange(false); mAdapter.remove(item); mAdapter.insert(item, newIndex); mAdapter.notifyDataSetChanged(); } });

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值