diff options
author | Camil Staps | 2015-04-06 21:41:41 +0200 |
---|---|---|
committer | Camil Staps | 2015-04-06 21:41:41 +0200 |
commit | e642fd72bcf507bb2258c8224e207b55061db08a (patch) | |
tree | 0048413be72891d7d135b4810651ee9d6900e419 /app/src/main/res |
initial commit
Diffstat (limited to 'app/src/main/res')
23 files changed, 285 insertions, 0 deletions
diff --git a/app/src/main/res/drawable-hdpi/drawer_shadow.9.png b/app/src/main/res/drawable-hdpi/drawer_shadow.9.png Binary files differnew file mode 100644 index 0000000..236bff5 --- /dev/null +++ b/app/src/main/res/drawable-hdpi/drawer_shadow.9.png diff --git a/app/src/main/res/drawable-hdpi/ic_drawer.png b/app/src/main/res/drawable-hdpi/ic_drawer.png Binary files differnew file mode 100644 index 0000000..c59f601 --- /dev/null +++ b/app/src/main/res/drawable-hdpi/ic_drawer.png diff --git a/app/src/main/res/drawable-mdpi/drawer_shadow.9.png b/app/src/main/res/drawable-mdpi/drawer_shadow.9.png Binary files differnew file mode 100644 index 0000000..ffe3a28 --- /dev/null +++ b/app/src/main/res/drawable-mdpi/drawer_shadow.9.png diff --git a/app/src/main/res/drawable-mdpi/ic_drawer.png b/app/src/main/res/drawable-mdpi/ic_drawer.png Binary files differnew file mode 100644 index 0000000..1ed2c56 --- /dev/null +++ b/app/src/main/res/drawable-mdpi/ic_drawer.png diff --git a/app/src/main/res/drawable-xhdpi/drawer_shadow.9.png b/app/src/main/res/drawable-xhdpi/drawer_shadow.9.png Binary files differnew file mode 100644 index 0000000..fabe9d9 --- /dev/null +++ b/app/src/main/res/drawable-xhdpi/drawer_shadow.9.png diff --git a/app/src/main/res/drawable-xhdpi/ic_drawer.png b/app/src/main/res/drawable-xhdpi/ic_drawer.png Binary files differnew file mode 100644 index 0000000..a5fa74d --- /dev/null +++ b/app/src/main/res/drawable-xhdpi/ic_drawer.png diff --git a/app/src/main/res/drawable-xxhdpi/drawer_shadow.9.png b/app/src/main/res/drawable-xxhdpi/drawer_shadow.9.png Binary files differnew file mode 100644 index 0000000..b91e9d7 --- /dev/null +++ b/app/src/main/res/drawable-xxhdpi/drawer_shadow.9.png diff --git a/app/src/main/res/drawable-xxhdpi/ic_drawer.png b/app/src/main/res/drawable-xxhdpi/ic_drawer.png Binary files differnew file mode 100644 index 0000000..9c4685d --- /dev/null +++ b/app/src/main/res/drawable-xxhdpi/ic_drawer.png diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml new file mode 100644 index 0000000..17ea429 --- /dev/null +++ b/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,40 @@ +<!-- A DrawerLayout is intended to be used as the top-level content view using match_parent for both width and height to consume the full space available. --> +<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" android:id="@+id/drawer_layout" + android:layout_width="match_parent" android:layout_height="match_parent" + tools:context=".MainActivity"> + + <!-- As the main content view, the view below consumes the entire + space available using match_parent in both dimensions. --> + <FrameLayout android:id="@+id/container" android:layout_width="match_parent" + android:layout_height="match_parent" > + + <ScrollView + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:fillViewport="true"> + + <TextView + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:text="Daily Reading" + android:id="@+id/textDailyReading" + android:layout_gravity="left|top" + android:layout_weight="1.0"/> + + </ScrollView> + </FrameLayout> + + <!-- android:layout_gravity="start" tells DrawerLayout to treat + this as a sliding drawer on the left side for left-to-right + languages and on the right side for right-to-left languages. + If you're not building against API 17 or higher, use + android:layout_gravity="left" instead. --> + <!-- The drawer is given a fixed width in dp and extends the full height of + the container. --> + <fragment android:id="@+id/navigation_drawer" + android:layout_width="@dimen/navigation_drawer_width" android:layout_height="match_parent" + android:layout_gravity="start" android:name="com.camilstaps.taize.NavigationDrawerFragment" + tools:layout="@layout/fragment_navigation_drawer" /> + +</android.support.v4.widget.DrawerLayout> diff --git a/app/src/main/res/layout/fragment_main.xml b/app/src/main/res/layout/fragment_main.xml new file mode 100644 index 0000000..ef0bd84 --- /dev/null +++ b/app/src/main/res/layout/fragment_main.xml @@ -0,0 +1,12 @@ +<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:paddingLeft="@dimen/activity_horizontal_margin" + android:paddingRight="@dimen/activity_horizontal_margin" + android:paddingTop="@dimen/activity_vertical_margin" + android:paddingBottom="@dimen/activity_vertical_margin" + tools:context=".MainActivity$PlaceholderFragment"> + + <TextView android:id="@+id/section_label" android:layout_width="wrap_content" + android:layout_height="wrap_content" /> + +</RelativeLayout> diff --git a/app/src/main/res/layout/fragment_navigation_drawer.xml b/app/src/main/res/layout/fragment_navigation_drawer.xml new file mode 100644 index 0000000..c05742d --- /dev/null +++ b/app/src/main/res/layout/fragment_navigation_drawer.xml @@ -0,0 +1,5 @@ +<ListView 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:choiceMode="singleChoice" + android:divider="@android:color/transparent" android:dividerHeight="0dp" + android:background="#cccc" tools:context=".NavigationDrawerFragment" /> diff --git a/app/src/main/res/menu/global.xml b/app/src/main/res/menu/global.xml new file mode 100644 index 0000000..326a6a7 --- /dev/null +++ b/app/src/main/res/menu/global.xml @@ -0,0 +1,5 @@ +<menu xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto"> + <item android:id="@+id/action_settings" android:title="@string/action_settings" + android:orderInCategory="100" app:showAsAction="never" /> +</menu> diff --git a/app/src/main/res/menu/main.xml b/app/src/main/res/menu/main.xml new file mode 100644 index 0000000..1ee42b7 --- /dev/null +++ b/app/src/main/res/menu/main.xml @@ -0,0 +1,8 @@ +<menu xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" tools:context=".MainActivity"> + <item android:id="@+id/action_update" android:title="@string/action_example" + app:showAsAction="withText|ifRoom" /> + <item android:id="@+id/action_settings" android:title="@string/action_settings" + android:orderInCategory="100" app:showAsAction="never" /> +</menu> diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher.png b/app/src/main/res/mipmap-hdpi/ic_launcher.png Binary files differnew file mode 100644 index 0000000..cde69bc --- /dev/null +++ b/app/src/main/res/mipmap-hdpi/ic_launcher.png diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher.png b/app/src/main/res/mipmap-mdpi/ic_launcher.png Binary files differnew file mode 100644 index 0000000..c133a0c --- /dev/null +++ b/app/src/main/res/mipmap-mdpi/ic_launcher.png diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/app/src/main/res/mipmap-xhdpi/ic_launcher.png Binary files differnew file mode 100644 index 0000000..bfa42f0 --- /dev/null +++ b/app/src/main/res/mipmap-xhdpi/ic_launcher.png diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png Binary files differnew file mode 100644 index 0000000..324e72c --- /dev/null +++ b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png diff --git a/app/src/main/res/values-w820dp/dimens.xml b/app/src/main/res/values-w820dp/dimens.xml new file mode 100644 index 0000000..63fc816 --- /dev/null +++ b/app/src/main/res/values-w820dp/dimens.xml @@ -0,0 +1,6 @@ +<resources> + <!-- Example customization of dimensions originally defined in res/values/dimens.xml + (such as screen margins) for screens with more than 820dp of available width. This + would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively). --> + <dimen name="activity_horizontal_margin">64dp</dimen> +</resources> diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml new file mode 100644 index 0000000..074e7a0 --- /dev/null +++ b/app/src/main/res/values/dimens.xml @@ -0,0 +1,9 @@ +<resources> + <!-- Default screen margins, per the Android Design guidelines. --> + <dimen name="activity_horizontal_margin">16dp</dimen> + <dimen name="activity_vertical_margin">16dp</dimen> + + <!-- Per the design guidelines, navigation drawers should be between 240dp and 320dp: + https://developer.android.com/design/patterns/navigation-drawer.html --> + <dimen name="navigation_drawer_width">240dp</dimen> +</resources> diff --git a/app/src/main/res/values/preference_values.xml b/app/src/main/res/values/preference_values.xml new file mode 100644 index 0000000..754ec9e --- /dev/null +++ b/app/src/main/res/values/preference_values.xml @@ -0,0 +1,152 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <string name="title_activity_settings">Settings</string> + + <!-- Strings related to Settings --> + <string name="pref_title_language_dailyreading">Language of the readings</string> + <string name="pref_language_dailyreading_default">en</string> + <string name="pref_language_dailyreading_default_entry">English</string> + <string-array name="pref_languages_dailyreading_entries"> + <item>English</item> + <item>čeština</item> + <item>dansk</item> + <item>Deutsch</item> + <item>Español</item> + <item>eesti</item> + <item>suomi</item> + <item>français</item> + <item>hrvatski</item> + <item>magyar</item> + <item>Indonesia</item> + <item>italiano</item> + <item>日本語</item> + <item>한국어</item> + <item>lietuvių</item> + <item>Nederlands</item> + <item>norsk</item> + <item>polski</item> + <item>Português</item> + <item>русский</item> + <item>slovenčina</item> + <item>slovenščina</item> + <item>svenska</item> + <item>中文</item> + </string-array> + <string-array name="pref_languages_dailyreading_values"> + <item>en</item> + <item>cs</item> + <item>da</item> + <item>de</item> + <item>es</item> + <item>et</item> + <item>fi</item> + <item>fr</item> + <item>hr</item> + <item>hu</item> + <item>id</item> + <item>it</item> + <item>ja</item> + <item>ko</item> + <item>lt</item> + <item>nl</item> + <item>no</item> + <item>pl</item> + <item>pt</item> + <item>ru</item> + <item>sk</item> + <item>sl</item> + <item>sv</item> + <item>zh</item> + </string-array> + + <string name="pref_title_version_bible">Bible</string> + <string name="pref_version_bible_default">kjv</string> + <string name="pref_version_bible_default_entry">King James Version</string> + <string-array name="pref_bibles_entries"> + <item>Afrikaans: Ou Vertaling</item> + <item>Albanian: Albanian</item> + <item>Amharic: Haile Selassie Amharic Bible</item> + <item>Arabic: Smith and Van Dyke</item> + <item>Chinese: NCV Traditional</item> + <item>Chinese: Union Simplified</item> + <item>Chinese: NCV Simplified</item> + <item>Chinese: Union Traditional</item> + <item>Croatian: Croatian</item> + <item>Danish: Danish</item> + <item>Dutch: Dutch Staten Vertaling</item> + <item>English: King James Version</item> + <item>English: KJV Easy Read</item> + <item>English: American Standard Version</item> + <item>English: Amplified Version</item> + <item>English: Basic English Bible</item> + <item>English: Darby</item> + <item>English: New American Standard</item> + <item>English: Young\'s Literal Translation</item> + <item>English: World English Bible</item> + <item>English: Webster\'s Bible</item> + <item>Esperanto: Esperanto</item> + <item>Estonian: Estonian</item> + <item>Finnish: Finnish Bible</item> + <item>French: Martin</item> + <item>German: Luther</item> + <item>Greek: Greek Modern</item> + <item>Greek: Textus Receptus</item> + <item>Hebrew: Aleppo Codex</item> + <item>Hungarian: Hungarian Karoli</item> + <item>Italian: Giovanni Diodati Bible</item> + <item>Korean: Korean</item> + <item>Norwegian: Bibelselskap</item> + <item>Portuguese: Almeida Atualizada</item> + <item>Russian: Synodal Translation</item> + <item>Spanish: Reina Valera</item> + <item>Swahili: Swahili</item> + <item>Swedish: Swedish</item> + <item>Turkish: Turkish</item> + <item>Vietnamese: Vietnamese</item> + <item>Xhosa: Xhosa</item> + </string-array> + <string-array name="pref_bibles_values"> + <item>aov</item> + <item>albanian</item> + <item>hsab</item> + <item>arabicsv</item> + <item>cnt</item> + <item>cus</item> + <item>cns</item> + <item>cut</item> + <item>croatia</item> + <item>danish</item> + <item>statenvertaling</item> + <item>kjv</item> + <item>akjv</item> + <item>asv</item> + <item>amp</item> + <item>basicenglish</item> + <item>darby</item> + <item>nasb</item> + <item>ylt</item> + <item>web</item> + <item>wb</item> + <item>esperanto</item> + <item>estonian</item> + <item>finnish1776</item> + <item>martin</item> + <item>luther1912</item> + <item>moderngreek</item> + <item>text</item> + <item>aleppo</item> + <item>karoli</item> + <item>giovanni</item> + <item>korean</item> + <item>bibelselskap</item> + <item>almeida</item> + <item>synodal</item> + <item>valera</item> + <item>swahili</item> + <item>swedish</item> + <item>turkish</item> + <item>vietnamese</item> + <item>xhosa</item> + </string-array> + +</resources> diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml new file mode 100644 index 0000000..32383f1 --- /dev/null +++ b/app/src/main/res/values/strings.xml @@ -0,0 +1,13 @@ +<resources> + <string name="app_name">Taizé</string> + + <string name="title_section1">Daily Reading</string> + <string name="title_section2">Daily Meditation</string> + + <string name="navigation_drawer_open">Open navigation drawer</string> + <string name="navigation_drawer_close">Close navigation drawer</string> + + <string name="action_example">Update</string> + + <string name="action_settings">Settings</string> +</resources> diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml new file mode 100644 index 0000000..766ab99 --- /dev/null +++ b/app/src/main/res/values/styles.xml @@ -0,0 +1,8 @@ +<resources> + + <!-- Base application theme. --> + <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> + <!-- Customize your theme here. --> + </style> + +</resources> diff --git a/app/src/main/res/xml/preferences.xml b/app/src/main/res/xml/preferences.xml new file mode 100644 index 0000000..1525761 --- /dev/null +++ b/app/src/main/res/xml/preferences.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> + <PreferenceCategory + android:title="@string/title_activity_settings" + android:key="preferences_key"> + + <ListPreference + android:key="pref_language_reading" + android:title="@string/pref_title_language_dailyreading" + android:entries="@array/pref_languages_dailyreading_entries" + android:entryValues="@array/pref_languages_dailyreading_values" + android:persistent="true" + android:defaultValue="@string/pref_language_dailyreading_default" + android:summary="@string/pref_language_dailyreading_default_entry" /> + + <ListPreference + android:key="pref_version_bible" + android:title="@string/pref_title_version_bible" + android:entries="@array/pref_bibles_entries" + android:entryValues="@array/pref_bibles_values" + android:persistent="true" + android:defaultValue="@string/pref_version_bible_default" + android:summary="@string/pref_version_bible_default_entry" /> + + </PreferenceCategory> + +</PreferenceScreen>
\ No newline at end of file |