Permalink
Browse files

0.0.13 version.

various bug fixes.
listview performance improved.
added Japanese translation.
support android 1.6+
reduced size.
added image viewer.
  • Loading branch information...
1 parent 1a49fbd commit c87b7785154abdf88774cb04d41c28f43bb1b1e7 Mariotaku Lee committed Jun 16, 2012
Showing with 2,412 additions and 729 deletions.
  1. +20 −20 AndroidManifest.xml
  2. +674 −0 COPYING
  3. +2 −1 lint.xml
  4. +1 −0 project.properties
  5. BIN res/drawable-hdpi/twitter_logo.png
  6. BIN res/drawable-xhdpi/broken_image.png
  7. BIN res/drawable-xhdpi/btn_image_viewer_focused_left.9.png
  8. BIN res/drawable-xhdpi/btn_image_viewer_focused_right.9.png
  9. BIN res/drawable-xhdpi/btn_image_viewer_normal_left.9.png
  10. BIN res/drawable-xhdpi/btn_image_viewer_normal_right.9.png
  11. BIN res/drawable-xhdpi/btn_image_viewer_pressed_left.9.png
  12. BIN res/drawable-xhdpi/btn_image_viewer_pressed_right.9.png
  13. BIN res/drawable-xhdpi/ic_menu_clear_playlist.png
  14. BIN res/drawable-xhdpi/ic_menu_color_palette.png
  15. BIN res/drawable-xhdpi/ic_menu_home.png
  16. BIN res/drawable-xhdpi/ic_menu_mark.png
  17. BIN res/drawable-xhdpi/ic_menu_revert.png
  18. BIN res/drawable-xhdpi/ic_menu_rotate.png
  19. BIN res/drawable-xhdpi/spinner_48_inner_holo.png
  20. BIN res/drawable-xhdpi/spinner_48_outer_holo.png
  21. +9 −0 res/drawable/btn_image_viewer_left.xml
  22. +9 −0 res/drawable/btn_image_viewer_right.xml
  23. +28 −0 res/drawable/image_viewer_background.xml
  24. +36 −0 res/drawable/progress_medium_holo.xml
  25. +2 −2 res/layout/color_grid_item.xml
  26. +1 −1 res/layout/compose.xml
  27. +1 −2 res/layout/home_tabs.xml
  28. +52 −0 res/layout/image_viewer.xml
  29. +1 −1 res/layout/refreshable_list.xml
  30. +1 −0 res/layout/select_account.xml
  31. +5 −6 res/layout/set_color.xml
  32. +8 −3 res/layout/twitter_login.xml
  33. +1 −1 res/layout/view_status.xml
  34. +15 −2 res/menu/context_account.xml
  35. +6 −5 res/values-cs/pull_refresh_strings.xml
  36. +6 −0 res/values-land/dimens.xml
  37. +0 −1 res/values-zh/strings.xml
  38. +1 −0 res/values/dimens.xml
  39. +6 −2 res/values/styles.xml
  40. +9 −6 res/values/themes.xml
  41. +11 −10 res/values/vpi__colors.xml
  42. +0 −2 res/xml/settings.xml
  43. +2 −0 src/com/handmark/pulltorefresh/library/PullToRefreshAdapterViewBase.java
  44. +3 −0 src/com/handmark/pulltorefresh/library/PullToRefreshBase.java
  45. +1 −0 src/com/handmark/pulltorefresh/library/PullToRefreshListView.java
  46. +3 −0 src/org/mariotaku/twidere/Constants.java
  47. +1 −1 src/org/mariotaku/twidere/activity/BrowserActivity.java
  48. +3 −1 src/org/mariotaku/twidere/activity/ComposeActivity.java
  49. +19 −5 src/org/mariotaku/twidere/activity/HomeActivity.java
  50. +156 −199 src/org/mariotaku/twidere/activity/ImageViewActivity.java
  51. +43 −3 src/org/mariotaku/twidere/activity/LinkHandlerActivity.java
  52. +1 −1 src/org/mariotaku/twidere/activity/MapActivity.java
  53. +0 −4 src/org/mariotaku/twidere/activity/SelectAccountActivity.java
  54. +2 −2 src/org/mariotaku/twidere/activity/SettingsActivity.java
  55. +9 −13 src/org/mariotaku/twidere/activity/TwitterLoginActivity.java
  56. +4 −4 src/org/mariotaku/twidere/adapter/ParcelableStatusesAdapter.java
  57. +6 −5 src/org/mariotaku/twidere/adapter/StatusesCursorAdapter.java
  58. +22 −7 src/org/mariotaku/twidere/adapter/UsersAdapter.java
  59. +64 −0 src/org/mariotaku/twidere/app/TwidereApplication.java
  60. +60 −118 src/org/mariotaku/twidere/fragment/AccountsFragment.java
  61. +5 −3 src/org/mariotaku/twidere/fragment/BaseStatusesListFragment.java
  62. +7 −6 src/org/mariotaku/twidere/fragment/BaseUsersListFragment.java
  63. +4 −4 src/org/mariotaku/twidere/fragment/CursorStatusesListFragment.java
  64. +7 −3 src/org/mariotaku/twidere/fragment/SearchUsersFragment.java
  65. +7 −7 src/org/mariotaku/twidere/fragment/UserFollowersFragment.java
  66. +28 −58 src/org/mariotaku/twidere/fragment/UserProfileFragment.java
  67. +2 −6 src/org/mariotaku/twidere/fragment/UserTimelineFragment.java
  68. +1 −1 src/org/mariotaku/twidere/fragment/ViewConversationFragment.java
  69. +19 −84 src/org/mariotaku/twidere/fragment/ViewStatusFragment.java
  70. +23 −15 src/org/mariotaku/twidere/loader/UserFollowersLoader.java
  71. +5 −2 src/org/mariotaku/twidere/loader/UserSearchLoader.java
  72. +1 −10 src/org/mariotaku/twidere/loader/UserTimelineLoader.java
  73. +17 −12 src/org/mariotaku/twidere/loader/UsersLoader.java
  74. +150 −9 src/org/mariotaku/twidere/util/AutoLink.java
  75. +5 −4 src/org/mariotaku/twidere/util/ExceptionHandler.java
  76. +7 −0 src/org/mariotaku/twidere/util/FakeMenuItem.java
  77. +1 −1 src/org/mariotaku/twidere/util/ParcelableStatus.java
  78. +236 −0 src/org/mariotaku/twidere/util/Patterns.java
  79. +59 −12 src/org/mariotaku/twidere/util/ProfileImageLoader.java
  80. +3 −17 src/org/mariotaku/twidere/util/StatusViewHolder.java
  81. +4 −1 src/org/mariotaku/twidere/util/StatusesAdapterInterface.java
  82. +12 −0 src/org/mariotaku/twidere/util/UserViewHolder.java
  83. +159 −22 src/org/mariotaku/twidere/util/Utils.java
  84. +344 −0 src/org/mariotaku/twidere/view/ImageViewer.java
  85. +2 −0 src/org/mariotaku/twidere/view/Switch.java
  86. +0 −24 twidere.iml
