diff options
author | Roman Birg <roman@cyngn.com> | 2015-07-08 17:21:04 -0700 |
---|---|---|
committer | Roman Birg <roman@cyngn.com> | 2015-07-10 17:28:47 -0700 |
commit | 37c4a3107cd0bff3489d2ee49682f00d2025db49 (patch) | |
tree | e22b0beddd90a81cada8bf51c1744ab7378617a2 /res | |
parent | d281ad758d9b10a3a50c1ad44541457a63ec4ff8 (diff) | |
download | android_packages_apps_AudioFX-37c4a3107cd0bff3489d2ee49682f00d2025db49.tar.gz android_packages_apps_AudioFX-37c4a3107cd0bff3489d2ee49682f00d2025db49.tar.bz2 android_packages_apps_AudioFX-37c4a3107cd0bff3489d2ee49682f00d2025db49.zip |
AudioFX: DTS
REF: SAMBAR-165
Change-Id: Ia7d1450fb973279c3b4589ae6de74860444a739a
Signed-off-by: Roman Birg <roman@cyngn.com>
Diffstat (limited to 'res')
-rw-r--r-- | res/drawable/logo_dts_1c.xml | 83 | ||||
-rw-r--r-- | res/drawable/logo_dts_fc.xml | 83 | ||||
-rw-r--r-- | res/layout/action_bar.xml | 23 | ||||
-rw-r--r-- | res/layout/action_bar_spinner.xml | 27 | ||||
-rw-r--r-- | res/layout/action_bar_spinner_row.xml | 26 | ||||
-rw-r--r-- | res/layout/activity_main.xml | 15 | ||||
-rw-r--r-- | res/layout/activity_main_generic.xml | 74 | ||||
-rw-r--r-- | res/layout/activity_main_maxx_audio.xml | 207 | ||||
-rw-r--r-- | res/layout/controls_generic.xml | 21 | ||||
-rw-r--r-- | res/layout/controls_maxx_audio.xml | 152 | ||||
-rw-r--r-- | res/layout/equalizer.xml | 52 | ||||
-rw-r--r-- | res/layout/fragment_audiofx.xml | 25 | ||||
-rw-r--r-- | res/layout/fragment_audiofx_maxxaudio.xml | 25 | ||||
-rw-r--r-- | res/layout/fragment_dts.xml | 17 | ||||
-rw-r--r-- | res/values/cm_strings.xml | 3 | ||||
-rw-r--r-- | res/values/dimens.xml | 4 |
16 files changed, 544 insertions, 293 deletions
diff --git a/res/drawable/logo_dts_1c.xml b/res/drawable/logo_dts_1c.xml new file mode 100644 index 0000000..ed81042 --- /dev/null +++ b/res/drawable/logo_dts_1c.xml @@ -0,0 +1,83 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (c) 2015 The CyanogenMod 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:width="60dp" + android:height="24dp" + android:viewportWidth="60" + android:viewportHeight="24"> + + <group> + <path + android:fillColor="#FFFFFF" + android:pathData="M4.5,6.3c0,0-0.1-0.1-0.1-0.1C5.5,4.8,9,3.7,13.2,3.6c5.1-0.1,9.2,1.3,9.4,3.2 +c0,0,0,0.4,0,1.2l0,0c-0.4-1.7-4.3-3.3-9.1-3.6C9.3,4.2,5.7,5,4.5,6.3L4.5,6.3z +M5.6,7.2c1.7-0.8,4.6-1.3,7.9-1.1 +c4.8,0.3,8.7,1.8,9.1,3.6l0,0c0-0.7,0-1.2,0-1.2c-0.1-1.8-4.3-3.3-9.4-3.2C9.9,5.3,7,6,5.3,7C5.3,7,5.5,7.1,5.6,7.2L5.6,7.2z +M7.8,8.1c1.6-0.4,3.6-0.5,5.8-0.4c4.8,0.3,8.7,1.8,9.1,3.6v0c0-0.7,0-1.2,0-1.2c-0.1-1.8-4.3-3.3-9.4-3.2c-2.4,0-4.5,0.4-6.1,0.9 +C7.1,7.8,7.4,8,7.8,8.1L7.8,8.1z +M4,5.2c0.6-1.5,4.6-2.7,9.5-2.4c4.8,0.3,8.7,1.8,9.1,3.6l0-0.1c0-1-0.1-1.3-0.1-1.3 +c0-0.2-0.1-0.3-0.1-0.3c-0.7-1.6-4.5-2.8-9.2-2.7C8.4,2.1,4.4,3.5,4,5.2L4,5.2z" /> + <path + android:fillColor="#FFFFFF" + android:pathData="M22.2,10.5c-1.1,1.4-4.7,2.5-8.9,2.5C8.2,13.1,4.1,11.7,4,9.9c0,0,0-0.4,0-1.2l0,0 +c0.4,1.7,4.3,3.3,9.1,3.6c4.2,0.3,7.8-0.5,9.1-1.9C22.1,10.4,22.2,10.5,22.2,10.5L22.2,10.5z +M21.2,9.7C21.1,9.6,21,9.5,21,9.5 +c-1.7,0.8-4.6,1.3-7.9,1.1C8.2,10.3,4.4,8.8,4,7.1l0,0c0,0.7,0,1.2,0,1.2c0.1,1.8,4.3,3.3,9.4,3.2C16.7,11.4,19.6,10.7,21.2,9.7 +L21.2,9.7z +M19.4,8.8c-0.4-0.1-0.7-0.2-0.7-0.2C17.2,9,15.2,9.1,13,9C8.2,8.7,4.4,7.1,4,5.4l0,0c0,0.7,0,1.2,0,1.2 +c0.1,1.8,4.3,3.3,9.4,3.2C15.7,9.7,17.8,9.4,19.4,8.8L19.4,8.8z +M22.5,11.5C22,13,17.9,14.2,13,13.9c-4.8-0.3-8.7-1.8-9.1-3.6 +l0,0.1c0,1,0.1,1.3,0.1,1.3c0,0.2,0.1,0.3,0.1,0.3c0.7,1.6,4.5,2.8,9.2,2.7C18.2,14.6,22.1,13.2,22.5,11.5L22.5,11.5z" /> + <path + android:fillColor="#FFFFFF" + android:pathData="M37.6,14.5c-2.4,0-4.3,0-4.3,0c-2.3,0.1-3.5,0-3.5,0c-2.5,0-4.5-1.7-4.6-3.9 +c-0.1-2.1,1.7-3.9,4.3-4c0,0,1.2-0.1,3.2,0.2l0-0.2l0-4.3l5,0l0,4.6H40V5.3l4.8-2.1l0,3.6l1.7,0l0,1.3c-0.9,0-1.7,0-1.7,0v2.4 +c0,0.1,0,1.2,0,1.5c0,0,0.1,0.7,0.6,1.1c0,0,0.3,0.3,1,0.3c0,0,0.2,0,0.6,0h1.1l0,0c0.9,0,1.1-0.2,1.1-0.2c0.4-0.2,0.6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1,0.1-0.3,0.1-0.4c0-0.1,0-0.3-0.1-0.4 +c-0.1-0.1-0.2-0.2-0.3-0.3C55.4,2.3,55.2,2.3,55.1,2.3z +M54.7,3.6v-1H55c0.1,0,0.2,0,0.3,0c0.1,0,0.1,0.1,0.1,0.1c0,0,0,0.1,0,0.1 +c0,0.1,0,0.1-0.1,0.2c-0.1,0.1-0.1,0.1-0.2,0.1c0,0,0.1,0,0.1,0.1c0,0,0.1,0.1,0.1,0.2l0.1,0.2h-0.2l-0.1-0.2 +c-0.1-0.1-0.1-0.2-0.2-0.2c0,0-0.1,0-0.1,0h-0.1v0.4H54.7z +M54.9,3h0.2c0.1,0,0.2,0,0.2,0c0,0,0.1-0.1,0.1-0.1c0,0,0-0.1,0-0.1 +c0,0,0,0-0.1-0.1c0,0-0.1,0-0.2,0h-0.2V3z" /> + </group> +</vector>
\ No newline at end of file diff --git a/res/drawable/logo_dts_fc.xml b/res/drawable/logo_dts_fc.xml new file mode 100644 index 0000000..ea9bbed --- /dev/null +++ b/res/drawable/logo_dts_fc.xml @@ -0,0 +1,83 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (c) 2015 The CyanogenMod 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:width="60dp" + android:height="24dp" + android:viewportWidth="60" + android:viewportHeight="24"> + + <group> + <path + android:fillColor="#FDB813" + android:pathData="M4.5,6.3c0,0-0.1-0.1-0.1-0.1C5.5,4.8,9,3.7,13.2,3.6c5.1-0.1,9.2,1.3,9.4,3.2 +c0,0,0,0.4,0,1.2l0,0c-0.4-1.7-4.3-3.3-9.1-3.6C9.3,4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c0.2,0,0.3,0,0.5,0.1c0.1,0.1,0.3,0.2,0.3,0.3 +C56,2.8,56,2.9,56,3.1c0,0.2,0,0.3-0.1,0.5c-0.1,0.1-0.2,0.3-0.3,0.3C55.4,4,55.3,4,55.1,4c-0.2,0-0.3,0-0.5-0.1 +c-0.1-0.1-0.3-0.2-0.3-0.3c-0.1-0.1-0.1-0.3-0.1-0.5c0-0.2,0-0.3,0.1-0.5c0.1-0.1,0.2-0.3,0.3-0.3C54.8,2.2,55,2.1,55.1,2.1z +M55.1,2.3c-0.1,0-0.3,0-0.4,0.1c-0.1,0.1-0.2,0.2-0.3,0.3c-0.1,0.1-0.1,0.3-0.1,0.4c0,0.1,0,0.3,0.1,0.4c0.1,0.1,0.2,0.2,0.3,0.3 +c0.1,0.1,0.3,0.1,0.4,0.1c0.1,0,0.3,0,0.4-0.1c0.1-0.1,0.2-0.2,0.3-0.3c0.1-0.1,0.1-0.3,0.1-0.4c0-0.1,0-0.3-0.1-0.4 +c-0.1-0.1-0.2-0.2-0.3-0.3C55.4,2.3,55.2,2.3,55.1,2.3z +M54.7,3.6v-1H55c0.1,0,0.2,0,0.3,0c0.1,0,0.1,0.1,0.1,0.1c0,0,0,0.1,0,0.1 +c0,0.1,0,0.1-0.1,0.2c-0.1,0.1-0.1,0.1-0.2,0.1c0,0,0.1,0,0.1,0.1c0,0,0.1,0.1,0.1,0.2l0.1,0.2h-0.2l-0.1-0.2 +c-0.1-0.1-0.1-0.2-0.2-0.2c0,0-0.1,0-0.1,0h-0.1v0.4H54.7z +M54.9,3h0.2c0.1,0,0.2,0,0.2,0c0,0,0.1-0.1,0.1-0.1c0,0,0-0.1,0-0.1 +c0,0,0,0-0.1-0.1c0,0-0.1,0-0.2,0h-0.2V3z" /> + </group> +</vector>
\ No newline at end of file diff --git a/res/layout/action_bar.xml b/res/layout/action_bar.xml new file mode 100644 index 0000000..6477951 --- /dev/null +++ b/res/layout/action_bar.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <Spinner xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/spinner" + android:layout_weight="0" + android:dropDownWidth="wrap_content" + android:layout_width="wrap_content" + android:layout_height="wrap_content"/> + + <Space android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1"/> + + <CheckBox + android:layout_weight="0" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:id="@+id/device_toggle"/> + +</LinearLayout> diff --git a/res/layout/action_bar_spinner.xml b/res/layout/action_bar_spinner.xml new file mode 100644 index 0000000..67b81d1 --- /dev/null +++ b/res/layout/action_bar_spinner.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:padding="8dp"> + + <TextView android:id="@android:id/summary" + android:textSize="14sp" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:gravity="center_vertical"/> + + <TextView android:id="@android:id/title" + android:textSize="18sp" + android:textStyle="bold" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentTop="true" + android:layout_above="@android:id/summary" + android:layout_alignWithParentIfMissing="true" + android:gravity="center_vertical"/> + +</RelativeLayout> + diff --git a/res/layout/action_bar_spinner_row.xml b/res/layout/action_bar_spinner_row.xml new file mode 100644 index 0000000..d081618 --- /dev/null +++ b/res/layout/action_bar_spinner_row.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="64dp" + android:padding="8dp"> + + <TextView android:id="@android:id/summary" + android:textSize="14sp" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:gravity="center_vertical"/> + + <TextView android:id="@android:id/title" + android:textSize="18sp" + android:textStyle="bold" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentTop="true" + android:layout_above="@android:id/summary" + android:layout_alignWithParentIfMissing="true" + android:gravity="center_vertical"/> + +</RelativeLayout> diff --git a/res/layout/activity_main.xml b/res/layout/activity_main.xml new file mode 100644 index 0000000..84c5337 --- /dev/null +++ b/res/layout/activity_main.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="utf-8"?> + +<FrameLayout + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:custom="http://schemas.android.com/apk/res/com.cyngn.audiofx" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <FrameLayout + android:id="@+id/main_fragment" + android:layout_width="match_parent" + android:layout_height="match_parent"/> + +</FrameLayout> diff --git a/res/layout/activity_main_generic.xml b/res/layout/activity_main_generic.xml deleted file mode 100644 index c33f544..0000000 --- a/res/layout/activity_main_generic.xml +++ /dev/null @@ -1,74 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> - -<com.cyngn.audiofx.widget.InterceptableLinearLayout - xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:custom="http://schemas.android.com/apk/res/com.cyngn.audiofx" - android:id="@+id/interceptable_layout" - android:orientation="vertical" - android:layout_width="match_parent" - android:layout_height="match_parent"> - - <com.cyngn.audiofx.eq.EqSwipeController - android:id="@+id/swipe_interceptor" - android:orientation="vertical" - android:layout_weight="1" - android:layout_width="match_parent" - android:layout_height="wrap_content"> - <include - layout="@layout/eq_container" - android:layout_weight="1" - android:layout_width="match_parent" - android:layout_height="0dp"/> - - <LinearLayout - android:orientation="vertical" - android:id="@+id/preset_container" - android:layout_weight="0" - android:layout_width="match_parent" - android:layout_height="wrap_content"> - - <com.cyngn.audiofx.preset.InfiniteViewPager - android:id="@+id/pager" - android:layout_width="match_parent" - android:layout_height="40dp" - /> - - <com.viewpagerindicator.CirclePageIndicator - android:id="@+id/indicator" - android:padding="10dip" - android:layout_weight="1" - android:layout_height="wrap_content" - android:layout_width="match_parent" - /> - - <android.support.v4.view.ViewPager - android:layout_height="0dp" - android:layout_width="0dp" - android:visibility="gone" - android:id="@+id/fake_pager" - /> - - </LinearLayout> - </com.cyngn.audiofx.eq.EqSwipeController> - - <LinearLayout - android:background="@color/knob_container_background" - android:orientation="vertical" - android:layout_width="match_parent" - android:layout_height="160dp" - android:elevation="8dp" - android:padding="4dp"> - - <com.cyngn.audiofx.knobs.KnobContainer - android:id="@+id/knob_container" - android:layout_width="match_parent" - android:layout_height="0dp" - android:gravity="top|center_horizontal" - android:orientation="horizontal" - android:animateLayoutChanges="true" - android:layout_weight="1"> - - </com.cyngn.audiofx.knobs.KnobContainer> - - </LinearLayout> -</com.cyngn.audiofx.widget.InterceptableLinearLayout> diff --git a/res/layout/activity_main_maxx_audio.xml b/res/layout/activity_main_maxx_audio.xml deleted file mode 100644 index 082f82b..0000000 --- a/res/layout/activity_main_maxx_audio.xml +++ /dev/null @@ -1,207 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> - -<com.cyngn.audiofx.widget.InterceptableLinearLayout - xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:custom="http://schemas.android.com/apk/res/com.cyngn.audiofx" - android:id="@+id/interceptable_layout" - android:orientation="vertical" - android:layout_width="match_parent" - android:layout_height="match_parent"> - - <com.cyngn.audiofx.eq.EqSwipeController - android:id="@+id/swipe_interceptor" - android:orientation="vertical" - android:layout_weight="1" - android:layout_width="match_parent" - android:layout_height="wrap_content"> - - <include - layout="@layout/eq_container" - android:layout_weight="1" - android:layout_width="match_parent" - android:layout_height="0dp"/> - - <LinearLayout - android:orientation="vertical" - android:id="@+id/preset_container" - android:layout_weight="0" - android:layout_width="match_parent" - android:layout_height="wrap_content"> - - <com.cyngn.audiofx.preset.InfiniteViewPager - android:id="@+id/pager" - android:layout_width="match_parent" - android:layout_height="40dp" - /> - - <com.viewpagerindicator.CirclePageIndicator - android:id="@+id/indicator" - android:padding="10dip" - android:layout_weight="1" - android:layout_height="wrap_content" - android:layout_width="match_parent" - /> - - <android.support.v4.view.ViewPager - android:layout_height="0dp" - android:layout_width="0dp" - android:visibility="gone" - android:id="@+id/fake_pager" - /> - </LinearLayout> - - </com.cyngn.audiofx.eq.EqSwipeController> - - <LinearLayout - android:background="@color/knob_container_background" - android:orientation="vertical" - android:layout_width="match_parent" - android:layout_height="200dp" - android:elevation="8dp" - android:padding="4dp"> - - <LinearLayout - android:paddingLeft="30dp" - android:paddingRight="30dp" - android:orientation="horizontal" - android:layout_width="match_parent" - android:minHeight="?android:listPreferredItemHeightSmall" - android:layout_height="wrap_content" - android:gravity="center_horizontal"> - - <ImageView - android:layout_width="83dp" - android:layout_height="22dp" - android:layout_gravity="center_vertical" - android:src="@drawable/maxvolume_white" - android:scaleType="fitCenter" - /> - - <Space - android:layout_width="12dp" - android:layout_height="match_parent"/> - - <CheckBox - android:id="@+id/maxx_volume_switch" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:button="@drawable/toggle_check" - android:gravity="center_vertical" - android:layout_gravity="center_vertical"/> - - </LinearLayout> - - <com.cyngn.audiofx.knobs.KnobContainer - android:id="@+id/knob_container" - android:layout_width="match_parent" - android:layout_height="0dp" - android:gravity="top|center_horizontal" - android:orientation="horizontal" - android:animateLayoutChanges="true" - android:layout_weight="1"> - - <Space - android:layout_weight="0.1" - android:layout_width="0dp" - android:layout_height="match_parent"/> - - <FrameLayout - android:id="@+id/treble_knob_container" - android:layout_width="wrap_content" - android:layout_height="match_parent" - android:layout_weight="0" - android:layout_gravity="center_horizontal" - android:paddingBottom="@dimen/knob_container_padding_bottom"> - - <com.cyngn.audiofx.knobs.RadialKnob - android:id="@+id/knob" - android:layout_width="@dimen/knob_width" - android:layout_gravity="top|center_horizontal" - android:layout_height="wrap_content" - android:layout_centerHorizontal="true" - custom:foreground="@drawable/knob" - /> - - <ImageView - android:id="@+id/label" - android:layout_gravity="bottom|center_horizontal" - android:layout_width="76dp" - android:layout_height="22dp" - android:src="@drawable/maxxreble_white" - android:scaleType="fitCenter"/> - - </FrameLayout> - - <Space - android:layout_weight="0.1" - android:layout_width="0dp" - android:layout_height="match_parent"/> - - <FrameLayout - android:layout_width="wrap_content" - android:layout_height="match_parent" - android:layout_gravity="center_horizontal" - android:layout_weight="0" - android:id="@+id/bass_knob_container" - android:paddingBottom="@dimen/knob_container_padding_bottom"> - - <com.cyngn.audiofx.knobs.RadialKnob - android:id="@+id/knob" - android:layout_gravity="top|center_horizontal" - android:layout_width="@dimen/knob_width" - android:layout_height="wrap_content" - android:layout_centerHorizontal="true" - custom:foreground="@drawable/knob"/> - - <ImageView - android:id="@+id/label" - android:layout_gravity="bottom|center_horizontal" - android:layout_width="68dp" - android:layout_height="22dp" - android:src="@drawable/maxxbass_white" - android:scaleType="fitCenter"/> - - </FrameLayout> - - <Space - android:layout_weight="0.1" - android:layout_width="0dp" - android:layout_height="match_parent"/> - - <FrameLayout - android:visibility="gone" - android:id="@+id/virtualizer_knob_container" - android:layout_width="wrap_content" - android:layout_weight="0" - android:layout_height="match_parent" - android:layout_gravity="center_horizontal" - android:paddingBottom="@dimen/knob_container_padding_bottom"> - - <com.cyngn.audiofx.knobs.RadialKnob - android:id="@+id/knob" - android:layout_gravity="top|center_horizontal" - android:layout_width="@dimen/knob_width" - android:layout_height="wrap_content" - custom:foreground="@drawable/knob"/> - - - <ImageView - android:id="@+id/label" - android:layout_gravity="bottom|center_horizontal" - android:layout_width="69dp" - android:layout_height="22dp" - android:src="@drawable/maxxspace_white" - android:scaleType="fitCenter" - /> - </FrameLayout> - - <Space - android:visibility="gone" - android:layout_weight="0.1" - android:layout_width="0dp" - android:layout_height="match_parent"/> - - </com.cyngn.audiofx.knobs.KnobContainer> - - </LinearLayout> -</com.cyngn.audiofx.widget.InterceptableLinearLayout> diff --git a/res/layout/controls_generic.xml b/res/layout/controls_generic.xml new file mode 100644 index 0000000..44f6a7b --- /dev/null +++ b/res/layout/controls_generic.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:background="@color/knob_container_background" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="160dp" + android:elevation="8dp" + android:padding="4dp"> + + <com.cyngn.audiofx.knobs.KnobContainer + android:id="@+id/knob_container" + android:layout_width="match_parent" + android:layout_height="0dp" + android:gravity="top|center_horizontal" + android:orientation="horizontal" + android:animateLayoutChanges="true" + android:layout_weight="1"> + + </com.cyngn.audiofx.knobs.KnobContainer> + +</LinearLayout> diff --git a/res/layout/controls_maxx_audio.xml b/res/layout/controls_maxx_audio.xml new file mode 100644 index 0000000..410f1a3 --- /dev/null +++ b/res/layout/controls_maxx_audio.xml @@ -0,0 +1,152 @@ +<?xml version="1.0" encoding="utf-8"?> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:custom="http://schemas.android.com/apk/res/com.cyngn.audiofx" + android:background="@color/knob_container_background" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="200dp" + android:elevation="8dp" + android:padding="4dp"> + + <LinearLayout + android:paddingLeft="30dp" + android:paddingRight="30dp" + android:orientation="horizontal" + android:layout_width="match_parent" + android:minHeight="?android:listPreferredItemHeightSmall" + android:layout_height="wrap_content" + android:gravity="center_horizontal"> + + <ImageView + android:layout_width="83dp" + android:layout_height="22dp" + android:layout_gravity="center_vertical" + android:src="@drawable/maxvolume_white" + android:scaleType="fitCenter"/> + + <Space + android:layout_width="12dp" + android:layout_height="match_parent"/> + + <CheckBox + android:id="@+id/maxx_volume_switch" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:button="@drawable/toggle_check" + android:gravity="center_vertical" + android:layout_gravity="center_vertical"/> + + </LinearLayout> + + <com.cyngn.audiofx.knobs.KnobContainer + android:id="@+id/knob_container" + android:layout_width="match_parent" + android:layout_height="0dp" + android:gravity="top|center_horizontal" + android:orientation="horizontal" + android:animateLayoutChanges="true" + android:layout_weight="1"> + + <Space + android:layout_weight="0.1" + android:layout_width="0dp" + android:layout_height="match_parent"/> + + <FrameLayout + android:id="@+id/treble_knob_container" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_weight="0" + android:layout_gravity="center_horizontal" + android:paddingBottom="@dimen/knob_container_padding_bottom"> + + <com.cyngn.audiofx.knobs.RadialKnob + android:id="@+id/knob" + android:layout_width="@dimen/knob_width" + android:layout_gravity="top|center_horizontal" + android:layout_height="wrap_content" + android:layout_centerHorizontal="true" + custom:foreground="@drawable/knob"/> + + <ImageView + android:id="@+id/label" + android:layout_gravity="bottom|center_horizontal" + android:layout_width="76dp" + android:layout_height="22dp" + android:src="@drawable/maxxreble_white" + android:scaleType="fitCenter"/> + + </FrameLayout> + + <Space + android:layout_weight="0.1" + android:layout_width="0dp" + android:layout_height="match_parent"/> + + <FrameLayout + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_gravity="center_horizontal" + android:layout_weight="0" + android:id="@+id/bass_knob_container" + android:paddingBottom="@dimen/knob_container_padding_bottom"> + + <com.cyngn.audiofx.knobs.RadialKnob + android:id="@+id/knob" + android:layout_gravity="top|center_horizontal" + android:layout_width="@dimen/knob_width" + android:layout_height="wrap_content" + android:layout_centerHorizontal="true" + custom:foreground="@drawable/knob"/> + + <ImageView + android:id="@+id/label" + android:layout_gravity="bottom|center_horizontal" + android:layout_width="68dp" + android:layout_height="22dp" + android:src="@drawable/maxxbass_white" + android:scaleType="fitCenter"/> + + </FrameLayout> + + <Space + android:layout_weight="0.1" + android:layout_width="0dp" + android:layout_height="match_parent"/> + + <FrameLayout + android:visibility="gone" + android:id="@+id/virtualizer_knob_container" + android:layout_width="wrap_content" + android:layout_weight="0" + android:layout_height="match_parent" + android:layout_gravity="center_horizontal" + android:paddingBottom="@dimen/knob_container_padding_bottom"> + + <com.cyngn.audiofx.knobs.RadialKnob + android:id="@+id/knob" + android:layout_gravity="top|center_horizontal" + android:layout_width="@dimen/knob_width" + android:layout_height="wrap_content" + custom:foreground="@drawable/knob"/> + + + <ImageView + android:id="@+id/label" + android:layout_gravity="bottom|center_horizontal" + android:layout_width="69dp" + android:layout_height="22dp" + android:src="@drawable/maxxspace_white" + android:scaleType="fitCenter"/> + </FrameLayout> + + <Space + android:visibility="gone" + android:layout_weight="0.1" + android:layout_width="0dp" + android:layout_height="match_parent"/> + + </com.cyngn.audiofx.knobs.KnobContainer> + +</LinearLayout> diff --git a/res/layout/equalizer.xml b/res/layout/equalizer.xml index 2ebee34..883385d 100644 --- a/res/layout/equalizer.xml +++ b/res/layout/equalizer.xml @@ -1,16 +1,44 @@ <?xml version="1.0" encoding="utf-8"?> -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:orientation="vertical" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:layout_gravity="center" - android:background="#cc191919" - > +<com.cyngn.audiofx.eq.EqSwipeController + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/swipe_interceptor" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="match_parent"> + <include + layout="@layout/eq_container" + android:layout_weight="1" + android:layout_width="match_parent" + android:layout_height="0dp"/> - <org.cyanogenmod.audiofx.widget.EqualizerSurface - android:id="@+id/frequencyResponse" - android:layout_height="match_parent" - android:layout_width="match_parent" /> + <LinearLayout + android:orientation="vertical" + android:id="@+id/preset_container" + android:layout_weight="0" + android:layout_width="match_parent" + android:layout_height="wrap_content"> -</LinearLayout> + <com.cyngn.audiofx.preset.InfiniteViewPager + android:id="@+id/pager" + android:layout_width="match_parent" + android:layout_height="40dp" + /> + + <com.viewpagerindicator.CirclePageIndicator + android:id="@+id/indicator" + android:padding="10dip" + android:layout_weight="1" + android:layout_height="wrap_content" + android:layout_width="match_parent" + /> + + <android.support.v4.view.ViewPager + android:layout_height="0dp" + android:layout_width="0dp" + android:visibility="gone" + android:id="@+id/fake_pager" + /> + + </LinearLayout> +</com.cyngn.audiofx.eq.EqSwipeController> diff --git a/res/layout/fragment_audiofx.xml b/res/layout/fragment_audiofx.xml new file mode 100644 index 0000000..c4bb367 --- /dev/null +++ b/res/layout/fragment_audiofx.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="utf-8"?> + +<com.cyngn.audiofx.widget.InterceptableLinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:custom="http://schemas.android.com/apk/res/com.cyngn.audiofx" + android:id="@+id/interceptable_layout" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <!-- equalizer layout --> + <FrameLayout class="com.cyngn.audiofx.fragment.EqualizerFragment" + android:id="@+id/equalizer" + android:layout_weight="1" + android:layout_width="match_parent" + android:layout_height="0dp"/> + + <!-- knobs --> + <FrameLayout class="com.cyngn.audiofx.fragment.ControlsFragment" + android:id="@+id/controls" + android:layout_weight="0" + android:layout_width="match_parent" + android:layout_height="160dp"/> + +</com.cyngn.audiofx.widget.InterceptableLinearLayout> diff --git a/res/layout/fragment_audiofx_maxxaudio.xml b/res/layout/fragment_audiofx_maxxaudio.xml new file mode 100644 index 0000000..3f5a022 --- /dev/null +++ b/res/layout/fragment_audiofx_maxxaudio.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="utf-8"?> + +<com.cyngn.audiofx.widget.InterceptableLinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:custom="http://schemas.android.com/apk/res/com.cyngn.audiofx" + android:id="@+id/interceptable_layout" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <!-- equalizer layout --> + <FrameLayout class="com.cyngn.audiofx.fragment.EqualizerFragment" + android:id="@+id/equalizer" + android:layout_weight="1" + android:layout_width="match_parent" + android:layout_height="0dp"/> + + <!-- knobs --> + <FrameLayout class="com.cyngn.audiofx.fragment.ControlsFragment" + android:id="@+id/controls" + android:layout_weight="0" + android:layout_width="match_parent" + android:layout_height="200dp"/> + +</com.cyngn.audiofx.widget.InterceptableLinearLayout> diff --git a/res/layout/fragment_dts.xml b/res/layout/fragment_dts.xml new file mode 100644 index 0000000..785b996 --- /dev/null +++ b/res/layout/fragment_dts.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="utf-8"?> + +<RelativeLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <ImageView + android:id="@+id/logo" + android:layout_width="120dp" + android:layout_height="48dp" + android:layout_centerInParent="true" + android:src="@drawable/logo_dts_1c" + /> + +</RelativeLayout> diff --git a/res/values/cm_strings.xml b/res/values/cm_strings.xml index 085a250..12fd26a 100644 --- a/res/values/cm_strings.xml +++ b/res/values/cm_strings.xml @@ -58,4 +58,7 @@ <string name="remove_custom_preset_warning_message">Are you sure you want to remove %1$s?</string> + <string name="mode_audiofx"></string> + <string name="mode_dts">with DTS Sound™</string> + </resources> diff --git a/res/values/dimens.xml b/res/values/dimens.xml index c778cf0..65b5fef 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -41,4 +41,8 @@ <dimen name="radial_rect_padding">8dp</dimen> <dimen name="radial_knob_stroke">22dp</dimen> + + <!-- 16 dp + 64 dp --> + <dimen name="action_bar_dts_switch_padding">48dp</dimen> + </resources> |