Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5f280031 authored by Zoey Chen's avatar Zoey Chen Committed by Automerger Merge Worker
Browse files

Merge "[Le Audio] New layout for broadcast dialog" into tm-qpr-dev am: ecc97cff

parents 6eaabb54 ecc97cff
Loading
Loading
Loading
Loading
+23 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
     Copyright (C) 2022 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="@dimen/broadcast_dialog_btn_radius" />
</shape>
+23 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
    Copyright (C) 2022 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:width="24dp"
        android:height="24dp" android:viewportWidth="24" android:viewportHeight="24"
        android:tint="?android:attr/textColorSecondary">
    <path android:fillColor="#FF000000"
          android:pathData="M9,22.4 L7.6,21 11,17.6V14.3Q10.325,14 9.913,13.375Q9.5,12.75 9.5,12Q9.5,10.95 10.225,10.225Q10.95,9.5 12,9.5Q13.05,9.5 13.775,10.225Q14.5,10.95 14.5,12Q14.5,12.75 14.088,13.375Q13.675,14 13,14.3V17.6L16.4,21L15,22.4L12,19.4ZM5,12Q5,9.05 7.05,7.025Q9.1,5 12,5Q14.9,5 16.95,7.025Q19,9.05 19,12H17Q17,9.925 15.538,8.462Q14.075,7 12,7Q9.925,7 8.463,8.462Q7,9.925 7,12ZM1,12Q1,9.7 1.863,7.7Q2.725,5.7 4.225,4.212Q5.725,2.725 7.725,1.862Q9.725,1 12,1Q14.275,1 16.275,1.862Q18.275,2.725 19.775,4.212Q21.275,5.7 22.138,7.7Q23,9.7 23,12H21Q21,10.125 20.288,8.487Q19.575,6.85 18.35,5.625Q17.125,4.4 15.488,3.7Q13.85,3 12,3Q10.15,3 8.512,3.7Q6.875,4.4 5.65,5.625Q4.425,6.85 3.712,8.487Q3,10.125 3,12Z"/>
</vector>
 No newline at end of file
+79 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2022 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.
-->

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
              android:id="@+id/dialog_bg"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:orientation="vertical">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginBottom="@dimen/broadcast_dialog_margin"
        android:orientation="vertical">

        <ImageView
            android:id="@+id/dialog_icon"
            android:layout_width="@dimen/broadcast_dialog_icon_size"
            android:layout_height="@dimen/broadcast_dialog_icon_size"
            android:layout_marginTop="@dimen/broadcast_dialog_icon_margin_top"
            android:layout_marginBottom="@dimen/broadcast_dialog_title_img_margin_top"
            android:layout_gravity="center"
            android:src="@drawable/settings_input_antenna"/>

        <TextView
            style="@style/BroadcastDialogTitleStyle"
            android:id="@+id/dialog_title"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:gravity="center"
            android:layout_gravity="center"/>

        <TextView
            style="@style/BroadcastDialogBodyStyle"
            android:id="@+id/dialog_subtitle"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:gravity="center"
            android:layout_gravity="center"/>
    </LinearLayout>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginHorizontal="@dimen/broadcast_dialog_margin"
        android:layout_marginBottom="@dimen/broadcast_dialog_margin"
        android:orientation="vertical">

        <Button
            android:layout_marginBottom="@dimen/broadcast_dialog_btn_margin_bottom"
            android:id="@+id/switch_broadcast"
            style="@style/BroadcastDialogButtonStyle"/>

        <Button
            android:layout_marginBottom="@dimen/broadcast_dialog_btn_margin_bottom"
            android:id="@+id/change_output"
            android:text="@string/bt_le_audio_broadcast_dialog_different_output"
            style="@style/BroadcastDialogButtonStyle"/>

        <Button
            android:id="@+id/cancel"
            android:text="@android:string/cancel"
            style="@style/BroadcastDialogButtonStyle"/>
    </LinearLayout>

</LinearLayout>
+14 −0
Original line number Diff line number Diff line
@@ -1463,4 +1463,18 @@
    <dimen name="media_output_broadcast_info_title_height">24dp</dimen>
    <dimen name="media_output_broadcast_info_summary_height">20dp</dimen>
    <dimen name="media_output_broadcast_info_edit">18dp</dimen>

    <!-- Broadcast dialog -->
    <dimen name="broadcast_dialog_title_img_margin_top">18dp</dimen>
    <dimen name="broadcast_dialog_title_text_size">24sp</dimen>
    <dimen name="broadcast_dialog_title_text_margin">16dp</dimen>
    <dimen name="broadcast_dialog_title_text_margin_top">18dp</dimen>
    <dimen name="broadcast_dialog_subtitle_text_size">14sp</dimen>
    <dimen name="broadcast_dialog_icon_size">24dp</dimen>
    <dimen name="broadcast_dialog_icon_margin_top">25dp</dimen>
    <dimen name="broadcast_dialog_btn_radius">100dp</dimen>
    <dimen name="broadcast_dialog_btn_margin_bottom">4dp</dimen>
    <dimen name="broadcast_dialog_btn_text_size">16sp</dimen>
    <dimen name="broadcast_dialog_btn_minHeight">44dp</dimen>
    <dimen name="broadcast_dialog_margin">16dp</dimen>
</resources>
+14 −0
Original line number Diff line number Diff line
@@ -2534,4 +2534,18 @@
    =1 {# notification}
    other {# notifications}
    }</string>

    <!-- [CHAR LIMIT=NONE] Le audio broadcast dialog, media app is broadcasting -->
    <string name="broadcasting_description_is_broadcasting">Broadcasting</string>
    <!-- [CHAR LIMIT=NONE] Le audio broadcast dialog, title -->
    <string name="bt_le_audio_broadcast_dialog_title">Stop broadcasting <xliff:g id="app_name" example="App Name 1">%1$s</xliff:g>?</string>
    <!-- [CHAR LIMIT=NONE] Le audio broadcast dialog, sub-title -->
    <string name="bt_le_audio_broadcast_dialog_sub_title">If you broadcast <xliff:g id="switchApp" example="App Name 2">%1$s</xliff:g> or change the output, your current broadcast will stop</string>
    <!-- [CHAR LIMIT=NONE] Le audio broadcast dialog, switch to others app. -->
    <string name="bt_le_audio_broadcast_dialog_switch_app">Broadcast <xliff:g id="switchApp" example="App Name 2">%1$s</xliff:g></string>
    <!-- [CHAR LIMIT=NONE] Le audio broadcast dialog, different output. -->
    <string name="bt_le_audio_broadcast_dialog_different_output">Change output</string>
    <!-- [CHAR LIMIT=NONE] Le audio broadcast dialog, media app is unknown -->
    <string name="bt_le_audio_broadcast_dialog_unknown_name">Unknown</string>

</resources>
Loading