[Audiosharing] Update button background radius
Test: manual Flag: com.android.settingslib.flags.enable_le_audio_sharing Bug: 366149567 Change-Id: I6aa2b0efb1e2d7b1d08d958fa065d739bef48812
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ Copyright (C) 2023 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"
|
||||
xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
|
||||
android:shape="rectangle">
|
||||
<solid android:color="?androidprv:attr/colorAccentPrimary" />
|
||||
<corners android:radius="12dp" />
|
||||
</shape>
|
@@ -1,21 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ Copyright (C) 2023 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:attr/colorControlHighlight">
|
||||
<item android:drawable="@drawable/audio_sharing_rounded_bg"/>
|
||||
</ripple>
|
@@ -64,7 +64,7 @@
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginTop="4dp"
|
||||
android:textColor="?androidprv:attr/textColorOnAccent"
|
||||
android:background="@drawable/audio_sharing_rounded_bg_ripple"
|
||||
android:background="@drawable/audio_sharing_rounded_bg_ripple_top"
|
||||
android:visibility="gone" />
|
||||
|
||||
<Button
|
||||
@@ -75,7 +75,7 @@
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginTop="4dp"
|
||||
android:textColor="?androidprv:attr/textColorOnAccent"
|
||||
android:background="@drawable/audio_sharing_rounded_bg_ripple"
|
||||
android:background="@drawable/audio_sharing_rounded_bg_ripple_bottom"
|
||||
android:visibility="gone" />
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
@@ -85,6 +85,10 @@ public class AudioSharingDeviceAdapter extends RecyclerView.Adapter<RecyclerView
|
||||
mButtonView.setText(btnText);
|
||||
mButtonView.setOnClickListener(
|
||||
v -> mOnClickListener.onClick(mDevices.get(position)));
|
||||
if (position == 0) {
|
||||
mButtonView.setBackgroundResource(
|
||||
com.android.settingslib.R.drawable.audio_sharing_rounded_bg_ripple_top);
|
||||
}
|
||||
} else {
|
||||
Log.w(TAG, "bind view skipped due to button view is null");
|
||||
}
|
||||
|
Reference in New Issue
Block a user