aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/activity_response.xml1
-rw-r--r--app/src/main/res/layout/activity_viewer.xml20
-rw-r--r--app/src/main/res/layout/fragment_fragment_image.xml42
-rw-r--r--app/src/main/res/layout/fragment_fragment_thread_list.xml1
-rw-r--r--app/src/main/res/menu/menu_viewer.xml3
-rw-r--r--app/src/main/res/values/colors.xml4
-rw-r--r--app/src/main/res/values/drawables.xml2
-rw-r--r--app/src/main/res/values/strings.xml3
-rw-r--r--app/src/main/res/values/styles.xml14
-rw-r--r--app/src/main/res/xml/preferences.xml4
10 files changed, 74 insertions, 20 deletions
diff --git a/app/src/main/res/layout/activity_response.xml b/app/src/main/res/layout/activity_response.xml
index bfd143e..15d35eb 100644
--- a/app/src/main/res/layout/activity_response.xml
+++ b/app/src/main/res/layout/activity_response.xml
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
- xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
diff --git a/app/src/main/res/layout/activity_viewer.xml b/app/src/main/res/layout/activity_viewer.xml
index b66e66b..7febe39 100644
--- a/app/src/main/res/layout/activity_viewer.xml
+++ b/app/src/main/res/layout/activity_viewer.xml
@@ -4,21 +4,19 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="org.bienvenidoainternet.baiparser.ViewerActivity">
-
- <com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView
- android:id="@+id/imageView"
- android:layout_width="match_parent"
- android:layout_height="match_parent"/>
- <pl.droidsonroids.gif.GifImageView
- android:id="@+id/gifView"
- android:layout_width="match_parent"
- android:layout_height="match_parent"/>
-
<ProgressBar
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/downloadProgressBar"
android:layout_alignParentTop="true"
- android:layout_centerHorizontal="true" />
+ android:layout_alignParentLeft="true"
+ android:layout_alignParentStart="true" />
+ <android.support.v4.view.ViewPager
+ android:id="@+id/imagePager"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_below="@+id/downloadProgressBar"
+ android:layout_alignParentLeft="true"
+ android:layout_alignParentStart="true" />
</RelativeLayout>
diff --git a/app/src/main/res/layout/fragment_fragment_image.xml b/app/src/main/res/layout/fragment_fragment_image.xml
new file mode 100644
index 0000000..5d44190
--- /dev/null
+++ b/app/src/main/res/layout/fragment_fragment_image.xml
@@ -0,0 +1,42 @@
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ tools:context="layout.FragmentImage"
+ android:orientation="vertical">
+
+ <RelativeLayout
+ android:orientation="horizontal"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:id="@+id/layoutOpenBrowser">
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ android:text="No se puede visualizar este archivo."
+ android:layout_centerVertical="true"
+ android:layout_centerHorizontal="true"
+ android:id="@+id/textView2"
+ android:textColor="#ff0000" />
+
+ <Button
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="Abrir en el navegador"
+ android:id="@+id/btnLaunchBrowser"
+ android:layout_below="@+id/textView2"
+ android:layout_centerHorizontal="true" />
+ </RelativeLayout>
+
+ <com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView
+ android:id="@+id/imageView"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"/>
+ <pl.droidsonroids.gif.GifImageView
+ android:id="@+id/gifView"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"/>
+
+</LinearLayout>
diff --git a/app/src/main/res/layout/fragment_fragment_thread_list.xml b/app/src/main/res/layout/fragment_fragment_thread_list.xml
index af88df4..477c236 100644
--- a/app/src/main/res/layout/fragment_fragment_thread_list.xml
+++ b/app/src/main/res/layout/fragment_fragment_thread_list.xml
@@ -1,5 +1,4 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentTop="true"
diff --git a/app/src/main/res/menu/menu_viewer.xml b/app/src/main/res/menu/menu_viewer.xml
index 31069eb..bb4352b 100644
--- a/app/src/main/res/menu/menu_viewer.xml
+++ b/app/src/main/res/menu/menu_viewer.xml
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<menu xmlns:tools="http://schemas.android.com/tools"
- xmlns:android="http://schemas.android.com/apk/res/android"
+<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item android:title="Guardar"
android:id="@+id/menu_save_img"
diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml
index 5806545..8274b32 100644
--- a/app/src/main/res/values/colors.xml
+++ b/app/src/main/res/values/colors.xml
@@ -14,8 +14,8 @@
<color name="nightMarginColor">#58636c</color> <!-- 3 58636c-->
<color name="nightTextColor">#979ea3</color> <!-- 6 -->
<color name="nightLinkColor">#c0c4c8</color> <!-- 8 -->
- <color name="nightNameColor">#2e5f96</color>
- <color name="nightSageColor">#5f962e</color>
+ <color name="nightNameColor">#5f962e</color>
+ <color name="nightSageColor">#2e5f96</color>
<color name="nightTripcodeColor">#962e5f</color>
<color name="headlineBackground">#DDDDDD</color> <!-- 1 -->
diff --git a/app/src/main/res/values/drawables.xml b/app/src/main/res/values/drawables.xml
index 52c6a6c..9036d27 100644
--- a/app/src/main/res/values/drawables.xml
+++ b/app/src/main/res/values/drawables.xml
@@ -1,4 +1,4 @@
-<resources xmlns:android="http://schemas.android.com/apk/res/android">
+<resources>
<item name="ic_menu_camera" type="drawable">@android:drawable/ic_menu_camera</item>
<item name="ic_menu_gallery" type="drawable">@android:drawable/ic_menu_gallery</item>
<item name="ic_menu_slideshow" type="drawable">@android:drawable/ic_menu_slideshow</item>
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 7fa3e34..f5be573 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -73,4 +73,7 @@
<string name="title_activity_settings">Opciones</string>
+ <!-- TODO: Remove or change this placeholder text -->
+ <string name="hello_blank_fragment">Hello blank fragment</string>
+
</resources>
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
index 5cadb6e..4d0766f 100644
--- a/app/src/main/res/values/styles.xml
+++ b/app/src/main/res/values/styles.xml
@@ -31,7 +31,12 @@
<item name="isDarkTheme">true</item>
</style>
- <style name="AppTheme.HeadLine.Activity" parent="AppTheme.NoActionBar">
+ <style name="AppTheme.HeadLineActionBar.NoActionBar" parent="AppTheme.HeadLineActionBar">
+ <item name="windowActionBar">false</item>
+ <item name="windowNoTitle">true</item>
+ </style>
+
+ <style name="AppTheme.HeadLineActionBar">
<item name="colorPrimary">@color/headlineTextColor</item>
<item name="colorPrimaryDark">@color/blackBackground</item>
<item name="colorAccent">@color/headlineLinkColor</item>
@@ -53,7 +58,12 @@
<item name="isDarkTheme">false</item>
</style>
- <style name="AppTheme.Black.Activity" parent="AppTheme.NoActionBar">
+ <style name="AppTheme.BlackActionBar.NoActionBar" parent="AppTheme.BlackActionBar">
+ <item name="windowActionBar">false</item>
+ <item name="windowNoTitle">true</item>
+ </style>
+
+ <style name="AppTheme.BlackActionBar">
<item name="colorPrimary">@color/blackBackground</item>
<item name="colorPrimaryDark">@color/blackMarginColor</item>
<item name="colorAccent">@color/blackMarginColor</item>
diff --git a/app/src/main/res/xml/preferences.xml b/app/src/main/res/xml/preferences.xml
index 7f6d5b9..459f65c 100644
--- a/app/src/main/res/xml/preferences.xml
+++ b/app/src/main/res/xml/preferences.xml
@@ -49,6 +49,10 @@
android:entries="@array/pref_lastreplies_desc"
android:entryValues="@array/pref_lastreplies_values"
android:defaultValue="30"/>
+ <SwitchPreference
+ android:title="Transparentar sages"
+ android:key="pref_transparent_sage"
+ android:defaultValue="true"/>
</PreferenceCategory>
<PreferenceCategory
android:title="Formulario de respuesta">