diff --git a/app/build.gradle b/app/build.gradle index 13a6939..275f1cd 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -61,4 +61,5 @@ dependencies { implementation 'com.github.Armen101:AudioRecordView:1.0.2' implementation 'androidx.documentfile:documentfile:1.0.1' implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0' + implementation 'androidx.constraintlayout:constraintlayout:2.0.4' } diff --git a/app/src/main/kotlin/com/simplemobiletools/voicerecorder/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/voicerecorder/activities/MainActivity.kt index 0534af0..9b005ee 100644 --- a/app/src/main/kotlin/com/simplemobiletools/voicerecorder/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/voicerecorder/activities/MainActivity.kt @@ -126,7 +126,8 @@ class MainActivity : SimpleActivity() { val faqItems = arrayListOf( FAQItem(R.string.faq_1_title, R.string.faq_1_text), FAQItem(R.string.faq_2_title_commons, R.string.faq_2_text_commons), - FAQItem(R.string.faq_6_title_commons, R.string.faq_6_text_commons) + FAQItem(R.string.faq_6_title_commons, R.string.faq_6_text_commons), + FAQItem(R.string.faq_9_title_commons, R.string.faq_9_text_commons) ) startAboutActivity(R.string.app_name, licenses, BuildConfig.VERSION_NAME, faqItems, true) diff --git a/app/src/main/kotlin/com/simplemobiletools/voicerecorder/fragments/MyViewPagerFragment.kt b/app/src/main/kotlin/com/simplemobiletools/voicerecorder/fragments/MyViewPagerFragment.kt index 86d43e5..c43b518 100644 --- a/app/src/main/kotlin/com/simplemobiletools/voicerecorder/fragments/MyViewPagerFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/voicerecorder/fragments/MyViewPagerFragment.kt @@ -2,9 +2,9 @@ package com.simplemobiletools.voicerecorder.fragments import android.content.Context import android.util.AttributeSet -import android.widget.RelativeLayout +import androidx.constraintlayout.widget.ConstraintLayout -abstract class MyViewPagerFragment(context: Context, attributeSet: AttributeSet) : RelativeLayout(context, attributeSet) { +abstract class MyViewPagerFragment(context: Context, attributeSet: AttributeSet) : ConstraintLayout(context, attributeSet) { abstract fun onResume() abstract fun onDestroy() diff --git a/app/src/main/res/layout/fragment_player.xml b/app/src/main/res/layout/fragment_player.xml index c896330..827ec18 100644 --- a/app/src/main/res/layout/fragment_player.xml +++ b/app/src/main/res/layout/fragment_player.xml @@ -10,7 +10,6 @@ android:id="@+id/recordings_placeholder" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_centerHorizontal="true" android:alpha="0.8" android:gravity="center" android:lineSpacingExtra="@dimen/small_margin" @@ -23,20 +22,21 @@ + app:layoutManager="com.simplemobiletools.commons.views.MyLinearLayoutManager" + app:layout_constraintBottom_toTopOf="@+id/player_controls_wrapper" + app:layout_constraintTop_toTopOf="parent" /> + android:layout_height="0dp" + android:paddingStart="@dimen/normal_margin" + app:layout_constraintBottom_toBottomOf="@+id/recordings_list" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintTop_toTopOf="@+id/recordings_list"> @@ -46,7 +46,8 @@ android:id="@+id/player_controls_wrapper" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_alignParentBottom="true" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintStart_toStartOf="parent" tools:ignore="HardcodedText"> + app:chunkWidth="3dp" + app:layout_constraintBottom_toTopOf="@+id/recording_duration" + app:layout_constraintTop_toTopOf="parent" /> + android:src="@drawable/ic_microphone_vector" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" />