aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/values
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2019-02-22 05:34:24 +0000
committerAlex Ning <chineseperson5@gmail.com>2019-02-22 05:34:24 +0000
commit1293eac5c84340c4bdb4c9bef283de3e2710c7da (patch)
treefa2b8679c49066122436eb685971adf764057e98 /app/src/main/res/values
parent82d97cf73208f3f187b965fca4460f68af33f6b7 (diff)
downloadinfinity-for-reddit-1293eac5c84340c4bdb4c9bef283de3e2710c7da.tar
infinity-for-reddit-1293eac5c84340c4bdb4c9bef283de3e2710c7da.tar.gz
infinity-for-reddit-1293eac5c84340c4bdb4c9bef283de3e2710c7da.tar.bz2
infinity-for-reddit-1293eac5c84340c4bdb4c9bef283de3e2710c7da.tar.lz
infinity-for-reddit-1293eac5c84340c4bdb4c9bef283de3e2710c7da.tar.xz
infinity-for-reddit-1293eac5c84340c4bdb4c9bef283de3e2710c7da.tar.zst
infinity-for-reddit-1293eac5c84340c4bdb4c9bef283de3e2710c7da.zip
Add a search view in MainActivity and add a SearchActivity.
Diffstat (limited to 'app/src/main/res/values')
-rw-r--r--app/src/main/res/values/strings.xml10
-rw-r--r--app/src/main/res/values/styles.xml12
2 files changed, 21 insertions, 1 deletions
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 486fd853..a8058872 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -1,6 +1,7 @@
<resources>
<string name="app_name">Infinity</string>
<string name="login_activity_label">Login</string>
+ <string name="search_activity_label">Search</string>
<string name="navigation_drawer_open">Open navigation drawer</string>
<string name="navigation_drawer_close">Close navigation drawer</string>
@@ -8,6 +9,7 @@
<string name="action_settings">Settings</string>
<string name="action_download">Download</string>
<string name="action_refresh">Refresh</string>
+ <string name="action_search">Search</string>
<string name="tap_to_retry">Error loading image. Tap to retry.</string>
<string name="load_posts_error">Error loading posts.\nTap to retry.</string>
@@ -51,4 +53,12 @@
<string name="content_description_banner_imageview">Subreddit Banner Image</string>
<string name="error_loading_posts">Error loading post</string>
+
+ <string name="app_label">Infinity</string>
+ <string name="search_hint">Search anything</string>
+ <string name="title_activity_search">Search</string>
+ <string name="section_format">Hello World from section: %1$d</string>
+ <string name="tab_text_1">Tab 1</string>
+ <string name="tab_text_2">Tab 2</string>
+ <string name="tab_text_3">Tab 3</string>
</resources>
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
index 1ea7c276..1b770151 100644
--- a/app/src/main/res/values/styles.xml
+++ b/app/src/main/res/values/styles.xml
@@ -13,10 +13,13 @@
<style name="AppTheme.NoActionBar">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
+ </style>
+
+ <style name="AppTheme.NoActionBarWithTransparentStatusBar" parent="AppTheme.NoActionBar">
<item name="android:statusBarColor">@android:color/transparent</item>
</style>
- <style name="AppTheme.NoActionBarWithTranslucentStatusBar" parent="AppTheme.NoActionBar">
+ <style name="AppTheme.NoActionBarWithTranslucentWindow" parent="AppTheme.NoActionBarWithTransparentStatusBar">
<item name="android:windowTranslucentStatus">true</item>
</style>
@@ -37,4 +40,11 @@
<item name="android:windowIsTranslucent">true</item>
</style>
+ <style name="CustomTabLayout" parent="Widget.Design.TabLayout">
+ <item name="tabIndicatorColor">@android:color/white</item>
+ <item name="tabIndicatorHeight">3dp</item>
+ <item name="tabBackground">?attr/selectableItemBackground</item>
+ <item name="tabSelectedTextColor">@android:color/white</item>
+ </style>
+
</resources>