Skip to content

Instantly share code, notes, and snippets.

@stephen79
Created November 16, 2019 00:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stephen79/95411433d09deed179738b49e640a9e0 to your computer and use it in GitHub Desktop.
Save stephen79/95411433d09deed179738b49e640a9e0 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout app:layout_behavior="android.support.design.widget.BottomSheetBehavior"
android:id="@+id/audio_device_menu_bottom"
android:layout_width="match_parent"
android:layout_height="180dp"
android:orientation="vertical"
android:background="#ffffff"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<LinearLayout
android:id="@+id/audio_bluetooth"
android:layout_width="match_parent"
android:layout_height="60dp"
android:clickable="true"
android:focusable="true"
android:orientation="horizontal"
android:foreground="?android:attr/selectableItemBackground"
android:gravity="center_vertical"
android:layout_gravity="center_vertical"
android:padding="16dp">
<ImageView
android:layout_width="30dp"
android:layout_height="30dp"
android:src="@drawable/bluetooth_black_96x96"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginLeft="16dp"
android:textColor="@color/selected_text_green"
android:text="@string/audio_mode_bluetooth"/>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/selected_bluetooth_img"
style="@style/SettingMenuImage"/>
</RelativeLayout>
</LinearLayout>
<LinearLayout
android:id="@+id/audio_speaker"
android:layout_width="match_parent"
android:layout_height="60dp"
android:clickable="true"
android:focusable="true"
android:orientation="horizontal"
android:foreground="?android:attr/selectableItemBackground"
android:gravity="center_vertical"
android:layout_gravity="center_vertical"
android:padding="16dp">
<ImageView
android:layout_width="30dp"
android:layout_height="30dp"
android:src="@drawable/speaker_black_96x96"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginLeft="16dp"
android:textColor="@color/selected_text_green"
android:text="@string/audio_mode_speaker"/>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/selected_speaker_img"
style="@style/SettingMenuImage"/>
</RelativeLayout>
</LinearLayout>
<LinearLayout
android:id="@+id/audio_default"
android:layout_width="match_parent"
android:layout_height="60dp"
android:clickable="true"
android:focusable="true"
android:orientation="horizontal"
android:foreground="?android:attr/selectableItemBackground"
android:gravity="center_vertical"
android:layout_gravity="center_vertical"
android:padding="16dp">
<ImageView
android:id="@+id/audio_default_img"
android:layout_width="30dp"
android:layout_height="30dp"
android:src="@drawable/phone_black_96x96"
/>
<TextView
android:id="@+id/audio_default_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginLeft="16dp"
android:textColor="@color/selected_text_green"
android:text="@string/audio_mode_earpiece"/>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/selected_handset_img"
style="@style/SettingMenuImage"/>
</RelativeLayout>
</LinearLayout>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment