android 開源組件合集-UI篇

by:http://blog.csdn.net/ethan_xue/article/details/8742691

其實也算不上合集,只是將我經常用到的部分整理一下,如果您有好東西,也可以留言補充,

可以參照應用Libraries for developers,ios的參照Libraries for developers Pro

1.actionbar

http://actionbarsherlock.com/

https://github.com/JakeWharton/ActionBarSherlock (推薦)
1.0 最近看到有人整理了一部分

https://github.com/Trinea/android-open-project,

2.下拉刷新pulltorefresh

https://github.com/chrisbanes/Android-PullToRefresh

支持各種控件下拉刷新
ListView、ViewPager、WevView、ExpandableListView、GridView、(Horizontal


)ScrollView、Fragment上下左右拉動刷新,比下面johannilsson那個只支持ListView的強大的多。並且他實現的下拉刷新ListView在item不足一屏情況下也不會顯示刷新提示,體驗更好



3.viewflow

https://github.com/pakerfeldt/android-viewflow

 

4.viewpagerIndicator

https://github.com/JakeWharton/Android-ViewPagerIndicator

直接繼承自ViewPager,主要在onInterceptTouchEvent()和onTouchEvent()裏面加入了對於垂直方向滑動的支持.並提供了setOrientation()這個方法


tab底部的下劃線是會隨着pager的滑動而實時變化,而論壇裏很多demo則是標籤頁切換時下劃線的動畫效果,二者是有區別的

參照http://blog.csdn.net/lancees/article/details/9164421

5.IndexableListView

https://github.com/woozzu/IndexableListView

 ListView右側會顯示item首字母快捷索引,點擊可快速滑動到某個item

5.1CustomFastScrollViewDemo

https://github.com/nolanlawson/CustomFastScrollViewDemo

ListView快速滑動,同時屏幕中間PopupWindows顯示滑動到的item內容或首字母

6.RefreshableListView

https://github.com/woozzu/RefreshableListView

7.NewQuickAction3D

https://github.com/lorensiuswlt/NewQuickAction3D

  

8.FlipAnimatorExample

http://code.google.com/p/myandroidwidgets

9.NineOldAndroids

https://github.com/JakeWharton/NineOldAndroids

10.AndroidWheel

https://github.com/sephiroth74/AndroidWheel


11.android-wheel

http://code.google.com/p/android-wheel

12.cardsui-for-android

https://github.com/nadavfima/cardsui-for-android


13.RibbonMenu

https://github.com/darvds/RibbonMenu 

14.SwitchButton

https://github.com/IssacWang/SwitchButton

15.undergarment

https://github.com/eddieringle/android-undergarment

16.仿flipboard動畫

https://github.com/openaphid/android-flip

17.drag-sort-listview 支持拖拽順序和左右滑動刪除功能的自定義ListView

https://github.com/bauerca/drag-sort-listview

18.SideNavigation

https://github.com/johnkil/SideNavigation

19.PhotoView

https://github.com/chrisbanes/PhotoView

20.sidemenu

https://github.com/maddeye/android-sidemenu

21.仿flipboard動畫

https://github.com/openaphid/android-flip

22.Holo風格

https://github.com/Prototik/HoloEverywhere

23.側滑菜單slidingMenu

https://github.com/jfeinstein10/SlidingMenu


24.標題會固定在上方的listview

https://github.com/emilsjolander/StickyListHeaders

效果圖https://raw.github.com/emilsjolander/StickyListHeaders/master/demo.gif

25.仿flipboard動畫

https://github.com/emilsjolander/android-FlipView

26.標題會固定在上方的gridview

https://github.com/TonicArtos/StickyGridHeaders

27.單個item會打開的listview

https://github.com/tjerkw/Android-SlideExpandableListView

28.轉盤菜單

http://code.google.com/p/radial-menu-widget/

29.通訊錄般的listview

https://github.com/woozzu/IndexableListView

30.範圍seekbar

https://code.google.com/p/range-seek-bar/

31.範圍seekbar2

https://github.com/edmodo/range-bar


32.msg (類似Toast)

https://github.com/johnkil/Android-AppMsg

33.AutoScaleTextView

https://bitbucket.org/ankri/autoscaletextview/src/fd5625ceb37b5cf18b8bf1e0c3c20dca569de80d?at=default

34.ProgressButton

https://github.com/f2prateek/progressbutton

35.PagerSlidingTabStrip

https://github.com/astuetz/PagerSlidingTabStrip


36.圓形progressbar

https://github.com/ymotoba/pinprogress

37.gesture-imageview (類似PhotoView可縮放,貌似比PView更強大)

