Permalink
Browse files

0.2.5 version.

advanced permission management
better list performance
large width image preview
optimized for tablets
removed background service.
  • Loading branch information...
1 parent f48290d commit 1a8c1e147f1630af1a5a7f7eba115339c5cf34f7 @mariotaku committed Dec 29, 2012
Showing with 1,434 additions and 1,209 deletions.
  1. +11 −1 AndroidManifest.xml
  2. +12 −0 project.propertiese
  3. BIN res/drawable-xhdpi/ic_menu_revert.png
  4. +29 −7 res/layout-ar/status_list_item.xml
  5. +93 −0 res/layout/request_permissions.xml
  6. +26 −6 res/layout/status_list_item.xml
  7. +4 −0 res/menu/action_extension.xml
  8. +393 −390 res/values-zh-rCN/strings.xml
  9. +120 −100 res/values-zh/strings.xml
  10. +2 −2 res/values/dimens.xml
  11. +1 −0 res/values/ids.xml
  12. +11 −6 res/values/strings.xml
  13. +16 −0 src/org/mariotaku/gallery3d/app/ImageViewerGLActivity.java
  14. +14 −9 src/org/mariotaku/twidere/Constants.java
  15. +1 −11 src/org/mariotaku/twidere/activity/BaseActivity.java
  16. +1 −11 src/org/mariotaku/twidere/activity/BaseDialogActivity.java
  17. +1 −11 src/org/mariotaku/twidere/activity/BasePreferenceActivity.java
  18. +122 −0 src/org/mariotaku/twidere/activity/RequestPermissionsActivity.java
  19. +1 −11 src/org/mariotaku/twidere/activity/SettingsActivity.java
  20. +22 −4 src/org/mariotaku/twidere/adapter/CursorStatusesAdapter.java
  21. +1 −1 src/org/mariotaku/twidere/adapter/DirectMessagesConversationAdapter.java
  22. +1 −1 src/org/mariotaku/twidere/adapter/DirectMessagesEntryAdapter.java
  23. +15 −8 src/org/mariotaku/twidere/adapter/ExtensionsAdapter.java
  24. +20 −5 src/org/mariotaku/twidere/adapter/ParcelableStatusesAdapter.java
  25. +1 −1 src/org/mariotaku/twidere/adapter/UsersAdapter.java
  26. +15 −2 src/org/mariotaku/twidere/fragment/ExtensionsListFragment.java
  27. +2 −2 src/org/mariotaku/twidere/fragment/UserProfileFragment.java
  28. +3 −3 src/org/mariotaku/twidere/loader/ExtensionsListLoader.java
  29. +66 −0 src/org/mariotaku/twidere/model/BundleCursor.java
  30. +0 −70 src/org/mariotaku/twidere/model/ConsumerKeySecretCursor.java
  31. +14 −4 src/org/mariotaku/twidere/preference/StatusPreviewPreference.java
  32. +3 −3 src/org/mariotaku/twidere/provider/CommandProvider.java
  33. +6 −1 src/org/mariotaku/twidere/provider/TweetStore.java
  34. +5 −0 src/org/mariotaku/twidere/provider/TwidereCommands.java
  35. +30 −15 src/org/mariotaku/twidere/provider/{TweetStoreProvider.java → TwidereDataProvider.java}
  36. +19 −8 src/org/mariotaku/twidere/util/AsyncTwitterWrapper.java
  37. +301 −420 src/org/mariotaku/twidere/util/LazyImageLoader.java
  38. +31 −11 src/org/mariotaku/twidere/util/{PermissionManager.java → PermissionsManager.java}
  39. +9 −13 src/org/mariotaku/twidere/util/Utils.java
  40. +5 −69 src/org/mariotaku/twidere/view/holder/StatusViewHolder.java
  41. +7 −3 src/org/mariotaku/twidere/view/holder/{ExtensionsViewHolder.java → TwoLineWithIconViewHolder.java}
