diff options
Diffstat (limited to 'android/WALT/app/src/main/res/values')
-rw-r--r-- | android/WALT/app/src/main/res/values/attrs.xml | 12 | ||||
-rw-r--r-- | android/WALT/app/src/main/res/values/color.xml | 9 | ||||
-rw-r--r-- | android/WALT/app/src/main/res/values/dimens.xml | 5 | ||||
-rw-r--r-- | android/WALT/app/src/main/res/values/strings.xml | 45 | ||||
-rw-r--r-- | android/WALT/app/src/main/res/values/styles.xml | 61 |
5 files changed, 132 insertions, 0 deletions
diff --git a/android/WALT/app/src/main/res/values/attrs.xml b/android/WALT/app/src/main/res/values/attrs.xml new file mode 100644 index 0000000..9aad7b9 --- /dev/null +++ b/android/WALT/app/src/main/res/values/attrs.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <declare-styleable name="NumberPickerPreference"> + <attr name="minValue" format="integer" /> + <attr name="maxValue" format="integer" /> + </declare-styleable> + <declare-styleable name="HistogramChart"> + <attr name="description" format="string" /> + <attr name="numDataSets" format="integer" /> + <attr name="binWidth" format="float" /> + </declare-styleable> +</resources> diff --git a/android/WALT/app/src/main/res/values/color.xml b/android/WALT/app/src/main/res/values/color.xml new file mode 100644 index 0000000..8519775 --- /dev/null +++ b/android/WALT/app/src/main/res/values/color.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <color name="ColorPrimary">#F5F5F5</color> + <color name="ColorPrimaryDark">#757575</color> + <color name="ColorAccent">#757575</color> + <color name="ColorBackground">#FFFFFF</color> + <color name="DarkGreen">#026402</color> + <color name="ColorDisabled">#aaaaaa</color> +</resources> diff --git a/android/WALT/app/src/main/res/values/dimens.xml b/android/WALT/app/src/main/res/values/dimens.xml new file mode 100644 index 0000000..47c8224 --- /dev/null +++ b/android/WALT/app/src/main/res/values/dimens.xml @@ -0,0 +1,5 @@ +<resources> + <!-- Default screen margins, per the Android Design guidelines. --> + <dimen name="activity_horizontal_margin">16dp</dimen> + <dimen name="activity_vertical_margin">16dp</dimen> +</resources> diff --git a/android/WALT/app/src/main/res/values/strings.xml b/android/WALT/app/src/main/res/values/strings.xml new file mode 100644 index 0000000..7204eaa --- /dev/null +++ b/android/WALT/app/src/main/res/values/strings.xml @@ -0,0 +1,45 @@ +<resources> + <string name="app_name">WALT</string> + + <string name="action_settings">Settings</string> + <string name="title_activity_crash_log">Crash Log</string> + <string name="protocol_version_mismatch">WALT reports protocol version %1$s, which is not + supported. Please program WALT to a firmware with protocol version %2$s. To do this + from the app, choose "Update WALT Firmware" from the "Diagnostics" menu.</string> + <string name="audio_mode">Audio Testing Mode</string> + <string name="screen_response_mode">Screen Testing Mode</string> + <string name="about_description">WALT is designed to measure the latency of physical sensors + and outputs on phones and computers. It can currently perform the following measurements: + tap latency, drag latency (scroll), screen draw latency, audio output/microphone + latencies, and MIDI input/output latencies. + </string> + <string name="disclaimer">DISCLAIMER: This is not an official Google product.</string> + <string name="more_info">A WALT device is required to run the latency tests. For more information, visit github.com/google/walt</string> + <string name="privacy_policy">Privacy policy:\ngithub.com/google/walt/blob/master/docs/PrivacyPolicy.md</string> + <string name="preference_screen_blinks" translatable="false">pref_screen_blinks</string> + <string name="preference_audio_in_reps" translatable="false">pref_audio_in_reps</string> + <string name="preference_audio_in_threshold" translatable="false">pref_audio_in_threshold</string> + <string name="preference_audio_out_reps" translatable="false">pref_audio_out_reps</string> + <string name="preference_midi_in_reps" translatable="false">pref_midi_in_reps</string> + <string name="preference_midi_out_reps" translatable="false">pref_midi_out_reps</string> + <string name="preference_auto_increase_brightness">auto_increase_brightness</string> + <string name="preference_show_tap_histogram">pref_show_tap_histogram</string> + <string name="preference_show_blink_histogram">pref_show_blink_histogram</string> + <string name="preference_systrace">pref_systrace</string> + <string name="preference_screen_fullscreen">pref_screen_fullscreen</string> + <string name="preference_log_url">pref_log_url</string> + <string name="preference_auto_upload_log">pref_auto_upload_log</string> + <string-array name="audio_mode_array"> + <item>Continuous Playback Latency</item> + <item>Continuous Recording Latency</item> + <item>Cold Playback Latency</item> + <item>Cold Recording Latency</item> + <item>Display Recorded Waveform</item> + </string-array> + <string-array name="screen_response_mode_array"> + <item>Blink Latency</item> + <item>Brightness Curve</item> + <item>Fast Path Graphics</item> + </string-array> + +</resources> diff --git a/android/WALT/app/src/main/res/values/styles.xml b/android/WALT/app/src/main/res/values/styles.xml new file mode 100644 index 0000000..02095e7 --- /dev/null +++ b/android/WALT/app/src/main/res/values/styles.xml @@ -0,0 +1,61 @@ +<resources> + + <!-- Base application theme. --> + <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"> + <item name="colorPrimary">@color/ColorPrimary</item> + <item name="colorPrimaryDark">@color/ColorPrimaryDark</item> + <item name="colorAccent">@color/ColorAccent</item> + <item name="preferenceTheme">@style/PreferenceThemeOverlay.v14.Material</item> + <item name="android:imageButtonStyle">@style/ImageButtonStyle</item> + <item name="imageButtonStyle">@style/ImageButtonStyle</item> + <!-- the homeAsUpIndicator doesn't work with either png or xml icons --> + <!--<item name="android:homeAsUpIndicator">@drawable/ic_chevron_left_black_24dp</item> --> + + </style> + + <style name="MenuDivider"> + <item name="android:layout_width">match_parent</item> + <item name="android:layout_height">1dp</item> + <item name="android:background">?android:attr/listDivider</item> + <item name="android:layout_marginLeft">72dp</item> + </style> + + <style name="MenuTextTop"> + <!--<item name="android:layout_marginTop">16dp</item>--> + <item name="android:layout_width">wrap_content</item> + <item name="android:layout_height">wrap_content</item> + <item name="android:textColor">@android:color/black</item> + <item name="android:textStyle">bold</item> + <item name="android:textSize">22sp</item> + </style> + + <style name="MenuTextBottom"> + <item name="android:layout_width">wrap_content</item> + <item name="android:layout_height">wrap_content</item> + <item name="android:textStyle">bold</item> + <item name="android:textSize">14sp</item> + <item name="android:paddingLeft">2dp</item> + </style> + + <style name="MenuIconStyle"> + <item name="android:layout_width">40dp</item> + <item name="android:layout_height">40dp</item> + <item name="android:layout_marginLeft">@dimen/activity_horizontal_margin</item> + <item name="android:layout_marginRight">@dimen/activity_horizontal_margin</item> + <!--<item name="android:layout_gravity">center_vertical</item>--> + </style> + + <style name="MenuItemStyle"> + <item name="android:orientation">horizontal</item> + <item name="android:gravity">center_vertical</item> + <item name="android:layout_height">72dp</item> + <item name="android:layout_width">match_parent</item> + <item name="android:clickable">true</item> + </style> + + <style name="ImageButtonStyle" parent="Widget.AppCompat.ImageButton"> + <item name="android:padding">14dp</item> + </style> + + +</resources> |