diff options
author | yueg <yueg@google.com> | 2018-02-02 17:28:02 -0800 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-02-05 16:33:16 -0800 |
commit | beaaff27e6ea36ddab00ccf259bb73a18208f5c2 (patch) | |
tree | 5757287797756cc443b25e2007244f0cbee75a44 /java/com/android/bubble/res | |
parent | 3c7c669918e58f301f27b4d9cbb7d80a7b4ebabc (diff) |
Remove bubble v1.
Bug: 67605985
Test: manual
PiperOrigin-RevId: 184358120
Change-Id: I17288da2b059f18bd51247e27aa174c7994e6f05
Diffstat (limited to 'java/com/android/bubble/res')
10 files changed, 0 insertions, 411 deletions
diff --git a/java/com/android/bubble/res/color/bubble_checkable_mask.xml b/java/com/android/bubble/res/color/bubble_checkable_mask.xml deleted file mode 100644 index f9416ab57..000000000 --- a/java/com/android/bubble/res/color/bubble_checkable_mask.xml +++ /dev/null @@ -1,21 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - ~ Copyright (C) 2017 The Android Open Source Project - ~ - ~ Licensed under the Apache License, Version 2.0 (the "License"); - ~ you may not use this file except in compliance with the License. - ~ You may obtain a copy of the License at - ~ - ~ http://www.apache.org/licenses/LICENSE-2.0 - ~ - ~ Unless required by applicable law or agreed to in writing, software - ~ distributed under the License is distributed on an "AS IS" BASIS, - ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - ~ See the License for the specific language governing permissions and - ~ limitations under the License - --> - -<selector xmlns:android="http://schemas.android.com/apk/res/android"> - <item android:color="@android:color/white" android:state_checked="true"/> - <item android:color="@android:color/transparent"/> -</selector> diff --git a/java/com/android/bubble/res/color/bubble_icon_tint_states.xml b/java/com/android/bubble/res/color/bubble_icon_tint_states.xml deleted file mode 100644 index 33ca1fdc5..000000000 --- a/java/com/android/bubble/res/color/bubble_icon_tint_states.xml +++ /dev/null @@ -1,21 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - ~ Copyright (C) 2017 The Android Open Source Project - ~ - ~ Licensed under the Apache License, Version 2.0 (the "License"); - ~ you may not use this file except in compliance with the License. - ~ You may obtain a copy of the License at - ~ - ~ http://www.apache.org/licenses/LICENSE-2.0 - ~ - ~ Unless required by applicable law or agreed to in writing, software - ~ distributed under the License is distributed on an "AS IS" BASIS, - ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - ~ See the License for the specific language governing permissions and - ~ limitations under the License - --> - -<selector xmlns:android="http://schemas.android.com/apk/res/android"> - <item android:color="#80FFFFFF" android:state_enabled="false"/> - <item android:color="@android:color/white"/> -</selector> diff --git a/java/com/android/bubble/res/drawable/bubble_background_pill_ltr.xml b/java/com/android/bubble/res/drawable/bubble_background_pill_ltr.xml deleted file mode 100644 index 77c813a75..000000000 --- a/java/com/android/bubble/res/drawable/bubble_background_pill_ltr.xml +++ /dev/null @@ -1,23 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - ~ Copyright (C) 2017 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 - --> - -<shape xmlns:android="http://schemas.android.com/apk/res/android"> - <corners - android:bottomRightRadius="@dimen/bubble_size" - android:topRightRadius="@dimen/bubble_size"/> - <solid android:color="@android:color/white"/> -</shape> diff --git a/java/com/android/bubble/res/drawable/bubble_background_pill_rtl.xml b/java/com/android/bubble/res/drawable/bubble_background_pill_rtl.xml deleted file mode 100644 index 9e2542154..000000000 --- a/java/com/android/bubble/res/drawable/bubble_background_pill_rtl.xml +++ /dev/null @@ -1,23 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - ~ Copyright (C) 2017 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 - --> - -<shape xmlns:android="http://schemas.android.com/apk/res/android"> - <corners - android:bottomLeftRadius="@dimen/bubble_size" - android:topLeftRadius="@dimen/bubble_size"/> - <solid android:color="@android:color/white"/> -</shape> diff --git a/java/com/android/bubble/res/drawable/bubble_ripple_checkable_circle.xml b/java/com/android/bubble/res/drawable/bubble_ripple_checkable_circle.xml deleted file mode 100644 index 85e0b24f3..000000000 --- a/java/com/android/bubble/res/drawable/bubble_ripple_checkable_circle.xml +++ /dev/null @@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - ~ Copyright (C) 2017 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 - --> - -<ripple xmlns:android="http://schemas.android.com/apk/res/android" - android:color="?android:colorControlHighlight"> - <item> - <shape android:shape="oval"> - <solid android:color="@color/bubble_checkable_mask"/> - </shape> - </item> - <item android:id="@android:id/mask"> - <shape android:shape="oval"> - <solid android:color="@android:color/white"/> - </shape> - </item> -</ripple> diff --git a/java/com/android/bubble/res/drawable/bubble_ripple_circle.xml b/java/com/android/bubble/res/drawable/bubble_ripple_circle.xml deleted file mode 100644 index 8d5cf0bb5..000000000 --- a/java/com/android/bubble/res/drawable/bubble_ripple_circle.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - ~ Copyright (C) 2017 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 - --> - -<ripple xmlns:android="http://schemas.android.com/apk/res/android" - android:color="?android:colorControlHighlight"> - <item> - <shape> - <corners android:radius="@dimen/bubble_size"/> - <solid android:color="@android:color/white"/> - </shape> - </item> -</ripple> diff --git a/java/com/android/bubble/res/layout/bubble_base.xml b/java/com/android/bubble/res/layout/bubble_base.xml deleted file mode 100644 index 9f88e7083..000000000 --- a/java/com/android/bubble/res/layout/bubble_base.xml +++ /dev/null @@ -1,192 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - ~ Copyright (C) 2017 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" - xmlns:tools="http://schemas.android.com/tools" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:clipToPadding="false" - tools:theme="@style/Theme.AppCompat"> - <View - android:id="@+id/bubble_drawer_shadow_provider" - android:layout_width="@dimen/bubble_size" - android:layout_height="@dimen/bubble_size" - android:layout_marginTop="@dimen/bubble_shadow_padding_size" - android:layout_marginBottom="@dimen/bubble_shadow_padding_size" - android:layout_marginStart="@dimen/bubble_shadow_padding_size" - android:background="@drawable/bubble_ripple_circle" - android:backgroundTint="@android:color/transparent" - android:elevation="10dp" - android:visibility="invisible" - /> - <View - android:id="@+id/bubble_drawer_shadow_provider_rtl" - android:layout_width="@dimen/bubble_size" - android:layout_height="@dimen/bubble_size" - android:layout_marginTop="@dimen/bubble_shadow_padding_size" - android:layout_marginBottom="@dimen/bubble_shadow_padding_size" - android:layout_marginRight="@dimen/bubble_shadow_padding_size" - android:layout_gravity="right" - android:background="@drawable/bubble_ripple_circle" - android:backgroundTint="@android:color/transparent" - android:elevation="10dp" - android:visibility="invisible" - /> - <FrameLayout - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginStart="@dimen/bubble_drawer_margin" - android:elevation="10dp" - android:paddingTop="@dimen/bubble_shadow_padding_size" - android:paddingBottom="@dimen/bubble_shadow_padding_size" - android:paddingEnd="@dimen/bubble_shadow_padding_size"> - - <LinearLayout - android:id="@+id/bubble_expanded_layout" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:paddingStart="@dimen/bubble_drawer_padding_start" - android:paddingEnd="@dimen/bubble_drawer_padding_end" - android:background="@drawable/bubble_background_pill_ltr" - android:layoutDirection="ltr" - android:orientation="horizontal" - android:visibility="gone" - tools:backgroundTint="#FF0000FF" - tools:visibility="visible"> - <com.android.bubble.CheckableImageButton - android:id="@+id/bubble_icon_first" - android:layout_width="@dimen/bubble_size" - android:layout_height="@dimen/bubble_size" - android:layout_marginStart="4dp" - android:padding="@dimen/bubble_icon_padding" - android:tint="@color/bubble_icon_tint_states" - android:tintMode="src_in" - tools:background="@drawable/bubble_ripple_checkable_circle" - tools:src="@android:drawable/ic_lock_idle_lock"/> - <com.android.bubble.CheckableImageButton - android:id="@+id/bubble_icon_second" - android:layout_width="@dimen/bubble_size" - android:layout_height="@dimen/bubble_size" - android:layout_marginStart="4dp" - android:padding="@dimen/bubble_icon_padding" - android:tint="@color/bubble_icon_tint_states" - android:tintMode="src_in" - tools:background="@drawable/bubble_ripple_checkable_circle" - tools:src="@android:drawable/ic_input_add"/> - <com.android.bubble.CheckableImageButton - android:id="@+id/bubble_icon_third" - android:layout_width="@dimen/bubble_size" - android:layout_height="@dimen/bubble_size" - android:layout_marginStart="4dp" - android:padding="@dimen/bubble_icon_padding" - android:tint="@color/bubble_icon_tint_states" - android:tintMode="src_in" - tools:background="@drawable/bubble_ripple_checkable_circle" - tools:src="@android:drawable/ic_menu_call"/> - </LinearLayout> - </FrameLayout> - <FrameLayout - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginRight="@dimen/bubble_drawer_margin" - android:elevation="10dp" - android:paddingTop="@dimen/bubble_shadow_padding_size" - android:paddingBottom="@dimen/bubble_shadow_padding_size" - android:paddingLeft="@dimen/bubble_shadow_padding_size"> - <LinearLayout - android:id="@+id/bubble_expanded_layout_rtl" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:paddingRight="@dimen/bubble_drawer_padding_start" - android:paddingLeft="@dimen/bubble_drawer_padding_end" - android:background="@drawable/bubble_background_pill_rtl" - android:layoutDirection="rtl" - android:orientation="horizontal" - android:visibility="gone" - tools:backgroundTint="#FF0000FF" - tools:visibility="invisible"> - <com.android.bubble.CheckableImageButton - android:id="@+id/bubble_icon_first_rtl" - android:layout_width="@dimen/bubble_size" - android:layout_height="@dimen/bubble_size" - android:layout_marginRight="4dp" - android:padding="@dimen/bubble_icon_padding" - android:tint="@color/bubble_icon_tint_states" - android:tintMode="src_in" - tools:background="@drawable/bubble_ripple_checkable_circle" - tools:src="@android:drawable/ic_lock_idle_lock"/> - <com.android.bubble.CheckableImageButton - android:id="@+id/bubble_icon_second_rtl" - android:layout_width="@dimen/bubble_size" - android:layout_height="@dimen/bubble_size" - android:layout_marginRight="4dp" - android:padding="@dimen/bubble_icon_padding" - android:tint="@color/bubble_icon_tint_states" - android:tintMode="src_in" - tools:background="@drawable/bubble_ripple_checkable_circle" - tools:src="@android:drawable/ic_input_add"/> - <com.android.bubble.CheckableImageButton - android:id="@+id/bubble_icon_third_rtl" - android:layout_width="@dimen/bubble_size" - android:layout_height="@dimen/bubble_size" - android:layout_marginRight="4dp" - android:padding="@dimen/bubble_icon_padding" - android:tint="@color/bubble_icon_tint_states" - android:tintMode="src_in" - tools:background="@drawable/bubble_ripple_checkable_circle" - tools:src="@android:drawable/ic_menu_call"/> - </LinearLayout> - </FrameLayout> - <FrameLayout - android:id="@+id/bubble_primary_container" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="start" - android:animateLayoutChanges="true" - android:clipChildren="false" - android:clipToPadding="false" - android:elevation="12dp"> - <ViewAnimator - android:id="@+id/bubble_button_primary" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_margin="@dimen/bubble_shadow_padding_size" - android:background="@drawable/bubble_ripple_circle" - android:measureAllChildren="false" - tools:backgroundTint="#FF0000AA"> - <ImageView - android:id="@+id/bubble_icon_primary" - android:layout_width="@dimen/bubble_size" - android:layout_height="@dimen/bubble_size" - android:padding="@dimen/bubble_icon_padding" - android:tint="@android:color/white" - android:tintMode="src_in" - tools:src="@android:drawable/ic_btn_speak_now"/> - <TextView - android:id="@+id/bubble_text" - android:layout_width="wrap_content" - android:layout_height="@dimen/bubble_size" - android:paddingStart="@dimen/bubble_icon_padding" - android:paddingEnd="@dimen/bubble_icon_padding" - android:gravity="center" - android:minWidth="@dimen/bubble_size" - android:textAppearance="@style/TextAppearance.AppCompat" - tools:text="Call ended"/> - </ViewAnimator> - </FrameLayout> - -</FrameLayout> diff --git a/java/com/android/bubble/res/values-car/values.xml b/java/com/android/bubble/res/values-car/values.xml deleted file mode 100644 index 47f20a1bf..000000000 --- a/java/com/android/bubble/res/values-car/values.xml +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - ~ Copyright (C) 2017 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="bubble_size">64dp</dimen> - <dimen name="bubble_drawer_margin">50dp</dimen> - <dimen name="bubble_drawer_padding_start">38dp</dimen> - <dimen name="bubble_drawer_padding_end">12dp</dimen> -</resources> - diff --git a/java/com/android/bubble/res/values/colors.xml b/java/com/android/bubble/res/values/colors.xml deleted file mode 100644 index 97545faf3..000000000 --- a/java/com/android/bubble/res/values/colors.xml +++ /dev/null @@ -1,20 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - ~ Copyright (C) 2017 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="bubble_primary_background_darken">#33000000</color> -</resources> diff --git a/java/com/android/bubble/res/values/values.xml b/java/com/android/bubble/res/values/values.xml deleted file mode 100644 index 6066e18c3..000000000 --- a/java/com/android/bubble/res/values/values.xml +++ /dev/null @@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - ~ Copyright (C) 2017 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="bubble_safe_margin_x">16dp</dimen> - <dimen name="bubble_safe_margin_y">64dp</dimen> - <dimen name="bubble_size">56dp</dimen> - <dimen name="bubble_drawer_margin">48dp</dimen> - <dimen name="bubble_drawer_padding_start">32dp</dimen> - <dimen name="bubble_drawer_padding_end">8dp</dimen> - <dimen name="bubble_icon_padding">16dp</dimen> - <dimen name="bubble_move_elevation_change">4dp</dimen> - <dimen name="bubble_shadow_padding_size">16dp</dimen> -</resources> - |