View
@@ -2,7 +2,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.mariotaku.twidere"
android:installLocation="auto"
- android:versionCode="14"
+ android:versionCode="15"
android:versionName="0.0.13">
<uses-sdk
@@ -215,6 +215,12 @@
android:host="user"
android:scheme="twidere"/>
<data
+ android:host="user_timeline"
+ android:scheme="twidere"/>
+ <data
+ android:host="user_favorites"
+ android:scheme="twidere"/>
+ <data
android:host="status"
android:scheme="twidere"/>
<data
@@ -238,6 +244,19 @@
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>
+ <activity
+ android:name=".activity.ImageViewActivity"
+ android:label="@string/view_image"
+ android:theme="@style/Theme.Twidere.ImageViewer">
+ <intent-filter>
+ <action android:name="org.mariotaku.twidere.VIEW_IMAGE"/>
+
+ <category android:name="android.intent.category.DEFAULT"/>
+
+ <data android:scheme="http"/>
+ <data android:scheme="https"/>
+ </intent-filter>
+ </activity>
<provider
android:name=".provider.TweetStoreProvider"
@@ -256,25 +275,6 @@
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</service>
-
- <activity
- android:name=".activity.ImageViewActivity"
- android:label="@string/view_image"
- android:theme="@android:style/Theme.Translucent.NoTitleBar">
- <intent-filter>
- <action android:name="android.intent.action.MAIN"/>
- <action android:name="org.mariotaku.twidere.VIEW_IMAGES"/>
-
- <category android:name="android.intent.category.DEFAULT"/>
-
- <data
- android:host="*"
- android:scheme="http"/>
- <data
- android:host="*"
- android:scheme="https"/>
- </intent-filter>
- </activity>
</application>
</manifest>
View
674 COPYING

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<lint>
<issue id="DuplicateIds" severity="error" />
- <issue id="MissingTranslation" severity="warning" />
+ <issue id="ExtraTranslation" severity="error" />
+ <issue id="MissingTranslation" severity="informational" />
<issue id="SdCardPath" severity="error" />
</lint>
View
@@ -13,3 +13,4 @@
# Project target.
target=android-15
android.library.reference.1=../actionbarcompat
+android.library.reference.2=../android-holocompat-for-twidere
Deleted file not rendered
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Deleted file not rendered
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Deleted file not rendered
Deleted file not rendered
Deleted file not rendered
Deleted file not rendered
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <item android:drawable="@drawable/btn_image_viewer_pressed_left" android:state_focused="true" android:state_pressed="true"/>
+ <item android:drawable="@drawable/btn_image_viewer_pressed_left" android:state_focused="false" android:state_pressed="true"/>
+ <item android:drawable="@drawable/btn_image_viewer_focused_left" android:state_focused="true"/>
+ <item android:drawable="@drawable/btn_image_viewer_normal_left"/>
+
+</selector>
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <item android:drawable="@drawable/btn_image_viewer_pressed_right" android:state_focused="true" android:state_pressed="true"/>
+ <item android:drawable="@drawable/btn_image_viewer_pressed_right" android:state_focused="false" android:state_pressed="true"/>
+ <item android:drawable="@drawable/btn_image_viewer_focused_right" android:state_focused="true"/>
+ <item android:drawable="@drawable/btn_image_viewer_normal_right"/>
+
+</selector>
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2011 The MusicMod 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.
+-->
+
+<shape xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <gradient
+ android:centerX="0.5"
+ android:centerY="0.5"
+ android:endColor="#a0000000"
+ android:gradientRadius="300"
+ android:startColor="#80000000"
+ android:type="radial"/>
+
+</shape>
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ 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="720"
+ android:pivotX="50%"
+ android:pivotY="50%"
+ android:toDegrees="0"/>
+ </item>
+
+</layer-list>
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="102dip"
- android:layout_height="102dip"
+ android:layout_width="96dip"
+ android:layout_height="96dip"
android:layout_gravity="center"
android:padding="8dip">
View
@@ -33,7 +33,7 @@
<org.mariotaku.popupmenu.MenuBar
android:id="@+id/menu_bar"
- android:layout_width="match_parent"
+ android:layout_width="fill_parent"
android:layout_height="48dp"
android:background="?menuBarBackground"/>
View
@@ -32,11 +32,10 @@
<ProgressBar
android:id="@android:id/progress"
- style="?actionBarIndeterminateProgressStyle"
+ style="@style/Widget.Holo.ProgressBar.Small"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
- android:layout_marginRight="2dp"
android:layout_weight="0"/>
</LinearLayout>
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="utf-8"?>
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent">
+
+ <org.mariotaku.twidere.view.ImageViewer
+ android:id="@+id/image_viewer"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"/>
+
+ <RelativeLayout
+ android:layout_width="fill_parent"
+ android:layout_height="48dp">
+
+ <ImageButton
+ android:id="@+id/close"
+ android:layout_width="64dp"
+ android:layout_height="48dp"
+ android:layout_alignParentLeft="true"
+ android:layout_alignParentTop="true"
+ android:background="@drawable/btn_image_viewer_left"
+ android:onClick="onClick"
+ android:src="@drawable/ic_menu_close_clear_cancel"/>
+
+ <FrameLayout
+ android:id="@+id/progress_refresh"
+ android:layout_width="64dp"
+ android:layout_height="48dp"
+ android:layout_alignParentRight="true"
+ android:layout_alignParentTop="true"
+ android:background="@drawable/btn_image_viewer_right"
+ android:onClick="onClick">
+
+ <ProgressBar
+ android:id="@+id/progress"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center"
+ android:indeterminateDrawable="@drawable/progress_medium_holo"
+ android:indeterminateOnly="true"/>
+
+ <ImageView
+ android:id="@id/refresh"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center"
+ android:contentDescription="@string/refresh"
+ android:src="@drawable/ic_menu_refresh"/>
+ </FrameLayout>
+ </RelativeLayout>
+
+</FrameLayout>
@@ -3,4 +3,4 @@
android:id="@+id/refreshable_list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
- android:layerType="hardware"/>
+ android:layerType="software"/>
@@ -24,6 +24,7 @@
android:background="@drawable/list_selector_holo_light"
android:gravity="center"
android:minHeight="48dp"
+ android:onClick="onClick"
android:text="@string/add_account"/>
</LinearLayout>
View
@@ -1,18 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:gravity="center"
- android:padding="16dip">
+ android:layout_width="300dp"
+ android:layout_height="@dimen/set_color_height"
+ android:gravity="center">
<GridView
android:id="@+id/colors_grid"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignParentTop="true"
android:gravity="center"
- android:horizontalSpacing="4dip"
- android:numColumns="auto_fit"
+ android:horizontalSpacing="2dip"
+ android:numColumns="3"
android:verticalSpacing="4dip"/>
</RelativeLayout>
@@ -57,6 +57,7 @@
android:layout_height="wrap_content"
android:layout_weight="1"
android:minHeight="48dp"
+ android:onClick="onClick"
android:text="@string/sign_in"/>
<Button
@@ -65,15 +66,19 @@
android:layout_height="wrap_content"
android:layout_weight="1"
android:minHeight="48dp"
+ android:onClick="onClick"
android:text="@string/sign_up"/>
</LinearLayout>
</RelativeLayout>
</ScrollView>
<ImageButton
android:id="@+id/set_color"
- android:layout_width="48dp"
- android:layout_height="48dp"
- android:layout_gravity="bottom|right"/>
+ android:layout_width="56dp"
+ android:layout_height="56dp"
+ android:layout_gravity="bottom|right"
+ android:contentDescription="@string/set_color"
+ android:onClick="onClick"
+ android:src="@drawable/ic_menu_color_palette"/>
</FrameLayout>
@@ -139,7 +139,7 @@
<org.mariotaku.popupmenu.MenuBar
android:id="@+id/menu_bar"
- android:layout_width="match_parent"
+ android:layout_width="fill_parent"
android:layout_height="48dp"
android:layout_alignParentBottom="true"
android:background="?menuBarBackground"/>
@@ -3,12 +3,25 @@
<item
android:id="@id/view"
+ android:icon="@drawable/ic_menu_view"
android:title="@string/view"/>
<item
android:id="@id/set_color"
+ android:icon="@drawable/ic_menu_color_palette"
android:title="@string/set_color"/>
<item
- android:id="@id/delete"
- android:title="@string/delete"/>
+ android:id="@+id/delete_submenu"
+ android:icon="@drawable/ic_menu_delete"
+ android:title="@string/delete">
+ <menu>
+ <item
+ android:icon="@drawable/ic_menu_close_clear_cancel"
+ android:title="@android:string/cancel"/>
+ <item
+ android:id="@id/delete"
+ android:icon="@drawable/ic_menu_delete"
+ android:title="@string/delete"/>
+ </menu>
+ </item>
</menu>
@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
- <string name="pull_to_refresh_pull_label">Tažením aktualizujete&#8230;</string>
- <string name="pull_to_refresh_release_label">Uvolněním aktualizujete&#8230;</string>
- <string name="pull_to_refresh_tap_label">Poklepáním aktualizujete&#8230;</string>
- <string name="pull_to_refresh_refreshing_label">Načítání&#8230;</string>
-</resources>
+
+ <string name="pull_to_refresh_pull_label">Tažením aktualizujete…</string>
+ <string name="pull_to_refresh_release_label">Uvolněním aktualizujete…</string>
+ <string name="pull_to_refresh_refreshing_label">Načítání…</string>
+
+</resources>
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+ <dimen name="set_color_height">180dp</dimen>
+
+</resources>
@@ -41,7 +41,6 @@
<string name="error_occurred">發生錯誤,請重試。</string>
<string name="error_already_logged_in">你已經登錄。</string>
<string name="no_account_selected">你必須至少選擇一個帳號。</string>
- <string name="error_no_permission">錯誤:你沒有權限訪問twitter,應用程序的密鑰可能是無效的。</string>
<string name="error_unknown_error">錯誤:未知錯誤,這很可能是個bug。</string>
<string name="error_message">錯誤:<xliff:g id="message">%s</xliff:g></string>
<string name="select_account">選擇帳號</string>
Oops, something went wrong.

0 comments on commit c87b778

Please sign in to comment.