aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-07-16 17:26:58 -0700
committerGitHub <noreply@github.com>2017-07-16 17:26:58 -0700
commitd90cb9b61cd2e033b46f4780ad1340c5f35b7751 (patch)
tree0294ce22bacb463c9cc95de8dc5581c1bd59a108 /app/src/main/res
parentc3f1fc6a8b3216442a018bb04843dfa68d738918 (diff)
downloadfrost-d90cb9b61cd2e033b46f4780ad1340c5f35b7751.tar.gz
frost-d90cb9b61cd2e033b46f4780ad1340c5f35b7751.tar.bz2
frost-d90cb9b61cd2e033b46f4780ad1340c5f35b7751.zip
Add image viewing and downloading (#63)v1.3
* Commence aggressive image caching * Add glide toggle and css url parsing * Add image hook and refractor activities * Update version analytics * Implemented imageactivity but glide will not load * Create working image loader * Finalize image view * Finalize image view logic * Remove custom cache experiment
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/drawable/frost_f_24.xml2
-rw-r--r--app/src/main/res/drawable/frost_f_256.xml2
-rw-r--r--app/src/main/res/layout/activity_image.xml48
-rw-r--r--app/src/main/res/layout/activity_image_textless.xml30
-rw-r--r--app/src/main/res/layout/activity_login.xml2
-rw-r--r--app/src/main/res/layout/activity_main.xml2
-rw-r--r--app/src/main/res/layout/activity_web_overlay.xml2
-rw-r--r--app/src/main/res/values/strings.xml27
-rw-r--r--app/src/main/res/values/strings_libs.xml26
-rw-r--r--app/src/main/res/values/strings_pref_experimental.xml1
-rw-r--r--app/src/main/res/values/styles.xml7
-rw-r--r--app/src/main/res/xml/changelog.xml19
-rw-r--r--app/src/main/res/xml/file_paths.xml9
13 files changed, 142 insertions, 35 deletions
diff --git a/app/src/main/res/drawable/frost_f_24.xml b/app/src/main/res/drawable/frost_f_24.xml
index b435fa03..18271849 100644
--- a/app/src/main/res/drawable/frost_f_24.xml
+++ b/app/src/main/res/drawable/frost_f_24.xml
@@ -8,7 +8,7 @@
<path
android:pathData="M88.9405 31.61857l41.06143 23.88663M88.3467 31.59584l-31.358 18.2953M56.87005
51.09542v94.26222M57.20726 87.2077l40.97656 23.86424"
- android:strokeColor="#000"
+ android:strokeColor="#fff"
android:strokeLineCap="round"
android:strokeWidth="10" />
</vector> \ No newline at end of file
diff --git a/app/src/main/res/drawable/frost_f_256.xml b/app/src/main/res/drawable/frost_f_256.xml
index fce1b5ca..220dee69 100644
--- a/app/src/main/res/drawable/frost_f_256.xml
+++ b/app/src/main/res/drawable/frost_f_256.xml
@@ -8,7 +8,7 @@
<path
android:pathData="M88.9405 31.61857l41.06143 23.88663M88.3467 31.59584l-31.358 18.2953M56.87005
51.09542v94.26222M57.20726 87.2077l40.97656 23.86424"
- android:strokeColor="#000"
+ android:strokeColor="#fff"
android:strokeLineCap="round"
android:strokeWidth="10" />
</vector> \ No newline at end of file
diff --git a/app/src/main/res/layout/activity_image.xml b/app/src/main/res/layout/activity_image.xml
new file mode 100644
index 00000000..a2264b25
--- /dev/null
+++ b/app/src/main/res/layout/activity_image.xml
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="utf-8"?>
+<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:id="@+id/image_container"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <ProgressBar
+ android:id="@+id/image_progress"
+ style="?android:attr/progressBarStyleLarge"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center" />
+
+ <com.sothree.slidinguppanel.SlidingUpPanelLayout
+ android:id="@+id/image_panel"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:gravity="bottom"
+ app:umanoPanelHeight="44dp"
+ app:umanoShadowHeight="0dp">
+
+ <com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView
+ android:id="@+id/image_photo"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:alpha="0"
+ android:scaleX="0.9"
+ android:scaleY="0.9" />
+
+ <TextView
+ android:id="@+id/image_text"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:alpha="0.5"
+ android:padding="@dimen/kau_padding_normal" />
+
+ </com.sothree.slidinguppanel.SlidingUpPanelLayout>
+
+ <android.support.design.widget.FloatingActionButton
+ android:id="@+id/image_fab"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="end|bottom"
+ android:layout_margin="@dimen/kau_fab_margin"
+ android:visibility="invisible" />
+
+</android.support.design.widget.CoordinatorLayout> \ No newline at end of file
diff --git a/app/src/main/res/layout/activity_image_textless.xml b/app/src/main/res/layout/activity_image_textless.xml
new file mode 100644
index 00000000..3c0cc685
--- /dev/null
+++ b/app/src/main/res/layout/activity_image_textless.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="utf-8"?>
+<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/image_container"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <ProgressBar
+ android:id="@+id/image_progress"
+ style="?android:attr/progressBarStyleLarge"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center" />
+
+ <com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView
+ android:id="@+id/image_photo"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:alpha="0"
+ android:scaleX="0.9"
+ android:scaleY="0.9" />
+
+ <android.support.design.widget.FloatingActionButton
+ android:id="@+id/image_fab"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="end|bottom"
+ android:layout_margin="@dimen/fab_margin"
+ android:visibility="invisible" />
+
+</android.support.design.widget.CoordinatorLayout> \ No newline at end of file
diff --git a/app/src/main/res/layout/activity_login.xml b/app/src/main/res/layout/activity_login.xml
index eef0e434..cd5eef08 100644
--- a/app/src/main/res/layout/activity_login.xml
+++ b/app/src/main/res/layout/activity_login.xml
@@ -6,7 +6,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
- tools:context=".LoginActivity">
+ tools:context=".activities.LoginActivity">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
index a2b2d7c0..91bcc4c8 100644
--- a/app/src/main/res/layout/activity_main.xml
+++ b/app/src/main/res/layout/activity_main.xml
@@ -6,7 +6,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
- tools:context=".MainActivity">
+ tools:context=".activities.MainActivity">
<android.support.design.widget.AppBarLayout
android:id="@+id/appbar"
diff --git a/app/src/main/res/layout/activity_web_overlay.xml b/app/src/main/res/layout/activity_web_overlay.xml
index 1bf9eb55..f518e518 100644
--- a/app/src/main/res/layout/activity_web_overlay.xml
+++ b/app/src/main/res/layout/activity_web_overlay.xml
@@ -6,7 +6,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
- tools:context=".WebOverlayActivity">
+ tools:context=".activities.WebOverlayActivity">
<android.support.v7.widget.Toolbar
android:id="@+id/overlay_toolbar"
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 7bfdf410..d7ab8ef0 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -68,30 +68,11 @@
<string name="purchases_restored_with_pro">Frost Pro has been restored. Enjoy the features!</string>
<string name="purchases_restored_without_pro">It seems like you don\'t have pro. If this is a persistent issue, contact me and attach your purchase receipt.</string>
- <string name="define_dbflow"></string>
- <!-- Author section -->
- <string name="library_dbflow_author">Raizlabs</string>
- <string name="library_dbflow_authorWebsite">https://www.raizlabs.com/</string>
- <!-- Library section -->
- <string name="library_dbflow_libraryName">DbFlow</string>
- <string name="library_dbflow_libraryDescription">
- <![CDATA[
- A robust, powerful, and very simple ORM android database library with <b>annotation processing</b>.
- <br/><br/>
- The library is built on speed, performance, and approachability. It not only eliminates most boiler-plate code for dealing with databases, but also provides a powerful and simple API to manage interactions.
- Let DBFlow make SQL code <i>flow</i> like a steady stream so you can focus on writing amazing apps.
- ]]>
- </string>
- <string name="library_dbflow_libraryWebsite">https://github.com/Raizlabs/DBFlow</string>
- <string name="library_dbflow_libraryVersion">4.0.4</string>
- <!-- OpenSource section -->
- <string name="library_dbflow_isOpenSource">true</string>
- <string name="library_dbflow_repositoryLink">https://github.com/Raizlabs/DBFlow</string>
- <!-- ClassPath for autoDetect section -->
- <string name="library_dbflow_classPath">com.raizlabs.android.dbflow</string>
- <!-- License section -->
- <string name="library_dbflow_licenseId">mit</string>
<string name="login_id_failed">Login failed; id not found</string>
<string name="iab_still_in_progress">IAB query is still in progress</string>
<string name="new_message">New Message</string>
+ <string name="no_text">No text</string>
+ <string name="image_download_success">Image downloaded</string>
+ <string name="image_download_fail">Image failed to download</string>
+ <string name="image_share_failed">Failed to share image</string>
</resources>
diff --git a/app/src/main/res/values/strings_libs.xml b/app/src/main/res/values/strings_libs.xml
new file mode 100644
index 00000000..9cbb77d7
--- /dev/null
+++ b/app/src/main/res/values/strings_libs.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <string name="define_dbflow" />
+ <!-- Author section -->
+ <string name="library_dbflow_author">Raizlabs</string>
+ <string name="library_dbflow_authorWebsite">https://www.raizlabs.com/</string>
+ <!-- Library section -->
+ <string name="library_dbflow_libraryName">DbFlow</string>
+ <string name="library_dbflow_libraryDescription">
+ <![CDATA[
+ A robust, powerful, and very simple ORM android database library with <b>annotation processing</b>.
+ <br/><br/>
+ The library is built on speed, performance, and approachability. It not only eliminates most boiler-plate code for dealing with databases, but also provides a powerful and simple API to manage interactions.
+ Let DBFlow make SQL code <i>flow</i> like a steady stream so you can focus on writing amazing apps.
+ ]]>
+ </string>
+ <string name="library_dbflow_libraryWebsite">https://github.com/Raizlabs/DBFlow</string>
+ <string name="library_dbflow_libraryVersion">4.0.4</string>
+ <!-- OpenSource section -->
+ <string name="library_dbflow_isOpenSource">true</string>
+ <string name="library_dbflow_repositoryLink">https://github.com/Raizlabs/DBFlow</string>
+ <!-- ClassPath for autoDetect section -->
+ <string name="library_dbflow_classPath">com.raizlabs.android.dbflow</string>
+ <!-- License section -->
+ <string name="library_dbflow_licenseId">mit</string>
+</resources> \ No newline at end of file
diff --git a/app/src/main/res/values/strings_pref_experimental.xml b/app/src/main/res/values/strings_pref_experimental.xml
index 2d49864b..0f545b3e 100644
--- a/app/src/main/res/values/strings_pref_experimental.xml
+++ b/app/src/main/res/values/strings_pref_experimental.xml
@@ -11,5 +11,4 @@
<string name="verbose_logging_desc">Enable verbose logging to help with crash reports. Logging will only be sent once an error is encountered, so repeat the issue to notify the dev. This will automatically be disabled if the app restarts.</string>
<string name="restart_frost">Restart Frost</string>
<string name="restart_frost_desc">Crashlytics will only submit logs when a crash occurs or if errors are found and the app is restarted. Clicking here will restart the app and flush whatever issues are currently found.</string>
-
</resources> \ No newline at end of file
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
index 217bfb28..a483b5f0 100644
--- a/app/src/main/res/values/styles.xml
+++ b/app/src/main/res/values/styles.xml
@@ -31,9 +31,16 @@
<style name="FrostTheme.Overlay">
<item name="android:windowIsTranslucent">true</item>
+ </style>
+
+ <style name="FrostTheme.Overlay.Slide">
<item name="android:windowAnimationStyle">@style/KauSlideInFadeOut</item>
</style>
+ <style name="FrostTheme.Overlay.Fade">
+ <item name="android:windowAnimationStyle">@style/KauFadeInFadeOut</item>
+ </style>
+
<style name="FrostTheme.Settings" parent="FrostTheme">
<item name="android:windowAnimationStyle">@style/KauSlideInFadeOut</item>
</style>
diff --git a/app/src/main/res/xml/changelog.xml b/app/src/main/res/xml/changelog.xml
index 59baeef5..cf56eaeb 100644
--- a/app/src/main/res/xml/changelog.xml
+++ b/app/src/main/res/xml/changelog.xml
@@ -9,12 +9,13 @@
-->
<version title="Beta Updates" />
- <item text="Reduce Menu loading logic" />
- <item text="Load js injectors after showing webview" />
- <item text="Add toggles for sound, vibration, and lights" />
- <item text="Avoid restricting facebook features (such as user tagging)" />
- <item text="Add option to disable loading in overlays" />
- <item text="Fixed experimental search result text" />
+ <item text="Update IAB helper" />
+ <item text="Create image viewing and downloading; long press any image!" />
+ <item text="Start filtering out unnecessary loads" />
+ <item text="" />
+ <item text="" />
+ <item text="" />
+ <item text="" />
<item text="" />
<item text="" />
@@ -25,6 +26,12 @@
<item text="Make notifications expandable" />
<item text="Add notification trigger in settings" />
<item text="Fix bug where only single latest notification is showing" />
+ <item text="Reduce Menu loading logic" />
+ <item text="Load js injectors after showing webview" />
+ <item text="Add toggles for sound, vibration, and lights" />
+ <item text="Avoid restricting facebook features (such as user tagging)" />
+ <item text="Add option to disable loading in overlays" />
+ <item text="Fixed experimental search result text" />
<version title="v1.2" />
<item text="Scale browser on keyboard pop up" />
diff --git a/app/src/main/res/xml/file_paths.xml b/app/src/main/res/xml/file_paths.xml
new file mode 100644
index 00000000..334ea0d7
--- /dev/null
+++ b/app/src/main/res/xml/file_paths.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<paths>
+ <external-path
+ name="Frost_images"
+ path="Android/data/com.pitchedapps.frost/files/Pictures" />
+ <external-path
+ name="Frost_public_images"
+ path="Pictures/Frost" />
+</paths> \ No newline at end of file