settings and about activity
50
res/drawable/timepicker_down_btn.xml
Normal file
@@ -0,0 +1,50 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!--
|
||||
~ Copyright (c) 2009-2011. Created by serso aka se.solovyev.
|
||||
~ For more information, please, contact se.solovyev@gmail.com
|
||||
~ or visit http://se.solovyev.org
|
||||
-->
|
||||
|
||||
<!-- Copyright (C) 2008 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<selector xmlns:a="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item a:state_pressed="false"
|
||||
a:state_enabled="true"
|
||||
a:state_focused="false"
|
||||
a:drawable="@drawable/timepicker_down_normal" />
|
||||
|
||||
<item a:state_pressed="true"
|
||||
a:state_enabled="true"
|
||||
a:drawable="@drawable/timepicker_down_pressed" />
|
||||
|
||||
<item a:state_pressed="false"
|
||||
a:state_enabled="true"
|
||||
a:state_focused="true"
|
||||
a:drawable="@drawable/timepicker_down_selected" />
|
||||
|
||||
<item a:state_pressed="false"
|
||||
a:state_enabled="false"
|
||||
a:state_focused="false"
|
||||
a:drawable="@drawable/timepicker_down_disabled" />
|
||||
|
||||
<item a:state_pressed="false"
|
||||
a:state_enabled="false"
|
||||
a:state_focused="true"
|
||||
a:drawable="@drawable/timepicker_down_disabled_focused" />
|
||||
|
||||
</selector>
|
BIN
res/drawable/timepicker_down_disabled.9.png
Normal file
After Width: | Height: | Size: 422 B |
BIN
res/drawable/timepicker_down_disabled_focused.9.png
Normal file
After Width: | Height: | Size: 580 B |
BIN
res/drawable/timepicker_down_normal.9.png
Normal file
After Width: | Height: | Size: 795 B |
BIN
res/drawable/timepicker_down_pressed.9.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
res/drawable/timepicker_down_selected.9.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
36
res/drawable/timepicker_input.xml
Normal file
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ Copyright (c) 2009-2011. Created by serso aka se.solovyev.
|
||||
~ For more information, please, contact se.solovyev@gmail.com
|
||||
~ or visit http://se.solovyev.org
|
||||
-->
|
||||
|
||||
<!-- Copyright (C) 2008 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item android:state_pressed="false" android:state_enabled="true"
|
||||
android:state_focused="false" android:drawable="@drawable/timepicker_input_normal" />
|
||||
<item android:state_pressed="true" android:state_enabled="true"
|
||||
android:drawable="@drawable/timepicker_input_pressed" />
|
||||
<item android:state_pressed="false" android:state_enabled="true"
|
||||
android:state_focused="true" android:drawable="@drawable/timepicker_input_selected" />
|
||||
<item android:state_pressed="false" android:state_enabled="false"
|
||||
android:state_focused="false" android:drawable="@drawable/timepicker_input_disabled" />
|
||||
<item android:state_pressed="false" android:state_enabled="false"
|
||||
android:state_focused="true" android:drawable="@drawable/timepicker_input_normal" />
|
||||
|
||||
</selector>
|
BIN
res/drawable/timepicker_input_disabled.9.png
Normal file
After Width: | Height: | Size: 280 B |
BIN
res/drawable/timepicker_input_normal.9.png
Normal file
After Width: | Height: | Size: 582 B |
BIN
res/drawable/timepicker_input_pressed.9.png
Normal file
After Width: | Height: | Size: 604 B |
BIN
res/drawable/timepicker_input_selected.9.png
Normal file
After Width: | Height: | Size: 517 B |
37
res/drawable/timepicker_up_btn.xml
Normal file
@@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!--
|
||||
~ Copyright (c) 2009-2011. Created by serso aka se.solovyev.
|
||||
~ For more information, please, contact se.solovyev@gmail.com
|
||||
~ or visit http://se.solovyev.org
|
||||
-->
|
||||
|
||||
<!-- Copyright (C) 2008 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item android:state_pressed="false" android:state_enabled="true"
|
||||
android:state_focused="false" android:drawable="@drawable/timepicker_up_normal"/>
|
||||
<item android:state_pressed="true" android:state_enabled="true"
|
||||
android:drawable="@drawable/timepicker_up_pressed"/>
|
||||
<item android:state_pressed="false" android:state_enabled="true"
|
||||
android:state_focused="true" android:drawable="@drawable/timepicker_up_selected"/>
|
||||
<item android:state_pressed="false" android:state_enabled="false"
|
||||
android:state_focused="false" android:drawable="@drawable/timepicker_up_disabled"/>
|
||||
<item android:state_pressed="false" android:state_enabled="false"
|
||||
android:state_focused="true" android:drawable="@drawable/timepicker_up_disabled_focused"/>
|
||||
|
||||
</selector>
|
BIN
res/drawable/timepicker_up_disabled.9.png
Normal file
After Width: | Height: | Size: 491 B |
BIN
res/drawable/timepicker_up_disabled_focused.9.png
Normal file
After Width: | Height: | Size: 728 B |
BIN
res/drawable/timepicker_up_normal.9.png
Normal file
After Width: | Height: | Size: 989 B |
BIN
res/drawable/timepicker_up_pressed.9.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
res/drawable/timepicker_up_selected.9.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
22
res/layout-land/about.xml
Normal file
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!--
|
||||
~ Copyright (c) 2009-2011. Created by serso aka se.solovyev.
|
||||
~ For more information, please, contact se.solovyev@gmail.com
|
||||
~ or visit http://se.solovyev.org
|
||||
-->
|
||||
|
||||
<LinearLayout xmlns:a="http://schemas.android.com/apk/res/android"
|
||||
a:orientation="vertical"
|
||||
a:layout_width="match_parent"
|
||||
a:layout_height="match_parent"
|
||||
a:background="#ff000000">
|
||||
|
||||
<TextView
|
||||
a:id="@+id/aboutTextView"
|
||||
a:textSize="20dp"
|
||||
a:text="@string/c_copyright"
|
||||
style="@style/display_style"
|
||||
a:gravity="center|top"/>
|
||||
|
||||
</LinearLayout>
|
22
res/layout-port/about.xml
Normal file
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!--
|
||||
~ Copyright (c) 2009-2011. Created by serso aka se.solovyev.
|
||||
~ For more information, please, contact se.solovyev@gmail.com
|
||||
~ or visit http://se.solovyev.org
|
||||
-->
|
||||
|
||||
<LinearLayout xmlns:a="http://schemas.android.com/apk/res/android"
|
||||
a:orientation="vertical"
|
||||
a:layout_width="match_parent"
|
||||
a:layout_height="match_parent"
|
||||
a:background="#ff000000">
|
||||
|
||||
<TextView
|
||||
a:id="@+id/aboutTextView"
|
||||
a:text="@string/c_copyright"
|
||||
a:textSize="20dp"
|
||||
style="@style/display_style"
|
||||
a:gravity="center|top"/>
|
||||
|
||||
</LinearLayout>
|
49
res/layout-port/number_picker.xml
Normal file
@@ -0,0 +1,49 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!--
|
||||
~ Copyright (c) 2009-2011. Created by serso aka se.solovyev.
|
||||
~ For more information, please, contact se.solovyev@gmail.com
|
||||
~ or visit http://se.solovyev.org
|
||||
-->
|
||||
|
||||
<!--
|
||||
**
|
||||
** Copyright 2008, The Android Open Source Project
|
||||
**
|
||||
** Licensed under the Apache License, Version 2.0 (the "License");
|
||||
** you may not use this file except in compliance with the License.
|
||||
** You may obtain a copy of the License at
|
||||
**
|
||||
** http://www.apache.org/licenses/LICENSE-2.0
|
||||
**
|
||||
** Unless required by applicable law or agreed to in writing, software
|
||||
** distributed under the License is distributed on an "AS IS" BASIS,
|
||||
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
** See the License for the specific language governing permissions and
|
||||
** limitations under the License.
|
||||
*/
|
||||
-->
|
||||
|
||||
<merge xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<org.solovyev.android.view.NumberPickerButton android:id="@+id/increment"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/timepicker_up_btn" />
|
||||
|
||||
<EditText android:id="@+id/timepicker_input"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:singleLine="true"
|
||||
style="?android:attr/textAppearanceLargeInverse"
|
||||
android:textColor="@android:color/primary_text_light"
|
||||
android:textSize="30sp"
|
||||
android:background="@drawable/timepicker_input" />
|
||||
|
||||
<org.solovyev.android.view.NumberPickerButton android:id="@+id/decrement"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/timepicker_down_btn" />
|
||||
|
||||
</merge>
|
@@ -1,9 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<menu xmlns:a="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item a:id="@+id/menu_item_settings"
|
||||
a:title="@string/c_settings"/>
|
||||
|
||||
<item a:id="@+id/menu_item_help"
|
||||
a:title="@string/c_help"/>
|
||||
<item a:id="@+id/menu_item_about"
|
||||
a:title="@string/c_about"/>
|
||||
</menu>
|
@@ -6,10 +6,20 @@
|
||||
<string name="c_result_copied">Result copied to clipboard!</string>
|
||||
<string name="c_settings">Settings</string>
|
||||
<string name="c_help">Help</string>
|
||||
<string name="c_about">About</string>
|
||||
<!--PREFERENCE ACTIVITY-->
|
||||
<string name="c_prefs_main_category">Main settings</string>
|
||||
<string name="c_prefs_drag_button_category">Drag buttons settings</string>
|
||||
|
||||
|
||||
<string name="c_prefs_drag_button_calibration">Drag button calibration</string>
|
||||
<string name="c_prefs_drag_button_calibration_summary">Allows to calibrate drag button behaviour</string>
|
||||
<string name="c_down">Down</string>
|
||||
<string name="c_up">Up</string>
|
||||
<string name="c_restart">Restart</string>
|
||||
<!--ABOUT ACTIVITY-->
|
||||
<string name="c_copyright">Copyright (c) 2009-2011.\nCreated by serso aka se.solovyev.\n
|
||||
For more information please\ncontact me via email\n<a href="mailto:se.solovyev@gmail.com">se.solovyev@gmail.com</a>
|
||||
\nor visit\n<a href="http://se.solovyev.org">http://se.solovyev.org</a>
|
||||
</string>
|
||||
</resources>
|
||||
|
@@ -1,20 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<PreferenceScreen xmlns:a="http://schemas.android.com/apk/res/android">
|
||||
<PreferenceCategory a:title="@string/c_prefs_main_category">
|
||||
|
||||
|
||||
<Preference
|
||||
a:title="@string/c_prefs_drag_button_calibration"
|
||||
a:summary="@string/c_prefs_drag_button_calibration_summary"
|
||||
a:key="dragButtonCalibration"/>
|
||||
|
||||
<CheckBoxPreference
|
||||
a:title="Checkbox Preference"
|
||||
a:defaultValue="false"
|
||||
a:summary="This preference can be true or false"
|
||||
a:key="checkboxPref"/>
|
||||
<PreferenceCategory a:title="@string/c_prefs_drag_button_category">
|
||||
|
||||
<!-- <org.solovyev.android.view.SeekBarPreference a:key="duration"
|
||||
a:title="Duration of something"
|
||||
a:summary="How long something will last"
|
||||
a:dialogMessage="Something duration"
|
||||
a:defaultValue="5"
|
||||
a:text=" minutes"
|
||||
a:max="60"/>-->
|
||||
</PreferenceCategory>
|
||||
|
||||
</PreferenceScreen>
|