updating the recording file foreground

This commit is contained in:
tibbi
2023-06-20 23:02:21 +02:00
parent db93ee70eb
commit ec72b005fd
3 changed files with 6 additions and 8 deletions

View File

@ -63,7 +63,7 @@ android {
} }
dependencies { dependencies {
implementation 'com.github.SimpleMobileTools:Simple-Commons:79c7cde543' implementation 'com.github.SimpleMobileTools:Simple-Commons:b9309035a9'
implementation 'org.greenrobot:eventbus:3.3.1' implementation 'org.greenrobot:eventbus:3.3.1'
implementation 'com.github.Armen101:AudioRecordView:1.0.4' implementation 'com.github.Armen101:AudioRecordView:1.0.4'
implementation 'androidx.documentfile:documentfile:1.0.1' implementation 'androidx.documentfile:documentfile:1.0.1'

View File

@ -219,6 +219,7 @@ class RecordingsAdapter(
private fun setupView(view: View, recording: Recording) { private fun setupView(view: View, recording: Recording) {
view.apply { view.apply {
setupViewBackground(activity)
recording_frame?.isSelected = selectedKeys.contains(recording.id) recording_frame?.isSelected = selectedKeys.contains(recording.id)
arrayListOf<TextView>(recording_title, recording_date, recording_duration, recording_size).forEach { arrayListOf<TextView>(recording_title, recording_date, recording_duration, recording_size).forEach {

View File

@ -4,18 +4,15 @@
android:id="@+id/recording_frame" android:id="@+id/recording_frame"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/selectableItemBackground" android:layout_marginBottom="@dimen/tiny_margin">
android:clickable="true"
android:focusable="true"
android:foreground="@drawable/selector">
<RelativeLayout <RelativeLayout
android:id="@+id/item_holder" android:id="@+id/item_holder"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingTop="15dp" android:paddingStart="@dimen/activity_margin"
android:paddingBottom="15dp" android:paddingTop="@dimen/activity_margin"
android:paddingStart="@dimen/activity_margin"> android:paddingBottom="@dimen/activity_margin">
<TextView <TextView
android:id="@+id/recording_title" android:id="@+id/recording_title"