diff options
author | Rakesh Iyer <rni@google.com> | 2016-10-19 23:39:38 -0700 |
---|---|---|
committer | Rakesh Iyer <rni@google.com> | 2016-10-20 00:26:27 -0700 |
commit | 64b173f33aa2d98ea00b9113b52e6f8cb35589ad (patch) | |
tree | a52874959c59adb0f84f2cd2d92f6e75dd8ed825 /res | |
parent | 6d22528aceaa1e41740f982f1ca36eb254acbda9 (diff) | |
download | Media-64b173f33aa2d98ea00b9113b52e6f8cb35589ad.tar.gz |
Move car media app.
Original sha1: f802a6f645c66e914ecfe2c1fd06e4dd1aadc6ef
Credits:
ajchen@
rni@
victorchan@
yaochen@
Bug: 32118797
Test: Manual.
Change-Id: Ibfe594d5ea4e37fbbfc150b2152cc97e818bdc52
Diffstat (limited to 'res')
52 files changed, 1214 insertions, 0 deletions
diff --git a/res/anim/image_in.xml b/res/anim/image_in.xml new file mode 100644 index 0000000..49daeb1 --- /dev/null +++ b/res/anim/image_in.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright 2016, 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. +--> +<set xmlns:android="http://schemas.android.com/apk/res/android"> + <alpha + android:fromAlpha="0.0" + android:toAlpha="1.0" + android:duration="500" + android:startOffset="@integer/new_album_art_fade_in_offset" /> + <scale + android:fromXScale="1.04" + android:toXScale="1.0" + android:fromYScale="1.04" + android:toYScale="1.0" + android:pivotX="50%" + android:pivotY="50%" + android:duration="500" + android:startOffset="@integer/new_album_art_fade_in_offset"/> +</set> diff --git a/res/anim/image_out.xml b/res/anim/image_out.xml new file mode 100644 index 0000000..2d633c9 --- /dev/null +++ b/res/anim/image_out.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright 2016, 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. +--> +<set xmlns:android="http://schemas.android.com/apk/res/android"> + <alpha + android:fromAlpha="1.0" + android:toAlpha="0.0" + android:interpolator="@android:interpolator/fast_out_linear_in" + android:duration="500" /> +</set> diff --git a/res/anim/progress_indeterminate_material.xml b/res/anim/progress_indeterminate_material.xml new file mode 100644 index 0000000..a296ffd --- /dev/null +++ b/res/anim/progress_indeterminate_material.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright 2016, 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. +--> +<set xmlns:android="http://schemas.android.com/apk/res/android" > + <objectAnimator + android:duration="1333" + android:interpolator="@interpolator/trim_start_interpolator" + android:propertyName="trimPathStart" + android:repeatCount="-1" + android:valueFrom="0" + android:valueTo="0.75" + android:valueType="floatType" /> + <objectAnimator + android:duration="1333" + android:interpolator="@interpolator/trim_end_interpolator" + android:propertyName="trimPathEnd" + android:repeatCount="-1" + android:valueFrom="0" + android:valueTo="0.75" + android:valueType="floatType" /> + <objectAnimator + android:duration="1333" + android:interpolator="@android:anim/linear_interpolator" + android:propertyName="trimPathOffset" + android:repeatCount="-1" + android:valueFrom="0" + android:valueTo="0.25" + android:valueType="floatType" /> +</set> diff --git a/res/anim/progress_indeterminate_rotation_material.xml b/res/anim/progress_indeterminate_rotation_material.xml new file mode 100644 index 0000000..11484b2 --- /dev/null +++ b/res/anim/progress_indeterminate_rotation_material.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright 2016, 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. +--> +<objectAnimator xmlns:android="http://schemas.android.com/apk/res/android" + android:duration="6665" + android:interpolator="@android:anim/linear_interpolator" + android:propertyName="rotation" + android:repeatCount="-1" + android:valueFrom="0" + android:valueTo="720" + android:valueType="floatType" /> diff --git a/res/drawable-hdpi/ic_list_view_disable.png b/res/drawable-hdpi/ic_list_view_disable.png Binary files differnew file mode 100644 index 0000000..651ee62 --- /dev/null +++ b/res/drawable-hdpi/ic_list_view_disable.png diff --git a/res/drawable-hdpi/ic_music_active.png b/res/drawable-hdpi/ic_music_active.png Binary files differnew file mode 100644 index 0000000..ca701de --- /dev/null +++ b/res/drawable-hdpi/ic_music_active.png diff --git a/res/drawable-hdpi/progressbar.9.png b/res/drawable-hdpi/progressbar.9.png Binary files differnew file mode 100644 index 0000000..784de64 --- /dev/null +++ b/res/drawable-hdpi/progressbar.9.png diff --git a/res/drawable-mdpi/ic_list_view_disable.png b/res/drawable-mdpi/ic_list_view_disable.png Binary files differnew file mode 100644 index 0000000..8de7968 --- /dev/null +++ b/res/drawable-mdpi/ic_list_view_disable.png diff --git a/res/drawable-mdpi/ic_music_active.png b/res/drawable-mdpi/ic_music_active.png Binary files differnew file mode 100644 index 0000000..1f583b4 --- /dev/null +++ b/res/drawable-mdpi/ic_music_active.png diff --git a/res/drawable-mdpi/progressbar.9.png b/res/drawable-mdpi/progressbar.9.png Binary files differnew file mode 100644 index 0000000..268a32c --- /dev/null +++ b/res/drawable-mdpi/progressbar.9.png diff --git a/res/drawable-xhdpi/ic_list_view_disable.png b/res/drawable-xhdpi/ic_list_view_disable.png Binary files differnew file mode 100644 index 0000000..82adcb2 --- /dev/null +++ b/res/drawable-xhdpi/ic_list_view_disable.png diff --git a/res/drawable-xhdpi/ic_music_active.png b/res/drawable-xhdpi/ic_music_active.png Binary files differnew file mode 100644 index 0000000..e31e4d0 --- /dev/null +++ b/res/drawable-xhdpi/ic_music_active.png diff --git a/res/drawable-xhdpi/progressbar.9.png b/res/drawable-xhdpi/progressbar.9.png Binary files differnew file mode 100644 index 0000000..b0b3442 --- /dev/null +++ b/res/drawable-xhdpi/progressbar.9.png diff --git a/res/drawable-xxhdpi/ic_list_view_disable.png b/res/drawable-xxhdpi/ic_list_view_disable.png Binary files differnew file mode 100644 index 0000000..fc64935 --- /dev/null +++ b/res/drawable-xxhdpi/ic_list_view_disable.png diff --git a/res/drawable-xxhdpi/ic_music_active.png b/res/drawable-xxhdpi/ic_music_active.png Binary files differnew file mode 100644 index 0000000..9026a8e --- /dev/null +++ b/res/drawable-xxhdpi/ic_music_active.png diff --git a/res/drawable-xxhdpi/progressbar.9.png b/res/drawable-xxhdpi/progressbar.9.png Binary files differnew file mode 100644 index 0000000..f78c915 --- /dev/null +++ b/res/drawable-xxhdpi/progressbar.9.png diff --git a/res/drawable/ic_music.xml b/res/drawable/ic_music.xml new file mode 100644 index 0000000..a1b6c80 --- /dev/null +++ b/res/drawable/ic_music.xml @@ -0,0 +1,15 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="48dp" + android:height="48dp" + android:viewportWidth="48" + android:viewportHeight="48"> + + <path + android:fillAlpha=".1" + android:strokeAlpha=".1" + android:pathData="M0 0h48v48H0z" /> + <path + android:fillColor="#FFFFFFFF" + android:pathData="M24 2C14.06 2 6 10.06 6 20v14c0 3.31 2.69 6 6 6h6V24h-8v-4c0-7.73 6.27-14 +14-14s14 6.27 14 14v4h-8v16h6c3.31 0 6-2.69 6-6V20c0-9.94-8.06-18-18-18z" /> +</vector> diff --git a/res/drawable/ic_overflow_activated.xml b/res/drawable/ic_overflow_activated.xml new file mode 100644 index 0000000..1649b7c --- /dev/null +++ b/res/drawable/ic_overflow_activated.xml @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="56dp" + android:height="56dp" + android:viewportWidth="24" + android:viewportHeight="24"> + + <group + android:translateX="-0.750000" + android:translateY="-0.750000"> + <path + android:strokeWidth="1" + android:pathData="M 0.75 24.75 L 24.75 24.75 L 24.75 0.75 L 0.75 0.75 Z" /> + <path + android:fillColor="#000000" + android:strokeWidth="1" + android:pathData="M12.75,0.75 C6.123,0.75 0.75,6.123 0.75,12.75 C0.75,19.377 6.123,24.75 +12.75,24.75 C19.377,24.75 24.75,19.377 24.75,12.75 C24.75,6.123 19.377,0.75 +12.75,0.75 M12.75,2.036 C18.658,2.036 23.464,6.842 23.464,12.75 C23.464,18.658 +18.658,23.464 12.75,23.464 C6.842,23.464 2.036,18.658 2.036,12.75 C2.036,6.842 +6.842,2.036 12.75,2.036" /> + <path + android:fillColor="#000000" + android:strokeWidth="1" + android:pathData="M12.75,10.1666667 C13.4604167,10.1666667 14.0416667,9.58541667 14.0416667,8.875 +C14.0416667,8.16458333 13.4604167,7.58333333 12.75,7.58333333 +C12.0395833,7.58333333 11.4583333,8.16458333 11.4583333,8.875 +C11.4583333,9.58541667 12.0395833,10.1666667 12.75,10.1666667 L12.75,10.1666667 +Z M12.75,11.4583333 C12.0395833,11.4583333 11.4583333,12.0395833 +11.4583333,12.75 C11.4583333,13.4604167 12.0395833,14.0416667 12.75,14.0416667 +C13.4604167,14.0416667 14.0416667,13.4604167 14.0416667,12.75 +C14.0416667,12.0395833 13.4604167,11.4583333 12.75,11.4583333 L12.75,11.4583333 +Z M12.75,15.3333333 C12.0395833,15.3333333 11.4583333,15.9145833 +11.4583333,16.625 C11.4583333,17.3354167 12.0395833,17.9166667 12.75,17.9166667 +C13.4604167,17.9166667 14.0416667,17.3354167 14.0416667,16.625 +C14.0416667,15.9145833 13.4604167,15.3333333 12.75,15.3333333 L12.75,15.3333333 +Z" /> + </group> +</vector> diff --git a/res/drawable/ic_overflow_normal.xml b/res/drawable/ic_overflow_normal.xml new file mode 100644 index 0000000..de7b761 --- /dev/null +++ b/res/drawable/ic_overflow_normal.xml @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="56dp" + android:height="56dp" + android:viewportWidth="24" + android:viewportHeight="24"> + + <group + android:translateX="-0.750000" + android:translateY="-0.750000"> + <path + android:strokeWidth="1" + android:pathData="M 0.75 24.75 L 24.75 24.75 L 24.75 0.75 L 0.75 0.75 Z" /> + <path + android:fillColor="#000000" + android:strokeWidth="1" + android:pathData="M12.75,10.1666667 C13.4604167,10.1666667 14.0416667,9.58541667 14.0416667,8.875 +C14.0416667,8.16458333 13.4604167,7.58333333 12.75,7.58333333 +C12.0395833,7.58333333 11.4583333,8.16458333 11.4583333,8.875 +C11.4583333,9.58541667 12.0395833,10.1666667 12.75,10.1666667 L12.75,10.1666667 +Z M12.75,11.4583333 C12.0395833,11.4583333 11.4583333,12.0395833 +11.4583333,12.75 C11.4583333,13.4604167 12.0395833,14.0416667 12.75,14.0416667 +C13.4604167,14.0416667 14.0416667,13.4604167 14.0416667,12.75 +C14.0416667,12.0395833 13.4604167,11.4583333 12.75,11.4583333 L12.75,11.4583333 +Z M12.75,15.3333333 C12.0395833,15.3333333 11.4583333,15.9145833 +11.4583333,16.625 C11.4583333,17.3354167 12.0395833,17.9166667 12.75,17.9166667 +C13.4604167,17.9166667 14.0416667,17.3354167 14.0416667,16.625 +C14.0416667,15.9145833 13.4604167,15.3333333 12.75,15.3333333 L12.75,15.3333333 +Z" /> + </group> +</vector> diff --git a/res/drawable/ic_pause.xml b/res/drawable/ic_pause.xml new file mode 100644 index 0000000..3e80cd1 --- /dev/null +++ b/res/drawable/ic_pause.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="56dp" + android:height="56dp" + android:viewportWidth="48" + android:viewportHeight="48"> + + <path + android:fillColor="#000000" + android:pathData="M12 38h8V10h-8v28zm16-28v28h8V10h-8z" /> + <path + android:pathData="M0 0h48v48H0z" /> +</vector> diff --git a/res/drawable/ic_play_arrow.xml b/res/drawable/ic_play_arrow.xml new file mode 100644 index 0000000..d15c121 --- /dev/null +++ b/res/drawable/ic_play_arrow.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="56dp" + android:height="56dp" + android:viewportWidth="48" + android:viewportHeight="48"> + + <path + android:pathData="M-838-2232H562v3600H-838z" /> + <path + android:fillColor="#000000" + android:pathData="M16 10v28l22-14z" /> + <path + android:pathData="M0 0h48v48H0z" /> +</vector> diff --git a/res/drawable/ic_play_arrow_off.xml b/res/drawable/ic_play_arrow_off.xml new file mode 100644 index 0000000..33b70ca --- /dev/null +++ b/res/drawable/ic_play_arrow_off.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="56dp" + android:height="56dp" + android:viewportWidth="24" + android:viewportHeight="24"> + + <group + android:translateX="3.000000" + android:translateY="3.000000"> + <path + android:fillColor="#000000" + android:strokeWidth="1" + android:pathData="M16,9 L7.249,3.431 L14.048,10.242 L16,9 Z" /> + <path + android:fillColor="#000000" + android:strokeWidth="1" + android:pathData="M18,16.73 L1.27,0 L0,1.27 L5,6.27 L5,16 L10.946,12.216 L16.73,18 L18,16.73 Z" /> + </group> +</vector> diff --git a/res/drawable/ic_play_pause_stop.xml b/res/drawable/ic_play_pause_stop.xml new file mode 100644 index 0000000..937a5fc --- /dev/null +++ b/res/drawable/ic_play_pause_stop.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright 2016, 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" + xmlns:gearhead="http://schemas.android.com/apk/res-auto" > + <item + gearhead:state_playing_to_pause="true" + android:drawable="@drawable/ic_pause" /> + <item + gearhead:state_playing_to_stop="true" + android:drawable="@drawable/ic_stop" /> + <item + gearhead:state_paused="true" + android:drawable="@drawable/ic_play_arrow" /> + <item + gearhead:state_buffering_to_pause="true" + android:drawable="@drawable/ic_pause" /> + <item + gearhead:state_buffering_to_stop="true" + android:drawable="@drawable/ic_stop" /> + <item + gearhead:state_stopped="true" + android:drawable="@drawable/ic_play_arrow" /> + <item + gearhead:state_disabled="true" + android:drawable="@drawable/ic_play_arrow_off" /> + <item android:drawable="@drawable/ic_play_arrow" /> +</selector> diff --git a/res/drawable/ic_skip_next.xml b/res/drawable/ic_skip_next.xml new file mode 100644 index 0000000..5ac0d54 --- /dev/null +++ b/res/drawable/ic_skip_next.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="56dp" + android:height="56dp" + android:viewportWidth="24" + android:viewportHeight="24"> + + <path + android:fillColor="#000000" + android:pathData="M6 18l8.5-6L6 6v12zM16 6v12h2V6h-2z" /> + <path + android:pathData="M0 0h24v24H0z" /> +</vector> diff --git a/res/drawable/ic_skip_previous.xml b/res/drawable/ic_skip_previous.xml new file mode 100644 index 0000000..f943f88 --- /dev/null +++ b/res/drawable/ic_skip_previous.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="56dp" + android:height="56dp" + android:viewportWidth="24" + android:viewportHeight="24"> + + <path + android:fillColor="#000000" + android:pathData="M6 6h2v12H6zm3.5 6l8.5 6V6z" /> + <path + android:pathData="M0 0h24v24H0z" /> +</vector> diff --git a/res/drawable/ic_stop.xml b/res/drawable/ic_stop.xml new file mode 100644 index 0000000..ae01844 --- /dev/null +++ b/res/drawable/ic_stop.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="56dp" + android:height="56dp" + android:viewportWidth="48" + android:viewportHeight="48"> + + <path + android:pathData="M0 0h48v48H0z" /> + <path + android:fillColor="#000000" + android:pathData="M12 12h24v24H12z" /> +</vector> diff --git a/res/drawable/ic_tracklist.xml b/res/drawable/ic_tracklist.xml new file mode 100644 index 0000000..f46fd4c --- /dev/null +++ b/res/drawable/ic_tracklist.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="56dp" + android:height="56dp" + android:viewportWidth="48" + android:viewportHeight="48"> + + <path + android:pathData="M0 0h48v48H0z" /> + <path + android:fillColor="#000000" + android:pathData="M30 12H6v4h24v-4zm0 8H6v4h24v-4zM6 +32h16v-4H6v4zm28-20v16.37c-.63-.23-1.29-.37-2-.37-3.31 0-6 2.69-6 6s2.69 6 6 6 +6-2.69 6-6V16h6v-4H34z" /> +</vector> diff --git a/res/drawable/music_action_background.xml b/res/drawable/music_action_background.xml new file mode 100644 index 0000000..00d61c6 --- /dev/null +++ b/res/drawable/music_action_background.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright 2016, 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. +--> +<inset xmlns:android="http://schemas.android.com/apk/res/android" + android:inset="@dimen/music_action_ripple_inset" > + <ripple android:color="@color/car_card_ripple_background" /> +</inset> diff --git a/res/drawable/music_buffering.xml b/res/drawable/music_buffering.xml new file mode 100644 index 0000000..e85241d --- /dev/null +++ b/res/drawable/music_buffering.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright 2016, 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. +--> +<animated-vector xmlns:android="http://schemas.android.com/apk/res/android" + android:drawable="@drawable/vector_drawable_progress_bar_medium_thin" > + <target + android:name="progressBar" + android:animation="@anim/progress_indeterminate_material" /> + <target + android:name="root" + android:animation="@anim/progress_indeterminate_rotation_material" /> +</animated-vector> diff --git a/res/drawable/music_overflow_action_background.xml b/res/drawable/music_overflow_action_background.xml new file mode 100644 index 0000000..08190d0 --- /dev/null +++ b/res/drawable/music_overflow_action_background.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright 2016, 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. +--> +<inset xmlns:android="http://schemas.android.com/apk/res/android" + android:inset="@dimen/music_action_ripple_inset" > + <ripple android:color="#a0ffffff" /> +</inset> diff --git a/res/drawable/seekbar_background.xml b/res/drawable/seekbar_background.xml new file mode 100644 index 0000000..bdb03aa --- /dev/null +++ b/res/drawable/seekbar_background.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright 2016, 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. +--> +<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> + + <item android:id="@android:id/background" + android:drawable="@android:color/transparent" /> + + <item android:id="@android:id/secondaryProgress"> + <scale android:scaleWidth="100%" + android:drawable="@android:color/transparent" /> + </item> + + <item android:id="@android:id/progress"> + <scale android:scaleWidth="100%" + android:drawable="@drawable/progressbar" /> + </item> + +</layer-list> diff --git a/res/drawable/vector_drawable_progress_bar_medium_thin.xml b/res/drawable/vector_drawable_progress_bar_medium_thin.xml new file mode 100644 index 0000000..682db26 --- /dev/null +++ b/res/drawable/vector_drawable_progress_bar_medium_thin.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright 2016, 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. +--> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:height="48dp" + android:width="48dp" + android:viewportHeight="48" + android:viewportWidth="48" > + <group + android:name="root" + android:translateX="24.0" + android:translateY="24.0" > + <path + android:name="progressBar" + android:fillColor="#00000000" + android:pathData="M0, 0 m 0, -19 a 19,19 0 1,1 0,38 a 19,19 0 1,1 0,-38" + android:strokeColor="?android:attr/colorControlActivated" + android:strokeLineCap="square" + android:strokeLineJoin="miter" + android:strokeWidth="2" + android:trimPathEnd="0" + android:trimPathOffset="0" + android:trimPathStart="0" /> + </group> +</vector> diff --git a/res/interpolator/trim_end_interpolator.xml b/res/interpolator/trim_end_interpolator.xml new file mode 100644 index 0000000..f7bfd30 --- /dev/null +++ b/res/interpolator/trim_end_interpolator.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright 2016, 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. +--> +<pathInterpolator xmlns:android="http://schemas.android.com/apk/res/android" + android:pathData="C0.2,0 0.1,1 0.5, 1 L 1,1" /> diff --git a/res/interpolator/trim_start_interpolator.xml b/res/interpolator/trim_start_interpolator.xml new file mode 100644 index 0000000..3b24b88 --- /dev/null +++ b/res/interpolator/trim_start_interpolator.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright 2016, 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. +--> +<pathInterpolator xmlns:android="http://schemas.android.com/apk/res/android" + android:pathData="L0.5,0 C 0.7,0 0.6,1 1, 1" /> diff --git a/res/layout/initial_no_content.xml b/res/layout/initial_no_content.xml new file mode 100644 index 0000000..ff1e094 --- /dev/null +++ b/res/layout/initial_no_content.xml @@ -0,0 +1,60 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright 2016, 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. +--> +<android.support.car.ui.MaxWidthLayout + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + android:layout_width="match_parent" + android:layout_height="match_parent" + app:carMaxWidth="@dimen/apps_max_content_width" + android:animateLayoutChanges="true" > + + <RelativeLayout + android:id="@+id/initial_view" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_gravity="center_horizontal"> + + <ProgressBar + android:id="@+id/loading_spinner" + android:layout_width="match_parent" + android:layout_height="@dimen/car_list_item_height" + android:layout_centerInParent="true" + android:layout_alignWithParentIfMissing="true" + android:indeterminateDrawable="@drawable/music_buffering" + android:visibility="gone" /> + + <ImageView + android:id="@+id/error_icon" + android:layout_width="@dimen/missing_permission_icon_size" + android:layout_height="@dimen/missing_permission_icon_size" + android:layout_centerInParent="true" + android:src="@drawable/error_illustration" + android:visibility="gone" /> + + <TextView + android:id="@+id/tap_to_select_item" + style="@style/TextAppearance.NoContent" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:layout_marginBottom="48dp" + android:gravity="center" + android:maxLines="3" + android:text="@string/nothing_to_play" + android:visibility="gone" /> + </RelativeLayout> +</android.support.car.ui.MaxWidthLayout> diff --git a/res/layout/media_activity.xml b/res/layout/media_activity.xml new file mode 100644 index 0000000..48c7035 --- /dev/null +++ b/res/layout/media_activity.xml @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright 2016, 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" + android:id="@+id/background" + android:layout_width="match_parent" + android:layout_height="match_parent" > + <com.android.car.media.CrossfadeImageView + android:id="@+id/album_art" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:scaleType="centerCrop" /> + <!-- scrim --> + <View + android:id="@+id/scrim" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@android:color/black" + android:alpha="@dimen/media_scrim_alpha" /> +</merge> diff --git a/res/layout/media_controls.xml b/res/layout/media_controls.xml new file mode 100644 index 0000000..2adb98a --- /dev/null +++ b/res/layout/media_controls.xml @@ -0,0 +1,168 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2016 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. +--> +<com.android.car.media.util.widgets.MusicPanelLayout + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + android:id="@+id/music_panel" + android:layout_width="match_parent" + android:layout_height="@dimen/action_panel_height" + android:elevation="@dimen/music_panel_elevation" + android:layout_gravity="bottom" + android:visibility="gone" + app:cardCornerRadius="@dimen/car_card_view_corner_radius" > + <LinearLayout + android:id="@+id/controls" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="horizontal" + android:background="@color/car_card" + android:gravity="center" > + <ImageButton + android:id="@+id/play_queue" + android:visibility="invisible" + android:layout_width="@dimen/controls_tap_target_width" + android:layout_height="@dimen/controls_tap_target_height" + android:layout_marginLeft="@dimen/controls_margin" + android:background="@drawable/music_action_background" + android:tint="@color/car_tint" /> + <Space + android:layout_width="@dimen/controls_spacing_outer" + android:layout_height="match_parent" /> + <ImageButton + android:id="@+id/prev" + android:visibility="invisible" + android:layout_width="@dimen/controls_tap_target_width" + android:layout_height="@dimen/controls_tap_target_height" + android:background="@drawable/music_action_background" + android:tint="@color/car_tint"/> + <Space + android:layout_width="@dimen/controls_spacing_inner" + android:layout_height="match_parent"/> + <!-- The id is on the FrameLayout because it is used as the click handler to take + advantage of the larger touch target size --> + <FrameLayout + android:id="@+id/play_pause_container" + android:layout_width="@dimen/controls_tap_target_width" + android:layout_height="@dimen/controls_tap_target_height"> + <com.android.car.media.util.widgets.PlayPauseStopImageView + android:id="@+id/play_pause" + android:layout_width="@dimen/stream_fab_size" + android:layout_height="@dimen/stream_fab_size" + android:layout_gravity="center" + android:scaleType="centerInside" + android:src="@drawable/ic_play_pause_stop" + android:focusable="true" + android:elevation="@dimen/play_pause_elevation" + android:stateListAnimator="@anim/car_fab_state_list_animator" /> + <ProgressBar + android:id="@+id/spinner" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:padding="9dp" + android:indeterminateDrawable="@drawable/music_buffering" + android:visibility="gone" /> + </FrameLayout> + <Space + android:layout_width="@dimen/controls_spacing_inner" + android:layout_height="match_parent"/> + <ImageButton + android:id="@+id/next" + android:visibility="invisible" + android:layout_width="@dimen/controls_tap_target_width" + android:layout_height="@dimen/controls_tap_target_height" + android:background="@drawable/music_action_background" + android:tint="@color/car_tint" /> + <Space + android:layout_width="@dimen/controls_spacing_outer" + android:layout_height="match_parent" /> + <ImageButton + android:id="@+id/overflow_on" + android:visibility="invisible" + android:layout_width="@dimen/controls_tap_target_width" + android:layout_height="@dimen/controls_tap_target_height" + android:layout_marginRight="@dimen/controls_margin" + android:background="@drawable/music_action_background" + android:tint="@color/car_tint" /> + </LinearLayout> + <LinearLayout + android:id="@+id/overflow_items" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="horizontal" + android:background="@color/car_card" + android:gravity="center" + android:visibility="gone" + android:alpha="0.0" > + <ImageButton + android:id="@+id/custom_action_1" + android:visibility="invisible" + android:layout_width="@dimen/controls_tap_target_width" + android:layout_height="@dimen/controls_tap_target_height" + android:layout_marginLeft="@dimen/overflow_margin" + android:background="@drawable/music_overflow_action_background" + android:tint="@color/car_tint_light" /> + <Space + android:layout_width="@dimen/overflow_spacing_outer" + android:layout_height="match_parent" /> + <ImageButton + android:id="@+id/custom_action_2" + android:visibility="invisible" + android:layout_width="@dimen/controls_tap_target_width" + android:layout_height="@dimen/controls_tap_target_height" + android:background="@drawable/music_overflow_action_background" + android:tint="@color/car_tint_light" /> + <Space + android:layout_width="@dimen/overflow_spacing_inner" + android:layout_height="match_parent" /> + <ImageButton + android:id="@+id/custom_action_3" + android:visibility="invisible" + android:layout_width="@dimen/controls_tap_target_width" + android:layout_height="@dimen/controls_tap_target_height" + android:background="@drawable/music_overflow_action_background" + android:tint="@color/car_tint_light" /> + <Space + android:layout_width="@dimen/overflow_spacing_inner" + android:layout_height="match_parent" /> + <ImageButton + android:id="@+id/custom_action_4" + android:visibility="invisible" + android:layout_width="@dimen/controls_tap_target_width" + android:layout_height="@dimen/controls_tap_target_height" + android:background="@drawable/music_overflow_action_background" + android:tint="@color/car_tint_light" /> + <Space + android:layout_width="@dimen/overflow_spacing_outer" + android:layout_height="match_parent" /> + <ImageButton + android:id="@+id/overflow_off" + android:layout_width="@dimen/controls_tap_target_width" + android:layout_height="@dimen/controls_tap_target_height" + android:layout_marginRight="@dimen/overflow_margin" + android:background="@drawable/music_overflow_action_background" + android:tint="@color/car_tint_light" /> + </LinearLayout> + <SeekBar + android:id="@+id/seek_bar" + android:layout_width="match_parent" + android:layout_height="@dimen/seek_bar_height" + android:layout_gravity="top" + android:focusable="false" + android:paddingStart="0dp" + android:paddingEnd="0dp" + android:progressDrawable="@drawable/seekbar_background" + android:thumb="@null" /> +</com.android.car.media.util.widgets.MusicPanelLayout> diff --git a/res/layout/now_playing_screen.xml b/res/layout/now_playing_screen.xml new file mode 100644 index 0000000..8604848 --- /dev/null +++ b/res/layout/now_playing_screen.xml @@ -0,0 +1,72 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright 2016, 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. +--> +<FrameLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:animateLayoutChanges="true" > + + <View + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@color/album_art_color_overlay" /> + + <LinearLayout + android:layout_marginTop="@dimen/lens_header_height" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" > + + <FrameLayout + android:id="@+id/metadata" + android:layout_width="@dimen/metadata_width" + android:layout_height="0dp" + android:layout_weight="1" + android:layout_marginStart="@dimen/stream_content_keyline_1" + android:layout_marginTop="@dimen/now_playing_metadata_top_margin" + android:visibility="gone" > + + <LinearLayout + android:layout_gravity="top" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" > + + <TextView + android:id="@+id/title" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:ellipsize="end" + android:fontFamily="sans-serif-medium" + android:maxLines="2" + style="@style/CarHeadline1.Light" /> + <TextView + android:id="@+id/artist" + android:layout_marginTop="@dimen/metadata_inter_line_space" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:ellipsize="end" + android:singleLine="true" + style="@style/CarHeadline1.Light" /> + </LinearLayout> + </FrameLayout> + + <include layout="@layout/media_controls" /> + </LinearLayout> + + <include layout="@layout/initial_no_content" /> +</FrameLayout> diff --git a/res/values-h600dp/dimens.xml b/res/values-h600dp/dimens.xml new file mode 100644 index 0000000..25639cf --- /dev/null +++ b/res/values-h600dp/dimens.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2016 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. +--> +<resources> + <dimen name="now_playing_metadata_top_margin">32dp</dimen> +</resources> diff --git a/res/values-w1024dp/dimens.xml b/res/values-w1024dp/dimens.xml new file mode 100644 index 0000000..0ecc751 --- /dev/null +++ b/res/values-w1024dp/dimens.xml @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright 2016, 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. +--> +<resources> + <!-- Music --> + <item name="media_scrim_alpha" format="float" type="dimen">0.6</item> + <dimen name="apps_max_content_width">748dp</dimen> + + <!-- Music now playing screen --> + <dimen name="music_action_icon_inset">0dp</dimen> + <dimen name="music_action_ripple_inset">32dp</dimen> + + <!-- action card --> + <dimen name="metadata_width">720dp</dimen> + <dimen name="metadata_inter_line_space">8dp</dimen> + + <dimen name="music_panel_elevation">2dp</dimen> + + <dimen name="play_pause_elevation">6dp</dimen> + + <dimen name="controls_tap_target_width">188dp</dimen> + <dimen name="controls_tap_target_height">188dp</dimen> + <dimen name="controls_margin">46dp</dimen> + <dimen name="controls_spacing_inner">16dp</dimen> + <dimen name="controls_spacing_outer">81dp</dimen> + + <dimen name="overflow_margin">46dp</dimen> + <dimen name="overflow_spacing_outer">49dp</dimen> + <dimen name="overflow_spacing_inner">48dp</dimen> + + <dimen name="seek_bar_height">8dp</dimen> +</resources> diff --git a/res/values-w748dp/dimens.xml b/res/values-w748dp/dimens.xml new file mode 100644 index 0000000..be40cc9 --- /dev/null +++ b/res/values-w748dp/dimens.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright 2016, 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. +--> +<resources> + <!-- The max width of content in apps for adaptive responsive --> + <dimen name="apps_max_content_width">748dp</dimen> +</resources> diff --git a/res/values-w768dp/dimens.xml b/res/values-w768dp/dimens.xml new file mode 100644 index 0000000..15ba776 --- /dev/null +++ b/res/values-w768dp/dimens.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright 2016, 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. +--> +<resources> + <!-- The max width of content in apps for adaptive responsive --> + <dimen name="apps_max_content_width">768dp</dimen> +</resources> diff --git a/res/values-wheel/bools.xml b/res/values-wheel/bools.xml new file mode 100644 index 0000000..cd123b4 --- /dev/null +++ b/res/values-wheel/bools.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright 2016, 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. +--> +<resources> + <bool name="has_wheel">true</bool> +</resources> diff --git a/res/values/attrs.xml b/res/values/attrs.xml new file mode 100644 index 0000000..857d8f4 --- /dev/null +++ b/res/values/attrs.xml @@ -0,0 +1,80 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright 2016, 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. +--> +<resources> + <declare-styleable name="ImageButtonWithAlphaFade"> + <!-- Fade duration in ms --> + <attr name="fadeDuration" format="integer" /> + <attr name="alphaNormal" format="float" /> + <attr name="alphaSelected" format="float" /> + <attr name="fadeColor" format="integer" /> + </declare-styleable> + + <declare-styleable name="BrowseItemView"> + <attr name="detailAnimation" format="reference" /> + </declare-styleable> + + <declare-styleable name="PlayingState"> + <attr name="state_paused" format="boolean"/> + <attr name="state_playing_to_pause" format="boolean"/> + <attr name="state_playing_to_stop" format="boolean"/> + <attr name="state_buffering_to_pause" format="boolean"/> + <attr name="state_buffering_to_stop" format="boolean"/> + <attr name="state_stopped" format="boolean"/> + <attr name="state_disabled" format="boolean"/> + </declare-styleable> + + <!-- IME stuff --> + <!-- Modified KeyboardView --> + <declare-styleable name="KeyboardView"> + <attr name="keyBackground" format="reference"/> + <attr name="keyTextSize" format="dimension"/> + <attr name="keyTextColorPrimary" format="color"/> + <attr name="keyTextColorSecondary" format="color"/> + <attr name="labelTextSize" format="dimension"/> + <attr name="fontFamily" format="string" /> + <attr name="textStyle" format="enum"> + <enum name="normal" value="0" /> + <enum name="bold" value="1" /> + <enum name="italic" value="2" /> + <enum name="bold_italic" value="3" /> + </attr> + </declare-styleable> + + <declare-styleable name="RotaryKeyboardLayout"> + <attr name="selectedKeyTextColor" format="color" /> + <attr name="selectedKeyTextSize" format="dimension" /> + <attr name="selectedCircleColor" format="dimension" /> + <attr name="selectedCircleRadius" format="dimension" /> + <attr name="clickedCircleRadius" format="dimension" /> + <attr name="movedCircleRadius" format="dimension" /> + <attr name="ringKeySpacing" format="dimension" /> + <attr name="ringKeyTextColor" format="color" /> + <attr name="ringKeyTextSize" format="dimension" /> + <attr name="selectedKeyMargin" format="dimension" /> + <attr name="selectedKeygroupTextSize" format="dimension" /> + <attr name="keyGroupTextSize" format="dimension" /> + <attr name="keyGroupCircleRadius" format="dimension" /> + <attr name="keyGroupCircleColor" format="color" /> + <attr name="keyGroupSpacing" format="dimension" /> + </declare-styleable> + + <declare-styleable name="PageIndicator"> + <attr name="dotPadding" format="dimension" /> + <attr name="inactiveDotSrc" format="reference" /> + <attr name="activeDotSrc" format="reference" /> + </declare-styleable> +</resources> diff --git a/res/values/bools.xml b/res/values/bools.xml new file mode 100644 index 0000000..64c8de8 --- /dev/null +++ b/res/values/bools.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright 2016, 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. +--> +<resources> + <bool name="has_wheel">false</bool> + <bool name="has_touch">true</bool> +</resources> diff --git a/res/values/colors.xml b/res/values/colors.xml new file mode 100644 index 0000000..19a9700 --- /dev/null +++ b/res/values/colors.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2013 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. +--> + +<resources> + <color name="music_default_artwork">#78909c</color> + <color name="music_loading_view_background">#11181d</color> + <color name="no_content_text_color">#ffffff</color> + <color name="album_art_color_overlay">#99000000</color> +</resources> diff --git a/res/values/dimens.xml b/res/values/dimens.xml new file mode 100644 index 0000000..1a7aacc --- /dev/null +++ b/res/values/dimens.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright 2016, 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. +--> +<resources> + <!-- Music --> + <item name="media_scrim_alpha" format="float" type="dimen">0.6</item> + <dimen name="apps_max_content_width">748dp</dimen> + + <!-- Music now playing screen --> + <dimen name="music_action_icon_inset">0dp</dimen> + <dimen name="music_action_ripple_inset">32dp</dimen> + <dimen name="now_playing_metadata_top_margin">0dp</dimen> +</resources> diff --git a/res/values/id.xml b/res/values/id.xml new file mode 100644 index 0000000..bf4d6cc --- /dev/null +++ b/res/values/id.xml @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <item type="id" name="imageDownloadTask" /> +</resources>
\ No newline at end of file diff --git a/res/values/integers.xml b/res/values/integers.xml new file mode 100644 index 0000000..4a202ef --- /dev/null +++ b/res/values/integers.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <!-- Media --> + <integer name="media_scrim_duration_ms">400</integer> + <integer name="new_album_art_fade_in_offset">250</integer> +</resources> diff --git a/res/values/strings.xml b/res/values/strings.xml new file mode 100644 index 0000000..dbe3930 --- /dev/null +++ b/res/values/strings.xml @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright 2016, 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. +--> +<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + <!-- Music --> + <!-- Prompt text to display when the user hasn't picked any songs to play yet. [CHAR LIMIT=57]--> + <string name="nothing_to_play">To play something, open the menu at the top left.</string> + <!-- Prompt text to display when we failed to connect to a media app. [CHAR LIMIT=50]--> + <string name="cannot_connect_to_app"><xliff:g name="app">%s</xliff:g> doesn\'t seem to be working right now.</string> + <!-- Prompt text to display when connecting to a media app. [CHAR LIMIT=50] --> + <string name="unknown_media_provider_name">Unknown</string> + <!-- The text for pending user action. [CHAR LIMIT=50] --> + <string name="loading">Getting your selection…</string> + <!-- The text for unknown playback error. [CHAR LIMIT=50] --> + <string name="unknown_error">Something went wrong</string> +</resources> diff --git a/res/values/styles.xml b/res/values/styles.xml new file mode 100644 index 0000000..5d3b838 --- /dev/null +++ b/res/values/styles.xml @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright 2016, 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. +--> +<resources xmlns:android="http://schemas.android.com/apk/res/android"> + + <style name="AppTheme" parent="android:Theme.Material.Light.NoActionBar"> + <item name="android:colorControlHighlight">@color/car_card_ripple_background_light</item> + <item name="android:windowBackground">@null</item> + </style> + + <style name="TextAppearance.NoContent" parent="android:TextAppearance.Medium"> + <item name="android:fontFamily">sans-serif-condensed</item> + <item name="android:textSize">@dimen/car_body2_size</item> + <item name="android:textColor">@color/no_content_text_color</item> + </style> +</resources> diff --git a/res/xml/automotive_app_desc.xml b/res/xml/automotive_app_desc.xml new file mode 100644 index 0000000..8342dd0 --- /dev/null +++ b/res/xml/automotive_app_desc.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright 2016, 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. +--> +<automotiveApp> + <uses name="service" /> + <uses name="projection" /> + <uses name="activity" class="com.android.car.media.MediaProxyActivity" /> +</automotiveApp> |