<?
xml version=
"1.0" encoding=
"utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
android:
id=
"@+id/parent_layout"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/transparent_activity_overlay">
<LinearLayout
android:
id=
"@+id/bottom_sheet"
style=
"?attr/bottomSheetStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"?android:attr/colorBackground"
android:clipToPadding=
"false"
android:elevation=
"2dp"
android:orientation=
"vertical"
android:outlineProvider=
"bounds"
app:behavior_hideable=
"false"
app:behavior_saveFlags=
"all"
app:layout_behavior=
"com.google.android.material.bottomsheet.BottomSheetBehavior">
<SeekBar
android:
id=
"@+id/seekbar"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_gravity=
"bottom"
android:paddingTop=
"8dp"
android:paddingBottom=
"4dp"
android:thumbTint=
"?attr/colorPrimary"
android:visibility=
"gone"
tools:visibility=
"visible" />
<RelativeLayout
android:
id=
"@+id/bottom_panel"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/compose_bottom_panel_height"
android:orientation=
"horizontal">
<LinearLayout
android:
id=
"@+id/button_layout"
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
android:layout_alignParentLeft=
"true"
android:animateLayoutChanges=
"true"
android:divider=
"?android:attr/dividerVertical"
android:dividerPadding=
"12dp"
android:orientation=
"horizontal"
android:showDividers=
"middle">
<ImageView
android:
id=
"@+id/discard_button"
style=
"?android:attr/borderlessButtonStyle"
android:layout_width=
"40dp"
android:layout_height=
"40dp"
android:layout_gravity=
"center_vertical"
android:layout_marginLeft=
"8dp"
android:background=
"@drawable/selector_compose_button"
android:clickable=
"true"
android:contentDescription=
"@string/discard"
android:focusable=
"true"
android:nextFocusRight=
"@+id/play_button"
android:scaleType=
"centerInside"
app:srcCompat=
"@drawable/ic_delete_outline"
app:tint=
"?attr/colorOnSurface" />
<ImageView
android:
id=
"@+id/play_button"
style=
"?android:attr/borderlessButtonStyle"
android:layout_width=
"40dp"
android:layout_height=
"40dp"
android:layout_gravity=
"center_vertical"
android:background=
"@drawable/selector_compose_button"
android:clickable=
"true"
android:contentDescription=
"@string/play"
android:focusable=
"true"
android:nextFocusRight=
"@+id/recording_pause_resume_button"
android:scaleType=
"centerInside"
app:srcCompat=
"@drawable/ic_stop"
app:tint=
"?attr/colorOnSurface" />
<ImageView
android:
id=
"@+id/recording_pause_resume_button"
style=
"?android:attr/borderlessButtonStyle"
android:layout_width=
"40dp"
android:layout_height=
"40dp"
android:layout_gravity=
"center_vertical"
android:background=
"@drawable/selector_compose_button"
android:clickable=
"true"
android:contentDescription=
"@string/pause"
android:focusable=
"true"
android:nextFocusRight=
"@+id/send_button"
android:scaleType=
"centerInside"
app:srcCompat=
"@drawable/ic_pause"
app:tint=
"?attr/colorOnSurface" />
</LinearLayout>
<FrameLayout
android:
id=
"@+id/timer_container"
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
android:layout_marginLeft=
"4dp"
android:layout_toRightOf=
"@id/button_layout">
<com.google.android.material.card.MaterialCardView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
app:cardBackgroundColor=
"@color/voice_recorder_counter_background"
app:cardCornerRadius=
"8dp"
app:cardElevation=
"0dp"
app:cardMaxElevation=
"0dp"
app:cardUseCompatPadding=
"true"
app:contentPaddingBottom=
"4dp"
app:contentPaddingLeft=
"2dp"
app:contentPaddingRight=
"2dp"
app:contentPaddingTop=
"2dp"
app:strokeWidth=
"0dp">
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
android:paddingHorizontal=
"@dimen/grid_unit_x1">
<TextView
android:
id=
"@+id/timer_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_marginHorizontal=
"@dimen/grid_unit_x0_5"
android:textColor=
"?attr/colorOnBackground"
android:textSize=
"22sp"
tools:text=
"00:00" />
<ImageView
android:
id=
"@+id/recording_or_playing_indicator"
style=
"@android:style/Widget.Holo.Light.Button.Borderless.Small"
android:layout_width=
"20dp"
android:layout_height=
"20dp"
android:layout_gravity=
"center_vertical"
android:clickable=
"false"
android:contentDescription=
"@string/recording"
android:drawablePadding=
"0dip"
android:focusable=
"false"
android:scaleType=
"centerInside"
android:visibility=
"gone"
app:srcCompat=
"@drawable/ic_record"
tools:visibility=
"visible" />
</LinearLayout>
</com.google.android.material.card.MaterialCardView>
</FrameLayout>
<ImageView
android:
id=
"@+id/bluetooth_toggle"
style=
"?android:attr/borderlessButtonStyle"
android:layout_width=
"40dp"
android:layout_height=
"40dp"
android:layout_centerVertical=
"true"
android:layout_toRightOf=
"@id/timer_container"
android:background=
"@drawable/selector_compose_button"
android:clickable=
"true"
android:contentDescription=
"Bluetooth"
android:focusable=
"true"
android:scaleType=
"centerInside"
android:visibility=
"invisible"
app:srcCompat=
"@drawable/ic_bluetooth_searching_24dp"
app:tint=
"?attr/colorOnSurface"
tools:visibility=
"visible" />
<com.google.android.material.button.MaterialButton
android:
id=
"@+id/send_button"
style=
"@style/Threema.MaterialButton.Icon.Circle.Filled.Small"
android:layout_width=
"40dp"
android:layout_height=
"40dp"
android:layout_alignParentRight=
"true"
android:layout_centerVertical=
"true"
android:layout_marginRight=
"8dp"
android:clickable=
"true"
android:contentDescription=
"@string/send"
android:focusable=
"true"
android:scaleType=
"centerInside"
app:icon=
"@drawable/ic_send_grey600_24dp" />
</RelativeLayout>
</LinearLayout>
</androidx.coordinatorlayout.widget.CoordinatorLayout>