View
@@ -466,6 +466,16 @@
android:name=".activity.DataProfilingSettingsActivity"
android:label="@string/data_profiling"
android:theme="@style/Theme.Blank.DialogWhenLarge"/>
+ <activity
+ android:name=".activity.RequestPermissionsActivity"
+ android:label="@string/permissions_request"
+ android:theme="@style/Theme.Blank.DialogWhenLarge">
+ <intent-filter>
+ <action android:name="org.mariotaku.twidere.REQUEST_PERMISSIONS"/>
+
+ <category android:name="android.intent.category.DEFAULT"/>
+ </intent-filter>
+ </activity>
<service
android:name=".service.RefreshService"
@@ -476,7 +486,7 @@
android:settingsActivity=".activity.DataProfilingSettingsActivity"/>
<provider
- android:name=".provider.TweetStoreProvider"
+ android:name="org.mariotaku.twidere.provider.TwidereDataProvider"
android:authorities="twidere"
android:exported="true"
android:label="@string/label_tweetstore_provider"/>
View
@@ -0,0 +1,12 @@
+# This file is automatically generated by Android Tools.
+# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
+#
+# This file must be checked in Version Control Systems.
+#
+# To customize properties used by the Ant build system edit
+# "ant.properties", and override values to adapt the script to your
+# project structure.
+#
+
+# Project target.
+target=Google Inc.:Google APIs:17
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -23,13 +23,35 @@
android:gravity="center_vertical|right"
android:orientation="horizontal">
- <TextView
- android:id="@+id/name"
+ <LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right"
- android:gravity="right"
- android:singleLine="true"/>
+ android:orientation="horizontal">
+
+ <TextView
+ android:id="@+id/screen_name"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:gravity="right"
+ android:layerType="software"
+ android:paddingLeft="4dp"
+ android:paddingRight="4dp"
+ android:singleLine="true"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:textColor="?android:attr/textColorSecondary"/>
+
+ <TextView
+ android:id="@+id/name"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:gravity="right"
+ android:layerType="software"
+ android:singleLine="true"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:textColor="?android:attr/textColorPrimary"
+ android:textStyle="bold"/>
+ </LinearLayout>
</FrameLayout>
<TextView
@@ -66,7 +88,6 @@
android:layout_alignWithParentIfMissing="true"
android:layout_below="@+id/text"
android:layout_marginTop="8dp"
- android:layout_toLeftOf="@+id/profile_image"
android:background="?imagePreviewBackground">
<org.mariotaku.twidere.view.ImagePreviewView
@@ -99,6 +120,7 @@
android:text="@string/tap_to_load_more"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="#606060"
- android:textStyle="bold"/>
+ android:textStyle="bold"
+ android:visibility="gone"/>
-</org.mariotaku.twidere.view.ColorLabelRelativeLayout>
+</org.mariotaku.twidere.view.ColorLabelRelativeLayout>
@@ -0,0 +1,93 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical">
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:gravity="center"
+ android:orientation="horizontal"
+ android:padding="16dp">
+
+ <ImageView
+ android:id="@android:id/icon"
+ android:layout_width="56dp"
+ android:layout_height="56dp"
+ android:layout_margin="4dp"
+ android:scaleType="fitCenter"/>
+
+ <LinearLayout
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:gravity="center_vertical"
+ android:orientation="vertical">
+
+ <TextView
+ android:id="@android:id/text1"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:ellipsize="marquee"
+ android:layerType="software"
+ android:singleLine="true"
+ android:textAppearance="?android:attr/textAppearanceLarge"
+ android:textStyle="bold"/>
+
+ <TextView
+ android:id="@android:id/text2"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:ellipsize="marquee"
+ android:layerType="software"
+ android:singleLine="true"
+ android:textAppearance="?android:attr/textAppearanceMedium"/>
+ </LinearLayout>
+ </LinearLayout>
+
+ <TextView
+ android:id="@+id/message"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:padding="16dp"
+ android:textAppearance="?android:attr/textAppearanceMedium"/>
+
+ <View
+ android:id="@+id/divider"
+ android:layout_width="match_parent"
+ android:layout_height="0.2dp"
+ android:background="#40808080"/>
+
+ <LinearLayout
+ android:id="@+id/buttons"
+ android:layout_width="match_parent"
+ android:layout_height="52dp"
+ android:orientation="horizontal">
+
+ <Button
+ android:id="@+id/accept"
+ style="?android:attr/buttonStyleSmall"
+ android:layout_width="0dp"
+ android:layout_height="match_parent"
+ android:layout_weight="1"
+ android:background="?android:attr/itemBackground"
+ android:gravity="center"
+ android:text="@string/accept"/>
+
+ <View
+ android:layout_width="0.2dp"
+ android:layout_height="match_parent"
+ android:background="#40808080"/>
+
+ <Button
+ android:id="@+id/deny"
+ style="?android:attr/buttonStyleSmall"
+ android:layout_width="0dp"
+ android:layout_height="match_parent"
+ android:layout_weight="1"
+ android:background="?android:attr/itemBackground"
+ android:gravity="center"
+ android:text="@string/no_thanks"/>
+ </LinearLayout>
+
+</LinearLayout>
@@ -21,13 +21,34 @@
android:layout_toLeftOf="@+id/time"
android:layout_toRightOf="@+id/profile_image">
- <TextView
- android:id="@+id/name"
+ <LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="left"
- android:layerType="software"
- android:singleLine="true"/>
+ android:orientation="horizontal">
+
+ <TextView
+ android:id="@+id/name"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:layerType="software"
+ android:singleLine="true"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:textColor="?android:attr/textColorPrimary"
+ android:textStyle="bold"/>
+
+ <TextView
+ android:id="@+id/screen_name"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layerType="software"
+ android:paddingLeft="4dp"
+ android:paddingRight="4dp"
+ android:singleLine="true"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:textColor="?android:attr/textColorSecondary"/>
+ </LinearLayout>
</FrameLayout>
<TextView
@@ -61,7 +82,6 @@
android:layout_alignWithParentIfMissing="true"
android:layout_below="@+id/text"
android:layout_marginTop="8dp"
- android:layout_toRightOf="@+id/profile_image"
android:background="?imagePreviewBackground">
<org.mariotaku.twidere.view.ImagePreviewView
@@ -95,4 +115,4 @@
android:textAppearance="?android:attr/textAppearanceMedium"
android:textStyle="bold"/>
-</org.mariotaku.twidere.view.ColorLabelRelativeLayout>
+</org.mariotaku.twidere.view.ColorLabelRelativeLayout>
@@ -6,6 +6,10 @@
android:icon="@drawable/ic_menu_preferences"
android:title="@string/settings"/>
<item
+ android:id="@id/revoke"
+ android:icon="@drawable/ic_menu_revert"
+ android:title="@string/revoke_permissions"/>
+ <item
android:id="@id/delete"
android:icon="@drawable/ic_menu_delete"
android:title="@string/uninstall"/>
Oops, something went wrong.

0 comments on commit 1a8c1e1

Please sign in to comment.