Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

for merge

  • Loading branch information...
commit c7775f4443abc45675160cae33d6f35dcc2be5c4 1 parent 8b231bf
@mariotaku authored
Showing with 512 additions and 259 deletions.
  1. +4 −3 AndroidManifest.xml
  2. +3 −7 README.markdown
  3. BIN  res/drawable-hdpi/shadow_holo.9.png
  4. BIN  res/drawable-hdpi/spinner_16_inner_holo.png
  5. BIN  res/drawable-hdpi/spinner_16_outer_holo.png
  6. BIN  res/drawable-hdpi/spinner_48_inner_holo.png
  7. BIN  res/drawable-hdpi/spinner_48_outer_holo.png
  8. BIN  res/drawable-hdpi/spinner_76_inner_holo.png
  9. BIN  res/drawable-hdpi/spinner_76_outer_holo.png
  10. BIN  res/drawable-hdpi/spinner_black_16.png
  11. BIN  res/drawable-hdpi/spinner_black_48.png
  12. BIN  res/drawable-hdpi/spinner_black_76.png
  13. BIN  res/drawable-mdpi/btn_check_off_disabled_focused_holo_dark.png
  14. BIN  res/drawable-mdpi/btn_check_off_disabled_focused_holo_light.png
  15. BIN  res/drawable-mdpi/btn_check_off_disabled_holo_dark.png
  16. BIN  res/drawable-mdpi/btn_check_off_disabled_holo_light.png
  17. BIN  res/drawable-mdpi/btn_check_off_focused_holo_dark.png
  18. BIN  res/drawable-mdpi/btn_check_off_focused_holo_light.png
  19. BIN  res/drawable-mdpi/btn_check_off_holo_dark.png
  20. BIN  res/drawable-mdpi/btn_check_off_holo_light.png
  21. BIN  res/drawable-mdpi/btn_check_off_pressed_holo_dark.png
  22. BIN  res/drawable-mdpi/btn_check_off_pressed_holo_light.png
  23. BIN  res/drawable-mdpi/btn_check_on_disabled_focused_holo_dark.png
  24. BIN  res/drawable-mdpi/btn_check_on_disabled_focused_holo_light.png
  25. BIN  res/drawable-mdpi/btn_check_on_disabled_holo_dark.png
  26. BIN  res/drawable-mdpi/btn_check_on_disabled_holo_light.png
  27. BIN  res/drawable-mdpi/btn_check_on_focused_holo_dark.png
  28. BIN  res/drawable-mdpi/btn_check_on_focused_holo_light.png
  29. BIN  res/drawable-mdpi/btn_check_on_holo_dark.png
  30. BIN  res/drawable-mdpi/btn_check_on_holo_light.png
  31. BIN  res/drawable-mdpi/btn_check_on_pressed_holo_dark.png
  32. BIN  res/drawable-mdpi/btn_check_on_pressed_holo_light.png
  33. BIN  res/drawable-mdpi/btn_radio_off_disabled_focused_holo_dark.png
  34. BIN  res/drawable-mdpi/btn_radio_off_disabled_focused_holo_light.png
  35. BIN  res/drawable-mdpi/btn_radio_off_disabled_holo_dark.png
  36. BIN  res/drawable-mdpi/btn_radio_off_disabled_holo_light.png
  37. BIN  res/drawable-mdpi/btn_radio_off_focused_holo_dark.png
  38. BIN  res/drawable-mdpi/btn_radio_off_focused_holo_light.png
  39. BIN  res/drawable-mdpi/btn_radio_off_holo_dark.png
  40. BIN  res/drawable-mdpi/btn_radio_off_holo_light.png
  41. BIN  res/drawable-mdpi/btn_radio_off_pressed_holo_dark.png
  42. BIN  res/drawable-mdpi/btn_radio_off_pressed_holo_light.png
  43. BIN  res/drawable-mdpi/btn_radio_on_disabled_focused_holo_dark.png
  44. BIN  res/drawable-mdpi/btn_radio_on_disabled_focused_holo_light.png
  45. BIN  res/drawable-mdpi/btn_radio_on_disabled_holo_dark.png
  46. BIN  res/drawable-mdpi/btn_radio_on_disabled_holo_light.png
  47. BIN  res/drawable-mdpi/btn_radio_on_focused_holo_dark.png
  48. BIN  res/drawable-mdpi/btn_radio_on_focused_holo_light.png
  49. BIN  res/drawable-mdpi/btn_radio_on_holo_dark.png
  50. BIN  res/drawable-mdpi/btn_radio_on_holo_light.png
  51. BIN  res/drawable-mdpi/btn_radio_on_pressed_holo_dark.png
  52. BIN  res/drawable-mdpi/btn_radio_on_pressed_holo_light.png
  53. BIN  res/drawable-mdpi/cab_background_top_holo_dark.9.png
  54. BIN  res/drawable-mdpi/cab_background_top_holo_light.9.png
  55. BIN  res/drawable-mdpi/dialog_bottom_holo_dark.9.png
  56. BIN  res/drawable-mdpi/dialog_bottom_holo_light.9.png
  57. BIN  res/drawable-mdpi/dialog_full_holo_dark.9.png
  58. BIN  res/drawable-mdpi/dialog_full_holo_light.9.png
  59. BIN  res/drawable-mdpi/dialog_middle_holo_dark.9.png
  60. BIN  res/drawable-mdpi/dialog_middle_holo_light.9.png
  61. BIN  res/drawable-mdpi/dialog_top_holo_dark.9.png
  62. BIN  res/drawable-mdpi/dialog_top_holo_light.9.png
  63. BIN  res/drawable-mdpi/list_divider_holo_dark.9.png
  64. BIN  res/drawable-mdpi/list_divider_holo_light.9.png
  65. BIN  res/drawable-mdpi/list_focused_holo.9.png
  66. BIN  res/drawable-mdpi/list_longpressed_holo.9.png
  67. BIN  res/drawable-mdpi/list_pressed_holo.9.png
  68. BIN  res/drawable-mdpi/list_selector_disabled_holo_dark.9.png
  69. BIN  res/drawable-mdpi/list_selector_disabled_holo_light.9.png
  70. BIN  res/drawable-mdpi/menu_dropdown_panel_holo_dark.9.png
  71. BIN  res/drawable-mdpi/menu_dropdown_panel_holo_light.9.png
  72. BIN  res/drawable-mdpi/progress_bg_holo_dark.9.png
  73. BIN  res/drawable-mdpi/progress_bg_holo_light.9.png
  74. BIN  res/drawable-mdpi/progress_primary_holo.9.png
  75. BIN  res/drawable-mdpi/progress_secondary_holo.9.png
  76. BIN  res/drawable-mdpi/progressbar_indeterminate_holo1.png
  77. BIN  res/drawable-mdpi/progressbar_indeterminate_holo2.png
  78. BIN  res/drawable-mdpi/progressbar_indeterminate_holo3.png
  79. BIN  res/drawable-mdpi/progressbar_indeterminate_holo4.png
  80. BIN  res/drawable-mdpi/progressbar_indeterminate_holo5.png
  81. BIN  res/drawable-mdpi/progressbar_indeterminate_holo6.png
  82. BIN  res/drawable-mdpi/progressbar_indeterminate_holo7.png
  83. BIN  res/drawable-mdpi/progressbar_indeterminate_holo8.png
  84. BIN  res/drawable-mdpi/scrubber_control_disabled_holo.png
  85. BIN  res/drawable-mdpi/scrubber_control_focused_holo.png
  86. BIN  res/drawable-mdpi/scrubber_control_normal_holo.png
  87. BIN  res/drawable-mdpi/scrubber_control_pressed_holo.png
  88. BIN  res/drawable-mdpi/scrubber_primary_holo.9.png
  89. BIN  res/drawable-mdpi/scrubber_secondary_holo.9.png
  90. BIN  res/drawable-mdpi/scrubber_track_holo_dark.9.png
  91. BIN  res/drawable-mdpi/scrubber_track_holo_light.9.png
  92. BIN  res/drawable-mdpi/shadow_holo.9.png
  93. BIN  res/drawable-mdpi/spinner_16_inner_holo.png
  94. BIN  res/drawable-mdpi/spinner_16_outer_holo.png
  95. BIN  res/drawable-mdpi/spinner_48_inner_holo.png
  96. BIN  res/drawable-mdpi/spinner_48_outer_holo.png
  97. BIN  res/drawable-mdpi/spinner_76_inner_holo.png
  98. BIN  res/drawable-mdpi/spinner_76_outer_holo.png
  99. BIN  res/drawable-mdpi/spinner_default_holo_dark.9.png
  100. BIN  res/drawable-mdpi/spinner_default_holo_light.9.png
  101. BIN  res/drawable-mdpi/spinner_disabled_holo_dark.9.png
  102. BIN  res/drawable-mdpi/spinner_disabled_holo_light.9.png
  103. BIN  res/drawable-mdpi/spinner_focused_holo_dark.9.png
  104. BIN  res/drawable-mdpi/spinner_focused_holo_light.9.png
  105. BIN  res/drawable-mdpi/spinner_pressed_holo_dark.9.png
  106. BIN  res/drawable-mdpi/spinner_pressed_holo_light.9.png
  107. BIN  res/drawable-mdpi/textfield_activated_holo_dark.png
  108. BIN  res/drawable-mdpi/textfield_default_holo_dark.9.png
  109. BIN  res/drawable-mdpi/textfield_default_holo_light.9.png
  110. BIN  res/drawable-mdpi/textfield_disabled_focused_holo_dark.9.png
  111. BIN  res/drawable-mdpi/textfield_disabled_focused_holo_light.9.png
  112. BIN  res/drawable-mdpi/textfield_disabled_holo_dark.9.png
  113. BIN  res/drawable-mdpi/textfield_disabled_holo_light.9.png
  114. BIN  res/drawable-mdpi/textfield_focused_holo.9.png
  115. BIN  res/drawable-xhdpi/btn_check_off_disabled_focused_holo_dark.png
  116. BIN  res/drawable-xhdpi/btn_check_off_disabled_focused_holo_light.png
  117. BIN  res/drawable-xhdpi/btn_check_off_disabled_holo_dark.png
  118. BIN  res/drawable-xhdpi/btn_check_off_disabled_holo_light.png
  119. BIN  res/drawable-xhdpi/btn_check_off_focused_holo_dark.png
  120. BIN  res/drawable-xhdpi/btn_check_off_focused_holo_light.png
  121. BIN  res/drawable-xhdpi/btn_check_off_holo_dark.png
  122. BIN  res/drawable-xhdpi/btn_check_off_holo_light.png
  123. BIN  res/drawable-xhdpi/btn_check_off_pressed_holo_dark.png
  124. BIN  res/drawable-xhdpi/btn_check_off_pressed_holo_light.png
  125. BIN  res/drawable-xhdpi/btn_check_on_disabled_focused_holo_dark.png
  126. BIN  res/drawable-xhdpi/btn_check_on_disabled_focused_holo_light.png
  127. BIN  res/drawable-xhdpi/btn_check_on_disabled_holo_dark.png
  128. BIN  res/drawable-xhdpi/btn_check_on_disabled_holo_light.png
  129. BIN  res/drawable-xhdpi/btn_check_on_focused_holo_dark.png
  130. BIN  res/drawable-xhdpi/btn_check_on_focused_holo_light.png
  131. BIN  res/drawable-xhdpi/btn_check_on_holo_dark.png
  132. BIN  res/drawable-xhdpi/btn_check_on_holo_light.png
  133. BIN  res/drawable-xhdpi/btn_check_on_pressed_holo_dark.png
  134. BIN  res/drawable-xhdpi/btn_check_on_pressed_holo_light.png
  135. BIN  res/drawable-xhdpi/btn_radio_off_disabled_focused_holo_dark.png
  136. BIN  res/drawable-xhdpi/btn_radio_off_disabled_focused_holo_light.png
  137. BIN  res/drawable-xhdpi/btn_radio_off_disabled_holo_dark.png
  138. BIN  res/drawable-xhdpi/btn_radio_off_disabled_holo_light.png
  139. BIN  res/drawable-xhdpi/btn_radio_off_focused_holo_dark.png
  140. BIN  res/drawable-xhdpi/btn_radio_off_focused_holo_light.png
  141. BIN  res/drawable-xhdpi/btn_radio_off_holo_dark.png
  142. BIN  res/drawable-xhdpi/btn_radio_off_holo_light.png
  143. BIN  res/drawable-xhdpi/btn_radio_off_pressed_holo_dark.png
  144. BIN  res/drawable-xhdpi/btn_radio_off_pressed_holo_light.png
  145. BIN  res/drawable-xhdpi/btn_radio_on_disabled_focused_holo_dark.png
  146. BIN  res/drawable-xhdpi/btn_radio_on_disabled_focused_holo_light.png
  147. BIN  res/drawable-xhdpi/btn_radio_on_disabled_holo_dark.png
  148. BIN  res/drawable-xhdpi/btn_radio_on_disabled_holo_light.png
  149. BIN  res/drawable-xhdpi/btn_radio_on_focused_holo_dark.png
  150. BIN  res/drawable-xhdpi/btn_radio_on_focused_holo_light.png
  151. BIN  res/drawable-xhdpi/btn_radio_on_holo_dark.png
  152. BIN  res/drawable-xhdpi/btn_radio_on_holo_light.png
  153. BIN  res/drawable-xhdpi/btn_radio_on_pressed_holo_dark.png
  154. BIN  res/drawable-xhdpi/btn_radio_on_pressed_holo_light.png
  155. BIN  res/drawable-xhdpi/dialog_bottom_holo_dark.9.png
  156. BIN  res/drawable-xhdpi/dialog_bottom_holo_light.9.png
  157. BIN  res/drawable-xhdpi/dialog_full_holo_dark.9.png
  158. BIN  res/drawable-xhdpi/dialog_full_holo_light.9.png
  159. BIN  res/drawable-xhdpi/dialog_middle_holo_dark.9.png
  160. BIN  res/drawable-xhdpi/dialog_middle_holo_light.9.png
  161. BIN  res/drawable-xhdpi/dialog_top_holo_dark.9.png
  162. BIN  res/drawable-xhdpi/dialog_top_holo_light.9.png
  163. BIN  res/drawable-xhdpi/list_divider_holo_dark.9.png
  164. BIN  res/drawable-xhdpi/list_divider_holo_light.9.png
  165. BIN  res/drawable-xhdpi/menu_dropdown_panel_holo_dark.9.png
  166. BIN  res/drawable-xhdpi/menu_dropdown_panel_holo_light.9.png
  167. BIN  res/drawable-xhdpi/progress_bg_holo_dark.9.png
  168. BIN  res/drawable-xhdpi/progress_bg_holo_light.9.png
  169. BIN  res/drawable-xhdpi/progress_primary_holo.9.png
  170. BIN  res/drawable-xhdpi/progress_secondary_holo.9.png
  171. BIN  res/drawable-xhdpi/progressbar_indeterminate_holo1.png
  172. BIN  res/drawable-xhdpi/progressbar_indeterminate_holo2.png
  173. BIN  res/drawable-xhdpi/progressbar_indeterminate_holo3.png
  174. BIN  res/drawable-xhdpi/progressbar_indeterminate_holo4.png
  175. BIN  res/drawable-xhdpi/progressbar_indeterminate_holo5.png
  176. BIN  res/drawable-xhdpi/progressbar_indeterminate_holo6.png
  177. BIN  res/drawable-xhdpi/progressbar_indeterminate_holo7.png
  178. BIN  res/drawable-xhdpi/progressbar_indeterminate_holo8.png
  179. BIN  res/drawable-xhdpi/scrubber_control_disabled_holo.png
  180. BIN  res/drawable-xhdpi/scrubber_control_focused_holo.png
  181. BIN  res/drawable-xhdpi/scrubber_control_normal_holo.png
  182. BIN  res/drawable-xhdpi/scrubber_control_pressed_holo.png
  183. BIN  res/drawable-xhdpi/scrubber_primary_holo.9.png
  184. BIN  res/drawable-xhdpi/scrubber_secondary_holo.9.png
  185. BIN  res/drawable-xhdpi/scrubber_track_holo_dark.9.png
  186. BIN  res/drawable-xhdpi/scrubber_track_holo_light.9.png
  187. BIN  res/drawable-xhdpi/shadow_holo.9.png
  188. BIN  res/drawable-xhdpi/spinner_16_inner_holo.png
  189. BIN  res/drawable-xhdpi/spinner_16_outer_holo.png
  190. BIN  res/drawable-xhdpi/spinner_48_inner_holo.png
  191. BIN  res/drawable-xhdpi/spinner_48_outer_holo.png
  192. BIN  res/drawable-xhdpi/spinner_76_inner_holo.png
  193. BIN  res/drawable-xhdpi/spinner_76_outer_holo.png
  194. BIN  res/drawable-xhdpi/spinner_default_holo_dark.9.png
  195. BIN  res/drawable-xhdpi/spinner_default_holo_light.9.png
  196. BIN  res/drawable-xhdpi/spinner_disabled_holo_dark.9.png
  197. BIN  res/drawable-xhdpi/spinner_disabled_holo_light.9.png
  198. BIN  res/drawable-xhdpi/spinner_focused_holo_dark.9.png
  199. BIN  res/drawable-xhdpi/spinner_focused_holo_light.9.png
  200. BIN  res/drawable-xhdpi/spinner_pressed_holo_dark.9.png
  201. BIN  res/drawable-xhdpi/spinner_pressed_holo_light.9.png
  202. BIN  res/drawable-xhdpi/textfield_activated_holo.9.png
  203. BIN  res/drawable-xhdpi/textfield_default_holo_dark.9.png
  204. BIN  res/drawable-xhdpi/textfield_default_holo_light.9.png
  205. BIN  res/drawable-xhdpi/textfield_disabled_focused_holo_dark.9.png
  206. BIN  res/drawable-xhdpi/textfield_disabled_focused_holo_light.9.png
  207. BIN  res/drawable-xhdpi/textfield_disabled_holo_dark.9.png
  208. BIN  res/drawable-xhdpi/textfield_disabled_holo_light.9.png
  209. BIN  res/drawable-xhdpi/textfield_focused_holo.9.png
  210. +35 −6 res/drawable/progress_large_holo.xml
  211. +35 −6 res/drawable/progress_medium_holo.xml
  212. +35 −6 res/drawable/progress_small_holo.xml
  213. +1 −1  res/layout-ar/status_content.xml
  214. +2 −2 res/layout-ar/user_profile_header.xml
  215. +1 −1  res/{layout-land → layout-large-land}/base_dual_pane.xml
  216. +1 −1  res/{layout-land → layout-large-land}/home_dual_pane.xml
  217. +1 −1  res/{layout-land → layout-large-land}/search_dual_pane.xml
  218. +1 −1  res/layout-large/base_tabs.xml
  219. +1 −1  res/layout/actionbar.xml
  220. +13 −16 res/layout/base_dual_pane.xml
  221. +1 −1  res/layout/base_tabs.xml
  222. +3 −2 res/layout/home_dual_pane.xml
  223. +1 −1  res/layout/image_viewer.xml
  224. +1 −1  res/layout/pull_to_refresh_header.xml
  225. +13 −16 res/layout/search_dual_pane.xml
  226. +1 −1  res/layout/status.xml
  227. +1 −1  res/layout/status_content.xml
  228. +2 −2 res/layout/user_profile_header.xml
  229. +1 −1  res/values-hdpi/bools.xml
  230. +5 −4 res/values-land/bools.xml
  231. +1 −2  res/values-land/dimens.xml
  232. +6 −0 res/values-large-land/bools.xml
  233. +1 −1  res/values-large-land/dimens.xml
  234. +6 −0 res/values-large/bools.xml
  235. +1 −2  res/values-large/dimens.xml
  236. +2 −2 res/values-sw600dp/bools.xml
  237. +1 −1  res/values-v11/bools.xml
  238. +3 −1 res/values-v11/themes.xml
  239. +0 −14 res/values-v14/holo__themes.xml
  240. +1 −0  res/values/attrs.xml
  241. +2 −0  res/values/bools.xml
  242. +5 −5 res/values/dimens.xml
  243. +3 −1 res/values/themes.xml
  244. +14 −0 src/org/mariotaku/twidere/fragment/BaseListFragment.java
  245. +4 −1 src/org/mariotaku/twidere/fragment/PullToRefreshListFragment.java
  246. +24 −0 src/org/mariotaku/twidere/util/InvalidateProgressBarRunnable.java
  247. +0 −4 src/org/mariotaku/twidere/util/imageloader/DiskLruCache.java
  248. +0 −17 src/org/mariotaku/twidere/util/imageloader/ImageFetcher.java
  249. +6 −6 src/org/mariotaku/twidere/view/ExtendedFrameLayout.java
  250. +8 −7 src/org/mariotaku/twidere/view/ExtendedLinearLayout.java
  251. +30 −0 src/org/mariotaku/twidere/view/HoloProgressBar.java
  252. +21 −18 src/org/mariotaku/twidere/view/RoundCorneredImageView.java
  253. +211 −95 src/org/mariotaku/twidere/view/SlidingPaneView.java
