Add settings activity
Add menu
BIN
DoNExt/app/src/main/res/drawable-hdpi/ic_info_black_24dp.png
Normal file
After Width: | Height: | Size: 321 B |
After Width: | Height: | Size: 233 B |
BIN
DoNExt/app/src/main/res/drawable-hdpi/ic_sync_black_24dp.png
Normal file
After Width: | Height: | Size: 368 B |
BIN
DoNExt/app/src/main/res/drawable-mdpi/ic_info_black_24dp.png
Normal file
After Width: | Height: | Size: 222 B |
After Width: | Height: | Size: 182 B |
BIN
DoNExt/app/src/main/res/drawable-mdpi/ic_sync_black_24dp.png
Normal file
After Width: | Height: | Size: 250 B |
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportHeight="24.0"
|
||||
android:viewportWidth="24.0">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zm1,15h-2v-6h2v6zm0,-8h-2V7h2v2z" />
|
||||
</vector>
|
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportHeight="24.0"
|
||||
android:viewportWidth="24.0">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M11.5,22c1.1,0 2,-0.9 2,-2h-4c0,1.1 0.9,2 2,2zm6.5,-6v-5.5c0,-3.07 -2.13,-5.64 -5,-6.32V3.5c0,-0.83 -0.67,-1.5 -1.5,-1.5S10,2.67 10,3.5v0.68c-2.87,0.68 -5,3.25 -5,6.32V16l-2,2v1h17v-1l-2,-2z" />
|
||||
</vector>
|
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24.0dp"
|
||||
android:height="24.0dp"
|
||||
android:viewportHeight="24.0"
|
||||
android:viewportWidth="24.0">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01,-.25 1.97,-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0,-4.42,-3.58,-8,-8,-8zm0 14c-3.31 0,-6,-2.69,-6,-6 0,-1.01.25,-1.97.7,-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4,-4,-4,-4v3z" />
|
||||
</vector>
|
BIN
DoNExt/app/src/main/res/drawable-xhdpi/ic_info_black_24dp.png
Normal file
After Width: | Height: | Size: 412 B |
After Width: | Height: | Size: 278 B |
BIN
DoNExt/app/src/main/res/drawable-xhdpi/ic_sync_black_24dp.png
Normal file
After Width: | Height: | Size: 467 B |
BIN
DoNExt/app/src/main/res/drawable-xxhdpi/ic_info_black_24dp.png
Normal file
After Width: | Height: | Size: 579 B |
After Width: | Height: | Size: 383 B |
BIN
DoNExt/app/src/main/res/drawable-xxhdpi/ic_sync_black_24dp.png
Normal file
After Width: | Height: | Size: 669 B |
BIN
DoNExt/app/src/main/res/drawable-xxxhdpi/ic_info_black_24dp.png
Normal file
After Width: | Height: | Size: 766 B |
After Width: | Height: | Size: 497 B |
BIN
DoNExt/app/src/main/res/drawable-xxxhdpi/ic_sync_black_24dp.png
Normal file
After Width: | Height: | Size: 875 B |
@@ -38,12 +38,4 @@
|
||||
android:layout_height="match_parent"
|
||||
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
|
||||
|
||||
<android.support.design.widget.FloatingActionButton
|
||||
android:id="@+id/fab"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="end|bottom"
|
||||
android:layout_margin="@dimen/fab_margin"
|
||||
android:src="@android:drawable/ic_dialog_email" />
|
||||
|
||||
</android.support.design.widget.CoordinatorLayout>
|
||||
|
43
DoNExt/app/src/main/res/layout/activity_settings.xml
Normal file
@@ -0,0 +1,43 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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"
|
||||
android:paddingBottom="@dimen/activity_vertical_margin"
|
||||
android:paddingLeft="@dimen/activity_horizontal_margin"
|
||||
android:paddingRight="@dimen/activity_horizontal_margin"
|
||||
android:paddingTop="@dimen/activity_vertical_margin"
|
||||
android:orientation="vertical"
|
||||
tools:context="com.wismna.geoffroy.donext.SettingsActivity">
|
||||
|
||||
<CheckBox
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:saveEnabled="true"
|
||||
android:checked="true"
|
||||
android:clickable="true"
|
||||
android:text="@string/settings_confirm_donext" />
|
||||
<CheckBox
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:checked="true"
|
||||
android:clickable="true"
|
||||
android:saveEnabled="true"
|
||||
android:text="@string/settings_confirm_markdone" />
|
||||
<CheckBox
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:checked="true"
|
||||
android:clickable="true"
|
||||
android:saveEnabled="true"
|
||||
android:text="@string/settings_confirm_delete" />
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/settings_max_lists_label"/>
|
||||
<Spinner
|
||||
android:id="@+id/max_lists_spinner"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:entries="@array/settings_max_lists_number"/>
|
||||
</LinearLayout>
|
@@ -6,5 +6,16 @@
|
||||
android:id="@+id/action_settings"
|
||||
android:orderInCategory="100"
|
||||
android:title="@string/action_settings"
|
||||
android:onClick="openSettings"
|
||||
app:showAsAction="never" />
|
||||
<item
|
||||
android:id="@+id/action_newTab"
|
||||
android:orderInCategory="50"
|
||||
android:title="@string/action_newTab"
|
||||
app:showAsAction="never" />
|
||||
<item
|
||||
android:id="@+id/action_editTabs"
|
||||
android:orderInCategory="60"
|
||||
android:title="@string/action_editTabs"
|
||||
app:showAsAction="never" />
|
||||
</menu>
|
||||
|
@@ -1,5 +1,23 @@
|
||||
<resources>
|
||||
<string name="app_name">DoNExt</string>
|
||||
<string name="action_settings">Settings</string>
|
||||
<string name="action_newTab">New list</string>
|
||||
<string name="action_editTabs">Edit lists</string>
|
||||
<string name="section_format">Hello World from section: %1$d</string>
|
||||
<string name="title_activity_settings">Settings</string>
|
||||
|
||||
<!-- Strings related to Settings -->
|
||||
<string name="settings_confirm_donext">Confirm on DoNext?</string>
|
||||
<string name="settings_confirm_markdone">Confirm on mark Done?</string>
|
||||
<string name="settings_confirm_delete">Confirm on delete?</string>
|
||||
<string name="settings_max_lists_label">Maximum number of lists:</string>
|
||||
<string-array name="settings_max_lists_number">
|
||||
<item>1</item>
|
||||
<item>2</item>
|
||||
<item>3</item>
|
||||
<item>4</item>
|
||||
<item>5</item>
|
||||
<item>6</item>
|
||||
<item>7</item>
|
||||
</string-array>
|
||||
</resources>
|
||||
|