https://github.com/jasonpolites/gesture-imageview

38.staggeredGridView 瀑布流

https://github.com/maurycyw/StaggeredGridView

39.Crouton (類似Toast和AppMsg)

https://github.com/keyboardsurfer/Crouton

可以讓開發者對環境中的Toast進行替換的類,以一個應用程序窗口的方式顯示,而其顯示位置則由開發者自己決定。


40.android-menudrawer

https://github.com/SimonVT/android-menudrawer

 

41.ActionBar-PullToRefresh ActionBar的下拉刷新

https://github.com/chrisbanes/ActionBar-PullToRefresh


42.pinned-section-listview

https://github.com/beworker/pinned-section-listview

GroupName滑動到頂端時會固定不動直到另外一個GroupName到達頂端的ExpandListView


43.Left Locked Gallery 

 android官方的Gallery是center lock的 意思是你只能居中顯示你選中的item

https://github.com/TheLevelUp/android-left-locked-gallery

44.Bootstrap3.0風格的組件

https://github.com/Bearded-Hen/Android-Bootstrap


45.android-swipelistview

https://github.com/47deg/android-swipelistview


46.PinnedHeaderListView

https://github.com/JimiSmith/PinnedHeaderListView

GroupName滑動到頂端時會固定不動直到另外一個GroupName到達頂端的ExpandListView

47.QuickReturnHeader

https://github.com/ManuelPeinado/QuickReturnHeader

ListView/ScrollView的header或footer,當向下滾動時消失,向上滾動時出現

48.Android-ScrollBarPanel

https://github.com/rno/Android-ScrollBarPanel

 ListView滑動時固定的Panel指示顯示在scrollbar旁邊


49.jazzylistview

https://github.com/twotoasters/JazzyListView

ListView及GridView item以特殊動畫效果進入屏幕,效果包括grow、cards、curl、wave、flip、fly等等

50.ListViewAnimations

https://github.com/nhaarman/ListViewAnimations

 帶Item顯示動畫的ListView,動畫包括底部飛入、其他方向斜飛入、下層飛入、漸變消失、滑動刪除等

51. DevsmartLib-Android 橫向ListView

https://github.com/dinocore1/DevsmartLib-Android

52.NiftyDialogEffects 多種dialog的彈出效果

 https://github.com/sd6352051/NiftyDialogEffects

53.RiseNumber

https://github.com/sd6352051/RiseNumber
 54.NiftyNotification

https://github.com/sd6352051/NiftyNotification

55.CountZeroView

https://github.com/sd6352051/CountZeroView

56.titanic

https://github.com/RomainPiel/Titanic

57.ExpandableTextView 

https://github.com/Manabu-GT/ExpandableTextView

58.SecretTextView

https://github.com/matthewrkula/SecretTextView

59.HighlightedTextView

https://github.com/ronniesun/HighlightedTextView

60.ProgressTextView

https://github.com/beiliubei/ProgressTextView

61.ToggleButton 

https://github.com/zcweng/ToggleButton

62.TouchImageView 實現圖片雙擊放大縮小,支持viewpager和scaletype等

https://github.com/MikeOrtiz/TouchImageView

/************************************************可能報錯的解決方法(部分取自網絡)*********************************************************/

23.SlidingMenu 

     <1>. 在github上有一個效果不錯的開源庫,SlidingMenu 最新的代碼下載下來後,會報錯:

      No resource found that matches the given name: attr 'homeAsUpIndicator'.

      No resource found that matches the given name 'Theme.Sherlock.Light.DarkActionBar'.


      原因是它本身又引用了另外一個開源庫 ActionBarSherlock ,所以首先要做的就是去下載 ActionBarSherlock,引用其中的library。

      <2>. 這樣,SlidingMenu 的示例代碼就引用了兩個library,這時候還不能用,項目報錯:
      
      Jar mismatch! Fix your dependencies
     
       解決此問題的方法見 http://blog.csdn.net/java_crab/article/details/8477416 ,其實就是需要兩個library使用的support包是一樣的。

       <3>. 解決了上面的問題之後,還會出現下面的問題:
      可能報找不到getSupportActionBar等ActionBarSherLock的方法。原因是使用ActionBarSherLock的Activity需繼承於SherlockActivity,修改SlidingMenu library中的SlidingFragmentActivity,讓它繼承於SherlockFragmentActivity,重新編譯library導入。

        經過以上三個步驟之後,就可以成功的編譯通過SlidingMenu提供的示例代碼!

39.Crouton

需要引入actionbarshelock和viewpagerIndicator

其他貌似都引入easy

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章