View
7 AndroidManifest.xml
@@ -60,7 +60,8 @@
android:name=".app.TwidereApplication"
android:hardwareAccelerated="false"
android:icon="@drawable/ic_launcher"
- android:label="@string/app_name">
+ android:label="@string/app_name"
+ android:theme="@style/Theme.Blank">
<uses-library
android:name="com.google.android.maps"
android:required="false"/>
@@ -134,7 +135,7 @@
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
-
+
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".activity.HomeActivity"/>
@@ -464,4 +465,4 @@
</receiver>
</application>
-</manifest>
+</manifest>
View
10 README.markdown
@@ -42,15 +42,11 @@ I started a crowdin project, so anyone can do something for Twidere. Visit this
###Consider donate?###
-<img src="https://lh4.googleusercontent.com/-fSkfFjnUck8/UAK_IeWs1lI/AAAAAAAABC8/2MqME6ngVrE/I/DSC_0096.jpg"/>
+Thanks to @huxim 's memory stick!!!
-Thats all my stuffs to develop Twidere (Taken by my SONY Xperia ray, it's my another Android device).
+Buy me a bread or anything you want :)
-This netbook (HASEE Q130B, 1.6GHz Intel Atom N270, $300 in 2009) is nearly broken, the desktop computer behind it works fine, but it only have 1GB RAM. It's too small to run Eclipse and Android Emulator.
-
-So, buy me a RAM stick, a bread or anything you want :)
-
-<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&amp;business=mariotaku.lee%40gmail%2ecom&amp;item_name=Donate%20to%20Twidere&amp;currency_code=USD"><img src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG_global.gif"/></a>
+**[Donate Via Paypal](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=mariotaku.lee@gmail.com&item_name=Donate to Twidere&currency_code=USD)**
**Donate Via Alipay(支付宝)**
View
BIN  res/drawable-hdpi/shadow_holo.9.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable-hdpi/spinner_16_inner_holo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable-hdpi/spinner_16_outer_holo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable-hdpi/spinner_48_inner_holo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable-hdpi/spinner_48_outer_holo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable-hdpi/spinner_76_inner_holo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable-hdpi/spinner_76_outer_holo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable-hdpi/spinner_black_16.png
Deleted file not rendered
View
BIN  res/drawable-hdpi/spinner_black_48.png
Deleted file not rendered
View
BIN  res/drawable-hdpi/spinner_black_76.png
Deleted file not rendered
View
BIN  res/drawable-mdpi/btn_check_off_disabled_focused_holo_dark.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable-mdpi/btn_check_off_disabled_focused_holo_light.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable-mdpi/btn_check_off_disabled_holo_dark.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable-mdpi/btn_check_off_disabled_holo_light.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable-mdpi/btn_check_off_focused_holo_dark.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable-mdpi/btn_check_off_focused_holo_light.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable-mdpi/btn_check_off_holo_dark.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable-mdpi/btn_check_off_holo_light.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable-mdpi/btn_check_off_pressed_holo_dark.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable-mdpi/btn_check_off_pressed_holo_light.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable-mdpi/btn_check_on_disabled_focused_holo_dark.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable-mdpi/btn_check_on_disabled_focused_holo_light.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable-mdpi/btn_check_on_disabled_holo_dark.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable-mdpi/btn_check_on_disabled_holo_light.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable-mdpi/btn_check_on_focused_holo_dark.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  res/drawable-mdpi/btn_check_on_focused_holo_light.png
Diff not rendered
View
BIN  res/drawable-mdpi/btn_check_on_holo_dark.png
Diff not rendered
View
BIN  res/drawable-mdpi/btn_check_on_holo_light.png
Diff not rendered
View
BIN  res/drawable-mdpi/btn_check_on_pressed_holo_dark.png
Diff not rendered
View
BIN  res/drawable-mdpi/btn_check_on_pressed_holo_light.png
Diff not rendered
View
BIN  res/drawable-mdpi/btn_radio_off_disabled_focused_holo_dark.png
Diff not rendered
View
BIN  res/drawable-mdpi/btn_radio_off_disabled_focused_holo_light.png
Diff not rendered
View
BIN  res/drawable-mdpi/btn_radio_off_disabled_holo_dark.png
Diff not rendered
View
BIN  res/drawable-mdpi/btn_radio_off_disabled_holo_light.png
Diff not rendered
View
BIN  res/drawable-mdpi/btn_radio_off_focused_holo_dark.png
Diff not rendered
View
BIN  res/drawable-mdpi/btn_radio_off_focused_holo_light.png
Diff not rendered
View
BIN  res/drawable-mdpi/btn_radio_off_holo_dark.png
Diff not rendered
View
BIN  res/drawable-mdpi/btn_radio_off_holo_light.png
Diff not rendered
View
BIN  res/drawable-mdpi/btn_radio_off_pressed_holo_dark.png
Diff not rendered
View
BIN  res/drawable-mdpi/btn_radio_off_pressed_holo_light.png
Diff not rendered
View
BIN  res/drawable-mdpi/btn_radio_on_disabled_focused_holo_dark.png
Diff not rendered
View
BIN  res/drawable-mdpi/btn_radio_on_disabled_focused_holo_light.png
Diff not rendered
View
BIN  res/drawable-mdpi/btn_radio_on_disabled_holo_dark.png
Diff not rendered
View
BIN  res/drawable-mdpi/btn_radio_on_disabled_holo_light.png
Diff not rendered
View
BIN  res/drawable-mdpi/btn_radio_on_focused_holo_dark.png
Diff not rendered
View
BIN  res/drawable-mdpi/btn_radio_on_focused_holo_light.png
Diff not rendered
View
BIN  res/drawable-mdpi/btn_radio_on_holo_dark.png
Diff not rendered
View
BIN  res/drawable-mdpi/btn_radio_on_holo_light.png
Diff not rendered
View
BIN  res/drawable-mdpi/btn_radio_on_pressed_holo_dark.png
Diff not rendered
View
BIN  res/drawable-mdpi/btn_radio_on_pressed_holo_light.png
Diff not rendered
View
BIN  res/drawable-mdpi/cab_background_top_holo_dark.9.png
Diff not rendered
View
BIN  res/drawable-mdpi/cab_background_top_holo_light.9.png
Diff not rendered
View
BIN  res/drawable-mdpi/dialog_bottom_holo_dark.9.png
Diff not rendered
View
BIN  res/drawable-mdpi/dialog_bottom_holo_light.9.png
Diff not rendered
View
BIN  res/drawable-mdpi/dialog_full_holo_dark.9.png
Diff not rendered
View
BIN  res/drawable-mdpi/dialog_full_holo_light.9.png
Diff not rendered
View
BIN  res/drawable-mdpi/dialog_middle_holo_dark.9.png
Diff not rendered
View
BIN  res/drawable-mdpi/dialog_middle_holo_light.9.png
Diff not rendered
View
BIN  res/drawable-mdpi/dialog_top_holo_dark.9.png
Diff not rendered
View
BIN  res/drawable-mdpi/dialog_top_holo_light.9.png
Diff not rendered
View
BIN  res/drawable-mdpi/list_divider_holo_dark.9.png
Diff not rendered
View
BIN  res/drawable-mdpi/list_divider_holo_light.9.png
Diff not rendered
View
BIN  res/drawable-mdpi/list_focused_holo.9.png
Diff not rendered
View
BIN  res/drawable-mdpi/list_longpressed_holo.9.png
Diff not rendered
View
BIN  res/drawable-mdpi/list_pressed_holo.9.png
Diff not rendered
View
BIN  res/drawable-mdpi/list_selector_disabled_holo_dark.9.png
Diff not rendered
View
BIN  res/drawable-mdpi/list_selector_disabled_holo_light.9.png
Diff not rendered
View
BIN  res/drawable-mdpi/menu_dropdown_panel_holo_dark.9.png
Diff not rendered
View
BIN  res/drawable-mdpi/menu_dropdown_panel_holo_light.9.png
Diff not rendered
View
BIN  res/drawable-mdpi/progress_bg_holo_dark.9.png
Diff not rendered
View
BIN  res/drawable-mdpi/progress_bg_holo_light.9.png
Diff not rendered
View
BIN  res/drawable-mdpi/progress_primary_holo.9.png
Diff not rendered
View
BIN  res/drawable-mdpi/progress_secondary_holo.9.png
Diff not rendered
View
BIN  res/drawable-mdpi/progressbar_indeterminate_holo1.png
Diff not rendered
View
BIN  res/drawable-mdpi/progressbar_indeterminate_holo2.png
Diff not rendered
View
BIN  res/drawable-mdpi/progressbar_indeterminate_holo3.png
Diff not rendered
View
BIN  res/drawable-mdpi/progressbar_indeterminate_holo4.png
Diff not rendered
View
BIN  res/drawable-mdpi/progressbar_indeterminate_holo5.png
Diff not rendered
View
BIN  res/drawable-mdpi/progressbar_indeterminate_holo6.png
Diff not rendered
View
BIN  res/drawable-mdpi/progressbar_indeterminate_holo7.png
Diff not rendered
View
BIN  res/drawable-mdpi/progressbar_indeterminate_holo8.png
Diff not rendered
View
BIN  res/drawable-mdpi/scrubber_control_disabled_holo.png
Diff not rendered
View
BIN  res/drawable-mdpi/scrubber_control_focused_holo.png
Diff not rendered
View
BIN  res/drawable-mdpi/scrubber_control_normal_holo.png
Diff not rendered
View
BIN  res/drawable-mdpi/scrubber_control_pressed_holo.png
Diff not rendered
View
BIN  res/drawable-mdpi/scrubber_primary_holo.9.png
Diff not rendered
View
BIN  res/drawable-mdpi/scrubber_secondary_holo.9.png
Diff not rendered
View
BIN  res/drawable-mdpi/scrubber_track_holo_dark.9.png
Diff not rendered
View
BIN  res/drawable-mdpi/scrubber_track_holo_light.9.png
Diff not rendered
View
BIN  res/drawable-mdpi/shadow_holo.9.png
Diff not rendered
View
BIN  res/drawable-mdpi/spinner_16_inner_holo.png
Diff not rendered
View
BIN  res/drawable-mdpi/spinner_16_outer_holo.png
Diff not rendered
View
BIN  res/drawable-mdpi/spinner_48_inner_holo.png
Diff not rendered
View
BIN  res/drawable-mdpi/spinner_48_outer_holo.png
Diff not rendered
View
BIN  res/drawable-mdpi/spinner_76_inner_holo.png
Diff not rendered
View
BIN  res/drawable-mdpi/spinner_76_outer_holo.png
Diff not rendered
View
BIN  res/drawable-mdpi/spinner_default_holo_dark.9.png
Diff not rendered
View
BIN  res/drawable-mdpi/spinner_default_holo_light.9.png
Diff not rendered
View
BIN  res/drawable-mdpi/spinner_disabled_holo_dark.9.png
Diff not rendered
View
BIN  res/drawable-mdpi/spinner_disabled_holo_light.9.png
Diff not rendered
View
BIN  res/drawable-mdpi/spinner_focused_holo_dark.9.png
Diff not rendered
View
BIN  res/drawable-mdpi/spinner_focused_holo_light.9.png
Diff not rendered
View
BIN  res/drawable-mdpi/spinner_pressed_holo_dark.9.png
Diff not rendered
View
BIN  res/drawable-mdpi/spinner_pressed_holo_light.9.png
Diff not rendered
View
BIN  res/drawable-mdpi/textfield_activated_holo_dark.png
Diff not rendered
View
BIN  res/drawable-mdpi/textfield_default_holo_dark.9.png
Diff not rendered
View
BIN  res/drawable-mdpi/textfield_default_holo_light.9.png
Diff not rendered
View
BIN  res/drawable-mdpi/textfield_disabled_focused_holo_dark.9.png
Diff not rendered
View
BIN  res/drawable-mdpi/textfield_disabled_focused_holo_light.9.png
Diff not rendered
View
BIN  res/drawable-mdpi/textfield_disabled_holo_dark.9.png
Diff not rendered
View
BIN  res/drawable-mdpi/textfield_disabled_holo_light.9.png
Diff not rendered
View
BIN  res/drawable-mdpi/textfield_focused_holo.9.png
Diff not rendered
View
BIN  res/drawable-xhdpi/btn_check_off_disabled_focused_holo_dark.png
Diff not rendered
View
BIN  res/drawable-xhdpi/btn_check_off_disabled_focused_holo_light.png
Diff not rendered
View
BIN  res/drawable-xhdpi/btn_check_off_disabled_holo_dark.png
Diff not rendered
View
BIN  res/drawable-xhdpi/btn_check_off_disabled_holo_light.png
Diff not rendered
View
BIN  res/drawable-xhdpi/btn_check_off_focused_holo_dark.png
Diff not rendered
View
BIN  res/drawable-xhdpi/btn_check_off_focused_holo_light.png
Diff not rendered
View
BIN  res/drawable-xhdpi/btn_check_off_holo_dark.png
Diff not rendered
View
BIN  res/drawable-xhdpi/btn_check_off_holo_light.png
Diff not rendered
View
BIN  res/drawable-xhdpi/btn_check_off_pressed_holo_dark.png
Diff not rendered
View
BIN  res/drawable-xhdpi/btn_check_off_pressed_holo_light.png
Diff not rendered
View
BIN  res/drawable-xhdpi/btn_check_on_disabled_focused_holo_dark.png
Diff not rendered
View
BIN  res/drawable-xhdpi/btn_check_on_disabled_focused_holo_light.png
Diff not rendered
View
BIN  res/drawable-xhdpi/btn_check_on_disabled_holo_dark.png
Diff not rendered
View
BIN  res/drawable-xhdpi/btn_check_on_disabled_holo_light.png
Diff not rendered
View
BIN  res/drawable-xhdpi/btn_check_on_focused_holo_dark.png
Diff not rendered
View
BIN  res/drawable-xhdpi/btn_check_on_focused_holo_light.png
Diff not rendered
View
BIN  res/drawable-xhdpi/btn_check_on_holo_dark.png
Diff not rendered
View
BIN  res/drawable-xhdpi/btn_check_on_holo_light.png
Diff not rendered
View
BIN  res/drawable-xhdpi/btn_check_on_pressed_holo_dark.png
Diff not rendered
View
BIN  res/drawable-xhdpi/btn_check_on_pressed_holo_light.png
Diff not rendered
View
BIN  res/drawable-xhdpi/btn_radio_off_disabled_focused_holo_dark.png
Diff not rendered
View
BIN  res/drawable-xhdpi/btn_radio_off_disabled_focused_holo_light.png
Diff not rendered
View
BIN  res/drawable-xhdpi/btn_radio_off_disabled_holo_dark.png
Diff not rendered
View
BIN  res/drawable-xhdpi/btn_radio_off_disabled_holo_light.png
Diff not rendered
View
BIN  res/drawable-xhdpi/btn_radio_off_focused_holo_dark.png
Diff not rendered
View
BIN  res/drawable-xhdpi/btn_radio_off_focused_holo_light.png
Diff not rendered
View
BIN  res/drawable-xhdpi/btn_radio_off_holo_dark.png
Diff not rendered
View
BIN  res/drawable-xhdpi/btn_radio_off_holo_light.png
Diff not rendered
View
BIN  res/drawable-xhdpi/btn_radio_off_pressed_holo_dark.png
Diff not rendered
View
BIN  res/drawable-xhdpi/btn_radio_off_pressed_holo_light.png
Diff not rendered
View
BIN  res/drawable-xhdpi/btn_radio_on_disabled_focused_holo_dark.png
Diff not rendered
View
BIN  res/drawable-xhdpi/btn_radio_on_disabled_focused_holo_light.png
Diff not rendered
View
BIN  res/drawable-xhdpi/btn_radio_on_disabled_holo_dark.png
Diff not rendered
View
BIN  res/drawable-xhdpi/btn_radio_on_disabled_holo_light.png
Diff not rendered
View
BIN  res/drawable-xhdpi/btn_radio_on_focused_holo_dark.png
Diff not rendered
View
BIN  res/drawable-xhdpi/btn_radio_on_focused_holo_light.png
Diff not rendered
View
BIN  res/drawable-xhdpi/btn_radio_on_holo_dark.png
Diff not rendered
View
BIN  res/drawable-xhdpi/btn_radio_on_holo_light.png
Diff not rendered
View
BIN  res/drawable-xhdpi/btn_radio_on_pressed_holo_dark.png
Diff not rendered
View
BIN  res/drawable-xhdpi/btn_radio_on_pressed_holo_light.png
Diff not rendered
View
BIN  res/drawable-xhdpi/dialog_bottom_holo_dark.9.png
Diff not rendered
View
BIN  res/drawable-xhdpi/dialog_bottom_holo_light.9.png
Diff not rendered
View
BIN  res/drawable-xhdpi/dialog_full_holo_dark.9.png
Diff not rendered
View
BIN  res/drawable-xhdpi/dialog_full_holo_light.9.png
Diff not rendered
View
BIN  res/drawable-xhdpi/dialog_middle_holo_dark.9.png
Diff not rendered
View
BIN  res/drawable-xhdpi/dialog_middle_holo_light.9.png
Diff not rendered
View
BIN  res/drawable-xhdpi/dialog_top_holo_dark.9.png
Diff not rendered
View
BIN  res/drawable-xhdpi/dialog_top_holo_light.9.png
Diff not rendered
View
BIN  res/drawable-xhdpi/list_divider_holo_dark.9.png
Diff not rendered
View
BIN  res/drawable-xhdpi/list_divider_holo_light.9.png
Diff not rendered
View
BIN  res/drawable-xhdpi/menu_dropdown_panel_holo_dark.9.png
Diff not rendered
View
BIN  res/drawable-xhdpi/menu_dropdown_panel_holo_light.9.png
Diff not rendered
View
BIN  res/drawable-xhdpi/progress_bg_holo_dark.9.png
Diff not rendered
View
BIN  res/drawable-xhdpi/progress_bg_holo_light.9.png
Diff not rendered
View
BIN  res/drawable-xhdpi/progress_primary_holo.9.png
Diff not rendered
View
BIN  res/drawable-xhdpi/progress_secondary_holo.9.png
Diff not rendered
View
BIN  res/drawable-xhdpi/progressbar_indeterminate_holo1.png
Diff not rendered
View
BIN  res/drawable-xhdpi/progressbar_indeterminate_holo2.png
Diff not rendered
View
BIN  res/drawable-xhdpi/progressbar_indeterminate_holo3.png
Diff not rendered
View
BIN  res/drawable-xhdpi/progressbar_indeterminate_holo4.png
Diff not rendered
View
BIN  res/drawable-xhdpi/progressbar_indeterminate_holo5.png
Diff not rendered
View
BIN  res/drawable-xhdpi/progressbar_indeterminate_holo6.png
Diff not rendered
View
BIN  res/drawable-xhdpi/progressbar_indeterminate_holo7.png
Diff not rendered
View
BIN  res/drawable-xhdpi/progressbar_indeterminate_holo8.png
Diff not rendered
View
BIN  res/drawable-xhdpi/scrubber_control_disabled_holo.png
Diff not rendered
View
BIN  res/drawable-xhdpi/scrubber_control_focused_holo.png
Diff not rendered
View
BIN  res/drawable-xhdpi/scrubber_control_normal_holo.png
Diff not rendered
View
BIN  res/drawable-xhdpi/scrubber_control_pressed_holo.png
Diff not rendered
View
BIN  res/drawable-xhdpi/scrubber_primary_holo.9.png
Diff not rendered
View
BIN  res/drawable-xhdpi/scrubber_secondary_holo.9.png
Diff not rendered
View
BIN  res/drawable-xhdpi/scrubber_track_holo_dark.9.png
Diff not rendered
View
BIN  res/drawable-xhdpi/scrubber_track_holo_light.9.png
Diff not rendered
View
BIN  res/drawable-xhdpi/shadow_holo.9.png
Diff not rendered
View
BIN  res/drawable-xhdpi/spinner_16_inner_holo.png
Diff not rendered
View
BIN  res/drawable-xhdpi/spinner_16_outer_holo.png
Diff not rendered
View
BIN  res/drawable-xhdpi/spinner_48_inner_holo.png
Diff not rendered
View
BIN  res/drawable-xhdpi/spinner_48_outer_holo.png
Diff not rendered
View
BIN  res/drawable-xhdpi/spinner_76_inner_holo.png
Diff not rendered
View
BIN  res/drawable-xhdpi/spinner_76_outer_holo.png
Diff not rendered
View
BIN  res/drawable-xhdpi/spinner_default_holo_dark.9.png
Diff not rendered
View
BIN  res/drawable-xhdpi/spinner_default_holo_light.9.png
Diff not rendered
View
BIN  res/drawable-xhdpi/spinner_disabled_holo_dark.9.png
Diff not rendered
View
BIN  res/drawable-xhdpi/spinner_disabled_holo_light.9.png
Diff not rendered
View
BIN  res/drawable-xhdpi/spinner_focused_holo_dark.9.png
Diff not rendered
View
BIN  res/drawable-xhdpi/spinner_focused_holo_light.9.png
Diff not rendered
View
BIN  res/drawable-xhdpi/spinner_pressed_holo_dark.9.png
Diff not rendered
View
BIN  res/drawable-xhdpi/spinner_pressed_holo_light.9.png
Diff not rendered
View
BIN  res/drawable-xhdpi/textfield_activated_holo.9.png
Diff not rendered
View
BIN  res/drawable-xhdpi/textfield_default_holo_dark.9.png
Diff not rendered
View
BIN  res/drawable-xhdpi/textfield_default_holo_light.9.png
Diff not rendered
View
BIN  res/drawable-xhdpi/textfield_disabled_focused_holo_dark.9.png
Diff not rendered
View
BIN  res/drawable-xhdpi/textfield_disabled_focused_holo_light.9.png
Diff not rendered
View
BIN  res/drawable-xhdpi/textfield_disabled_holo_dark.9.png
Diff not rendered
View
BIN  res/drawable-xhdpi/textfield_disabled_holo_light.9.png
Diff not rendered
View
BIN  res/drawable-xhdpi/textfield_focused_holo.9.png
Diff not rendered
View
41 res/drawable/progress_large_holo.xml
@@ -1,7 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
-<rotate xmlns:android="http://schemas.android.com/apk/res/android"
- android:drawable="@drawable/spinner_black_76"
- android:fromDegrees="0"
- android:pivotX="50%"
- android:pivotY="50%"
- android:toDegrees="1080"/>
+<!--
+ Copyright 2010, The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <item>
+ <rotate
+ android:drawable="@drawable/spinner_76_outer_holo"
+ android:fromDegrees="0"
+ android:pivotX="50%"
+ android:pivotY="50%"
+ android:toDegrees="1080"/>
+ </item>
+ <item>
+ <rotate
+ android:drawable="@drawable/spinner_76_inner_holo"
+ android:fromDegrees="0"
+ android:pivotX="50%"
+ android:pivotY="50%"
+ android:toDegrees="720"/>
+ </item>
+
+</layer-list>
View
41 res/drawable/progress_medium_holo.xml
@@ -1,7 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
-<rotate xmlns:android="http://schemas.android.com/apk/res/android"
- android:drawable="@drawable/spinner_black_48"
- android:fromDegrees="0"
- android:pivotX="50%"
- android:pivotY="50%"
- android:toDegrees="1080"/>
+<!--
+ Copyright 2010, The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <item>
+ <rotate
+ android:drawable="@drawable/spinner_48_outer_holo"
+ android:fromDegrees="0"
+ android:pivotX="50%"
+ android:pivotY="50%"
+ android:toDegrees="1080"/>
+ </item>
+ <item>
+ <rotate
+ android:drawable="@drawable/spinner_48_inner_holo"
+ android:fromDegrees="0"
+ android:pivotX="50%"
+ android:pivotY="50%"
+ android:toDegrees="720"/>
+ </item>
+
+</layer-list>
View
41 res/drawable/progress_small_holo.xml
@@ -1,7 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
-<rotate xmlns:android="http://schemas.android.com/apk/res/android"
- android:drawable="@drawable/spinner_black_16"
- android:fromDegrees="0"
- android:pivotX="50%"
- android:pivotY="50%"
- android:toDegrees="1080"/>
+<!--
+ Copyright 2010, The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <item>
+ <rotate
+ android:drawable="@drawable/spinner_16_outer_holo"
+ android:fromDegrees="0"
+ android:pivotX="50%"
+ android:pivotY="50%"
+ android:toDegrees="1080"/>
+ </item>
+ <item>
+ <rotate
+ android:drawable="@drawable/spinner_16_inner_holo"
+ android:fromDegrees="0"
+ android:pivotX="50%"
+ android:pivotY="50%"
+ android:toDegrees="720"/>
+ </item>
+
+</layer-list>
View
2  res/layout-ar/status_content.xml
@@ -63,7 +63,7 @@
android:layout_height="wrap_content"
android:text="@string/follow"/>
- <ProgressBar
+ <org.mariotaku.twidere.view.HoloProgressBar
android:id="@+id/follow_info_progress"
style="?android:attr/progressBarStyleSmall"
android:layout_width="wrap_content"
View
4 res/layout-ar/user_profile_header.xml
@@ -101,7 +101,7 @@
android:layout_gravity="center"
android:text="@string/follow"/>
- <ProgressBar
+ <org.mariotaku.twidere.view.HoloProgressBar
android:id="@+id/follow_progress"
style="?android:attr/progressBarStyleSmall"
android:layout_width="wrap_content"
@@ -221,7 +221,7 @@
android:gravity="center"
android:text="@string/more"/>
- <ProgressBar
+ <org.mariotaku.twidere.view.HoloProgressBar
android:id="@+id/more_options_progress"
style="?android:attr/progressBarStyleSmall"
android:layout_width="wrap_content"
View
2  res/layout-land/base_dual_pane.xml → res/layout-large-land/base_dual_pane.xml
@@ -8,7 +8,7 @@
android:orientation="horizontal">
<FrameLayout
- android:layout_width="@dimen/pane_left_width"
+ android:layout_width="@dimen/pane_spacing_left"
android:layout_height="match_parent"
android:layout_weight="0">
View
2  res/layout-land/home_dual_pane.xml → res/layout-large-land/home_dual_pane.xml
@@ -8,7 +8,7 @@
android:orientation="horizontal">
<FrameLayout
- android:layout_width="@dimen/pane_left_width"
+ android:layout_width="@dimen/pane_spacing_left"
android:layout_height="match_parent"
android:layout_weight="0">
View
2  res/layout-land/search_dual_pane.xml → res/layout-large-land/search_dual_pane.xml
@@ -8,7 +8,7 @@
android:orientation="horizontal">
<FrameLayout
- android:layout_width="@dimen/pane_left_width"
+ android:layout_width="@dimen/pane_spacing_left"
android:layout_height="match_parent"
android:layout_weight="0">
View
2  res/layout-large/base_tabs.xml
@@ -35,7 +35,7 @@
android:layout_height="match_parent"
android:layout_weight="1"/>
- <ProgressBar
+ <org.mariotaku.twidere.view.HoloProgressBar
android:id="@android:id/progress"
style="@style/Widget.Holo.ProgressBar.Small"
android:layout_width="wrap_content"
View
2  res/layout/actionbar.xml
@@ -71,7 +71,7 @@
android:orientation="horizontal"
android:visibility="gone"/>
- <ProgressBar
+ <org.mariotaku.twidere.view.HoloProgressBar
android:id="@id/actionbar_progress_indeterminate"
style="?actionBarIndeterminateProgressStyle"
android:layout_width="@dimen/actionbar_height"
View
29 res/layout/base_dual_pane.xml
@@ -1,17 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
-<merge xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:twidere="http://schemas.android.com/apk/res/org.mariotaku.twidere">
-
- <org.mariotaku.twidere.view.SlidingPaneView
- android:id="@+id/sliding_pane"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- twidere:fadeType="left"
- twidere:layoutLeft="@layout/base_pane_left_content"
- twidere:layoutRight="@layout/base_pane_right_content"
- twidere:shadowDrawable="@drawable/shadow_holo"
- twidere:shadowWidth="@dimen/default_slidingpane_shadow_width"
- twidere:spacingLeft="@dimen/pane_right_width"
- twidere:spacingRight="@dimen/pane_right_width"/>
-
-</merge>
+<org.mariotaku.twidere.view.SlidingPaneView xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:twidere="http://schemas.android.com/apk/res/org.mariotaku.twidere"
+ android:id="@+id/sliding_pane"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ twidere:fadeType="left"
+ twidere:layoutLeft="@layout/base_pane_left_content"
+ twidere:layoutRight="@layout/base_pane_right_content"
+ twidere:shadowDrawable="@drawable/shadow_holo"
+ twidere:shadowSlidable="@bool/shadow_slidable"
+ twidere:shadowWidth="@dimen/default_slidingpane_shadow_width"
+ twidere:spacingLeft="@dimen/pane_spacing_right"
+ twidere:spacingRight="@dimen/pane_spacing_right"/>
View
2  res/layout/base_tabs.xml
@@ -31,7 +31,7 @@
android:layout_weight="1"
class="org.mariotaku.twidere.view.TabPageIndicator"/>
- <ProgressBar
+ <org.mariotaku.twidere.view.HoloProgressBar
android:id="@android:id/progress"
style="@style/Widget.Holo.ProgressBar.Small"
android:layout_width="wrap_content"
View
5 res/layout/home_dual_pane.xml
@@ -10,9 +10,10 @@
twidere:layoutLeft="@layout/home_pane_left_content"
twidere:layoutRight="@layout/base_pane_right_content"
twidere:shadowDrawable="@drawable/shadow_holo"
+ twidere:shadowSlidable="@bool/shadow_slidable"
twidere:shadowWidth="@dimen/default_slidingpane_shadow_width"
- twidere:spacingLeft="@dimen/pane_right_width"
- twidere:spacingRight="@dimen/pane_right_width"/>
+ twidere:spacingLeft="@dimen/pane_spacing_right"
+ twidere:spacingRight="@dimen/pane_spacing_right"/>
<ImageButton
android:id="@+id/button_compose"
View
2  res/layout/image_viewer.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android">
- <ProgressBar
+ <org.mariotaku.twidere.view.HoloProgressBar
android:id="@+id/progress"
style="?android:attr/progressBarStyleLarge"
android:layout_width="wrap_content"
View
2  res/layout/pull_to_refresh_header.xml
@@ -38,7 +38,7 @@
android:layout_marginRight="20dip"
android:src="@drawable/pull_to_refresh_arrow"/>
- <ProgressBar
+ <org.mariotaku.twidere.view.HoloProgressBar
android:id="@+id/pull_to_refresh_progress"
style="?android:attr/progressBarStyleSmall"
android:layout_width="20dp"
View
29 res/layout/search_dual_pane.xml
@@ -1,17 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
-<merge xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:twidere="http://schemas.android.com/apk/res/org.mariotaku.twidere">
-
- <org.mariotaku.twidere.view.SlidingPaneView
- android:id="@+id/sliding_pane"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- twidere:fadeType="left"
- twidere:layoutLeft="@layout/search_pane_left_content"
- twidere:layoutRight="@layout/base_pane_right_content"
- twidere:shadowDrawable="@drawable/shadow_holo"
- twidere:shadowWidth="@dimen/default_slidingpane_shadow_width"
- twidere:spacingLeft="@dimen/pane_right_width"
- twidere:spacingRight="@dimen/pane_right_width"/>
-
-</merge>
+<org.mariotaku.twidere.view.SlidingPaneView xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:twidere="http://schemas.android.com/apk/res/org.mariotaku.twidere"
+ android:id="@+id/sliding_pane"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ twidere:fadeType="left"
+ twidere:layoutLeft="@layout/search_pane_left_content"
+ twidere:layoutRight="@layout/base_pane_right_content"
+ twidere:shadowDrawable="@drawable/shadow_holo"
+ twidere:shadowSlidable="@bool/shadow_slidable"
+ twidere:shadowWidth="@dimen/default_slidingpane_shadow_width"
+ twidere:spacingLeft="@dimen/pane_spacing_right"
+ twidere:spacingRight="@dimen/pane_spacing_right"/>
View
2  res/layout/status.xml
@@ -22,7 +22,7 @@
android:background="?menuBarBackground"/>
</LinearLayout>
- <ProgressBar
+ <org.mariotaku.twidere.view.HoloProgressBar
android:id="@+id/status_load_progress"
style="?android:attr/progressBarStyleLarge"
android:layout_width="wrap_content"
View
2  res/layout/status_content.xml
@@ -66,7 +66,7 @@
android:layout_height="wrap_content"
android:text="@string/follow"/>
- <ProgressBar
+ <org.mariotaku.twidere.view.HoloProgressBar
android:id="@+id/follow_info_progress"
style="?android:attr/progressBarStyleSmall"
android:layout_width="wrap_content"
View
4 res/layout/user_profile_header.xml
@@ -104,7 +104,7 @@
android:layout_gravity="center"
android:text="@string/follow"/>
- <ProgressBar
+ <org.mariotaku.twidere.view.HoloProgressBar
android:id="@+id/follow_progress"
style="?android:attr/progressBarStyleSmall"
android:layout_width="wrap_content"
@@ -247,7 +247,7 @@
android:gravity="center"
android:text="@string/more"/>
- <ProgressBar
+ <org.mariotaku.twidere.view.HoloProgressBar
android:id="@+id/more_options_progress"
style="?android:attr/progressBarStyleSmall"
android:layout_width="wrap_content"
View
2  res/values-hdpi/bools.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:android="http://schemas.android.com/apk/res/android">
- <item name="hires_profile_image" type="bool">true</item>
+ <bool name="hires_profile_image">true</bool>
</resources>
View
9 res/values-land/bools.xml
@@ -1,8 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
- <item name="tab_display_label" type="bool">true</item>
- <item name="home_display_icon" type="bool">true</item>
- <item name="should_disable_scroll" type="bool">true</item>
+ <bool name="tab_display_label">true</bool>
+ <bool name="home_display_icon">true</bool>
+ <bool name="should_disable_scroll">true</bool>
+ <bool name="shadow_slidable">false</bool>
-</resources>
+</resources>
View
3  res/values-land/dimens.xml
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
- <dimen name="pane_right_width">200dp</dimen>
- <dimen name="pane_left_width">260dp</dimen>
+ <dimen name="pane_spacing_right">160dp</dimen>
</resources>
View
6 res/values-large-land/bools.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+ <bool name="shadow_slidable">false</bool>
+
+</resources>
View
2  res/values-large-land/dimens.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
- <dimen name="pane_left_width">400dp</dimen>
+ <dimen name="pane_spacing_left">400dp</dimen>
</resources>
View
6 res/values-large/bools.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+ <bool name="shadow_slidable">false</bool>
+
+</resources>
View
3  res/values-large/dimens.xml
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
- <dimen name="pane_left_width">375dp</dimen>
- <dimen name="pane_right_width">150dp</dimen>
+ <dimen name="pane_spacing_right">150dp</dimen>
</resources>
View
4 res/values-sw600dp/bools.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
- <item name="tab_display_label" type="bool">true</item>
- <item name="home_display_icon" type="bool">true</item>
+ <bool name="tab_display_label">true</bool>
+ <bool name="home_display_icon">true</bool>
</resources>
View
2  res/values-v11/bools.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
- <item name="hw_accel_supported" type="bool">true</item>
+ <bool name="hw_accel_supported">true</bool>
</resources>
View
4 res/values-v11/themes.xml
@@ -1,6 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
+ <style name="Theme.Blank" parent="android:Theme.Holo.NoActionBar"/>
+
<style name="Theme.Twidere.Viewer" parent="android:Theme.Holo.NoActionBar">
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowContentOverlay">@null</item>
@@ -47,4 +49,4 @@
<item name="android:galleryItemBackground">@drawable/gallery_item_background</item>
</style>
-</resources>
+</resources>
View
14 res/values-v14/holo__themes.xml
@@ -1,14 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<resources>
-
- <style name="Theme.Holo" parent="Theme.ActionBar"/>
-
- <style name="Theme.Holo.Light" parent="Theme.ActionBar.Light"/>
-
- <style name="Theme.Holo.Light.DarkActionBar" parent="Theme.ActionBar.Light.DarkActionBar"/>
-
- <style name="Theme.Holo.Dialog" parent="Theme.ActionBar.Dialog"/>
-
- <style name="Theme.Holo.Light.Dialog" parent="Theme.ActionBar.Light.Dialog"/>
-
-</resources>
View
1  res/values/attrs.xml
@@ -39,6 +39,7 @@
<attr name="shadowDrawable" format="reference"/>
<!-- Shadow width. -->
<attr name="shadowWidth" format="dimension"/>
+ <attr name="shadowSlidable" format="boolean"/>
<!-- Fade type. -->
<attr name="fadeType"/>
<!-- Max fade value. -->
View
2  res/values/bools.xml
@@ -6,5 +6,7 @@
<bool name="hw_accel_supported">false</bool>
<bool name="hires_profile_image">false</bool>
<bool name="should_disable_scroll">false</bool>
+ <bool name="default_shadow_slidable">true</bool>
+ <bool name="shadow_slidable">true</bool>
</resources>
View
10 res/values/dimens.xml
@@ -10,10 +10,10 @@
<dimen name="notification_large_icon_width">64dp</dimen>
<!-- The width of the big icons in notifications. -->
<dimen name="notification_large_icon_height">64dp</dimen>
- <dimen name="pane_left_width">300dp</dimen>
- <dimen name="pane_right_width">240dp</dimen>
- <dimen name="default_slidepane_spacing_left">@dimen/pane_right_width</dimen>
- <dimen name="default_slidepane_spacing_right">@dimen/pane_right_width</dimen>
- <dimen name="default_slidingpane_shadow_width">56dp</dimen>
+ <dimen name="pane_spacing_left">300dp</dimen>
+ <dimen name="pane_spacing_right">0dp</dimen>
+ <dimen name="default_slidepane_spacing_left">@dimen/pane_spacing_right</dimen>
+ <dimen name="default_slidepane_spacing_right">@dimen/pane_spacing_right</dimen>
+ <dimen name="default_slidingpane_shadow_width">32dp</dimen>
</resources>
View
4 res/values/themes.xml
@@ -1,6 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:android="http://schemas.android.com/apk/res/android">
+ <style name="Theme.Blank" parent="android:Theme.NoTitleBar"/>
+
<style name="Theme.Twidere" parent="Theme.Holo">
<item name="tabStyle">@style/Widget.TabPageIndicator</item>
<item name="tabTextStyle">@style/Widget.TabPageIndicator.TextView</item>
@@ -69,4 +71,4 @@
<item name="android:imageButtonStyle">@style/Widget.Twidere.Light.ImageButton</item>
</style>
-</resources>
+</resources>
View
14 src/org/mariotaku/twidere/fragment/BaseListFragment.java
@@ -22,6 +22,7 @@
import org.mariotaku.actionbarcompat.ActionBarFragmentActivity;
import org.mariotaku.twidere.Constants;
import org.mariotaku.twidere.app.TwidereApplication;
+import org.mariotaku.twidere.util.InvalidateProgressBarRunnable;
import org.mariotaku.twidere.util.ServiceInterface;
import android.app.Activity;
@@ -33,6 +34,10 @@
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v4.app.ListFragment;
+import android.support.v4.app.ListFragmentTrojan;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
public class BaseListFragment extends ListFragment implements Constants {
@@ -140,4 +145,13 @@ public void unregisterReceiver(final BroadcastReceiver receiver) {
if (activity == null) return;
activity.unregisterReceiver(receiver);
}
+
+ @Override
+ public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
+ final View view = super.onCreateView(inflater, container, savedInstanceState);
+ final ViewGroup progress_container = (ViewGroup) view.findViewById(ListFragmentTrojan.INTERNAL_PROGRESS_CONTAINER_ID);
+ final View progress = progress_container.getChildAt(0);
+ progress.post(new InvalidateProgressBarRunnable(progress));
+ return view;
+ }
}
View
5 src/org/mariotaku/twidere/fragment/PullToRefreshListFragment.java
@@ -22,6 +22,9 @@
import static android.support.v4.app.ListFragmentTrojan.INTERNAL_EMPTY_ID;
import static android.support.v4.app.ListFragmentTrojan.INTERNAL_LIST_CONTAINER_ID;
import static android.support.v4.app.ListFragmentTrojan.INTERNAL_PROGRESS_CONTAINER_ID;
+
+import org.mariotaku.twidere.view.HoloProgressBar;
+
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
@@ -99,7 +102,7 @@ public View onCreateView(final LayoutInflater inflater, final ViewGroup containe
pframe.setVisibility(View.GONE);
pframe.setGravity(Gravity.CENTER);
- final ProgressBar progress = new ProgressBar(context, null, android.R.attr.progressBarStyleLarge);
+ final ProgressBar progress = new HoloProgressBar(context, null, android.R.attr.progressBarStyleLarge);
pframe.addView(progress, new FrameLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT,
ViewGroup.LayoutParams.WRAP_CONTENT));
View
24 src/org/mariotaku/twidere/util/InvalidateProgressBarRunnable.java
@@ -0,0 +1,24 @@
+package org.mariotaku.twidere.util;
+
+import android.os.Build;
+import android.view.View;
+import android.widget.ProgressBar;
+
+public final class InvalidateProgressBarRunnable implements Runnable {
+
+ private final View view;
+
+ public InvalidateProgressBarRunnable(final View view) {
+ this.view = view;
+ }
+
+ @Override
+ public void run() {
+ if (!(view instanceof ProgressBar) || Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) return;
+ if (((ProgressBar) view).isIndeterminate()) {
+ view.invalidate();
+ }
+ view.postDelayed(this, 16);
+ }
+
+}
View
4 src/org/mariotaku/twidere/util/imageloader/DiskLruCache.java
@@ -306,15 +306,11 @@ public static void clearCache(final Context context, final String uniqueName) {
*/
public static String createFilePath(final File cacheDir, final String key) {
try {
- // Use URLEncoder to ensure we have a valid filename, a tad hacky
- // but it will do for
- // this example
return cacheDir.getAbsolutePath() + File.separator + CACHE_FILENAME_PREFIX
+ URLEncoder.encode(key.replace("*", ""), "UTF-8");
} catch (final UnsupportedEncodingException e) {
Log.e(TAG, "createFilePath - " + e);
}
-
return null;
}
View
17 src/org/mariotaku/twidere/util/imageloader/ImageFetcher.java
@@ -32,10 +32,7 @@
import twitter4j.http.HttpResponse;
import android.content.Context;
import android.graphics.Bitmap;
-import android.net.ConnectivityManager;
-import android.net.NetworkInfo;
import android.util.Log;
-import android.widget.Toast;
/**
* A simple subclass of {@link ImageResizer} that fetches and resizes images
@@ -138,20 +135,6 @@ protected Bitmap processBitmap(final Object data) {
}
/**
- * Simple network connection check.
- *
- * @param context
- */
- private void checkConnection(final Context context) {
- final ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);
- final NetworkInfo networkInfo = cm.getActiveNetworkInfo();
- if (networkInfo == null || !networkInfo.isConnectedOrConnecting()) {
- Toast.makeText(context, "No network connection found.", Toast.LENGTH_LONG).show();
- Log.e(TAG, "checkConnection - no connection found");
- }
- }
-
- /**
* The main process method, which will be called by the ImageWorker in the
* AsyncTask background thread.
*
View
12 src/org/mariotaku/twidere/view/ExtendedFrameLayout.java
@@ -26,7 +26,7 @@
import android.view.MotionEvent;
import android.widget.FrameLayout;
-public final class ExtendedFrameLayout extends FrameLayout implements ExtendedViewGroupInterface {
+public class ExtendedFrameLayout extends FrameLayout implements ExtendedViewGroupInterface {
private TouchInterceptor mTouchInterceptor;
private OnSizeChangedListener mOnSizeChangedListener;
@@ -44,7 +44,7 @@ public ExtendedFrameLayout(final Context context, final AttributeSet attrs, fina
}
@Override
- public boolean onInterceptTouchEvent(final MotionEvent event) {
+ public final boolean onInterceptTouchEvent(final MotionEvent event) {
if (mTouchInterceptor != null) {
final boolean ret = mTouchInterceptor.onInterceptTouchEvent(this, event);
if (ret) return true;
@@ -53,7 +53,7 @@ public boolean onInterceptTouchEvent(final MotionEvent event) {
}
@Override
- public boolean onTouchEvent(final MotionEvent event) {
+ public final boolean onTouchEvent(final MotionEvent event) {
if (mTouchInterceptor != null) {
final boolean ret = mTouchInterceptor.onTouchEvent(this, event);
if (ret) return true;
@@ -62,17 +62,17 @@ public boolean onTouchEvent(final MotionEvent event) {
}
@Override
- public void setOnSizeChangedListener(final OnSizeChangedListener listener) {
+ public final void setOnSizeChangedListener(final OnSizeChangedListener listener) {
mOnSizeChangedListener = listener;
}
@Override
- public void setTouchInterceptor(final TouchInterceptor listener) {
+ public final void setTouchInterceptor(final TouchInterceptor listener) {
mTouchInterceptor = listener;
}
@Override
- protected void onSizeChanged(final int w, final int h, final int oldw, final int oldh) {
+ protected final void onSizeChanged(final int w, final int h, final int oldw, final int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
if (mOnSizeChangedListener != null) {
mOnSizeChangedListener.onSizeChanged(this, w, h, oldw, oldh);
View
15 src/org/mariotaku/twidere/view/ExtendedLinearLayout.java
@@ -26,7 +26,7 @@
import android.view.MotionEvent;
import android.widget.LinearLayout;
-public final class ExtendedLinearLayout extends LinearLayout implements ExtendedViewGroupInterface {
+public class ExtendedLinearLayout extends LinearLayout implements ExtendedViewGroupInterface {
private TouchInterceptor mTouchInterceptor;
private OnSizeChangedListener mOnSizeChangedListener;
@@ -40,11 +40,12 @@ public ExtendedLinearLayout(final Context context, final AttributeSet attrs) {
}
public ExtendedLinearLayout(final Context context, final AttributeSet attrs, final int defStyle) {
- super(context, attrs, defStyle);
+ //Workaround for pre-Honeycomb devices.
+ super(context, attrs);
}
@Override
- public boolean onInterceptTouchEvent(final MotionEvent event) {
+ public final boolean onInterceptTouchEvent(final MotionEvent event) {
if (mTouchInterceptor != null) {
final boolean ret = mTouchInterceptor.onInterceptTouchEvent(this, event);
if (ret) return true;
@@ -53,7 +54,7 @@ public boolean onInterceptTouchEvent(final MotionEvent event) {
}
@Override
- public boolean onTouchEvent(final MotionEvent event) {
+ public final boolean onTouchEvent(final MotionEvent event) {
if (mTouchInterceptor != null) {
final boolean ret = mTouchInterceptor.onTouchEvent(this, event);
if (ret) return true;
@@ -62,17 +63,17 @@ public boolean onTouchEvent(final MotionEvent event) {
}
@Override
- public void setOnSizeChangedListener(final OnSizeChangedListener listener) {
+ public final void setOnSizeChangedListener(final OnSizeChangedListener listener) {
mOnSizeChangedListener = listener;
}
@Override
- public void setTouchInterceptor(final TouchInterceptor listener) {
+ public final void setTouchInterceptor(final TouchInterceptor listener) {
mTouchInterceptor = listener;
}
@Override
- protected void onSizeChanged(final int w, final int h, final int oldw, final int oldh) {
+ protected final void onSizeChanged(final int w, final int h, final int oldw, final int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
if (mOnSizeChangedListener != null) {
mOnSizeChangedListener.onSizeChanged(this, w, h, oldw, oldh);
View
30 src/org/mariotaku/twidere/view/HoloProgressBar.java
@@ -0,0 +1,30 @@
+package org.mariotaku.twidere.view;
+
+import org.mariotaku.twidere.util.InvalidateProgressBarRunnable;
+
+import android.content.Context;
+import android.util.AttributeSet;
+import android.widget.ProgressBar;
+
+public class HoloProgressBar extends ProgressBar {
+
+ public HoloProgressBar(Context context) {
+ super(context);
+ init();
+ }
+
+ public HoloProgressBar(Context context, AttributeSet attrs) {
+ super(context, attrs);
+ init();
+ }
+
+ public HoloProgressBar(Context context, AttributeSet attrs, int defStyle) {
+ super(context, attrs, defStyle);
+ init();
+ }
+
+ void init() {
+ post(new InvalidateProgressBarRunnable(this));
+ }
+
+}
View
39 src/org/mariotaku/twidere/view/RoundCorneredImageView.java
@@ -56,20 +56,14 @@ public RoundCorneredImageView(final Context context, final AttributeSet attrs, f
SetLayerTypeAccessor.setLayerType(this, View.LAYER_TYPE_SOFTWARE, null);
}
final TypedArray a = context.obtainStyledAttributes(attrs, new int[] { android.R.attr.radius });
- mRadius = a.getDimensionPixelSize(0, 0);
+ mRadius = a.getDimensionPixelSize(0, (int) (4 * getResources().getDisplayMetrics().density));
a.recycle();
- createPath();
}
@Override
public void onDraw(final Canvas canvas) {
- super.onDraw(canvas);
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
- if (mRounder != null && mPaint != null) {
- canvas.drawBitmap(mRounder, 0, 0, mPaint);
- }
- } else {
- // Workaround for pre-ICS devices, without anti alias.
+ // Workaround for pre-ICS devices, without anti-alias.
+ if (Build.VERSION.SDK_INT < Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
try {
canvas.clipPath(mPath);
} catch (final UnsupportedOperationException e) {
@@ -77,25 +71,34 @@ public void onDraw(final Canvas canvas) {
// simply ignore this Exception.
}
}
+ super.onDraw(canvas);
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
+ if (mRounder != null && mPaint != null) {
+ canvas.drawBitmap(mRounder, 0, 0, mPaint);
+ }
+ }
}
@Override
public void onSizeChanged(final int w, final int h, final int oldw, final int oldh) {
if (w > 0 && h > 0) {
- mRounder = Bitmap.createBitmap(w, h, Bitmap.Config.ARGB_8888);
- final Canvas canvas = new Canvas(mRounder);
- mPaint = new Paint(Paint.ANTI_ALIAS_FLAG | Paint.FILTER_BITMAP_FLAG);
- mPaint.setColor(Color.BLACK);
- canvas.drawRoundRect(new RectF(0, 0, w, h), mRadius, mRadius, mPaint);
- mPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.DST_IN));
- createPath();
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
+ mRounder = Bitmap.createBitmap(w, h, Bitmap.Config.ARGB_8888);
+ final Canvas canvas = new Canvas(mRounder);
+ mPaint = new Paint(Paint.ANTI_ALIAS_FLAG | Paint.FILTER_BITMAP_FLAG);
+ mPaint.setColor(Color.BLACK);
+ canvas.drawRoundRect(new RectF(0, 0, w, h), mRadius, mRadius, mPaint);
+ mPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.DST_IN));
+ } else {
+ createPath(w, h);
+ }
}
super.onSizeChanged(w, h, oldw, oldh);
}
- private void createPath() {
+ private void createPath(final int w, final int h) {
mPath.reset();
- mPath.addRoundRect(new RectF(0, 0, getWidth(), getHeight()), mRadius, mRadius, Path.Direction.CW);
+ mPath.addRoundRect(new RectF(0, 0, w, h), mRadius, mRadius, Path.Direction.CW);
}
static class SetLayerTypeAccessor {
View
306 src/org/mariotaku/twidere/view/SlidingPaneView.java
@@ -4,10 +4,12 @@
import org.mariotaku.twidere.util.ExtendedViewGroupInterface.TouchInterceptor;
import android.content.Context;
+import android.content.res.Resources;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
+import android.graphics.Rect;
import android.os.Parcel;
import android.os.Parcelable;
import android.util.AttributeSet;
@@ -43,8 +45,11 @@
private final LeftPaneLayout mViewLeftPaneContainer;
private final RightPaneLayout mViewRightPaneContainer;
private final ExtendedFrameLayout mRightPaneContent;
+ private final View mLeftPaneLayout, mRightPaneLayout;
- final ContentScrollController mController;
+ private final ScrollTouchInterceptor mTouchInterceptor;
+ private final OnTouchListener mShadowTouchListener;
+ private final ContentScrollController mController;
/**
* Value of spacing to use.
@@ -81,7 +86,7 @@
*/
private boolean mForceRefresh = false;
- private final View mLeftPaneLayout, mRightPaneLayout;
+ private boolean mShadowSlidable;
public SlidingPaneView(final Context context) {
this(context, null);
@@ -94,15 +99,17 @@ public SlidingPaneView(final Context context, final AttributeSet attrs) {
public SlidingPaneView(final Context context, final AttributeSet attrs, final int defStyle) {
super(context, attrs, defStyle);
+ final Resources res = getResources();
+
setClipChildren(false);
setClipToPadding(false);
// reading attributes
- final TypedArray a =