Как ограничить размер activity Android?
Реализовываю подсказку пользователю, которому необходимо найти приложение, и предоставить доступ. При запуске активности настроек следом запускаю активность с подсказкой. Она отображается, но скролить список нельзя. То есть активность хоть и прозрачная и находиться внизу, но покрывает весь экран.
Вопрос: как можно ограничить размер активности?
Так определена активность в манифесте.
<activity
android:name=".SettingsHelperActivity"
android:theme="@style/TransparentHelper"
android:windowSoftInputMode="stateHidden|stateAlwaysHidden" />
Стиль
<style name="TransparentHelper" parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowBackground">@android:color/holo_blue_dark</item>
<item name="android:windowNoTitle">true</item>
<item name="android:backgroundDimEnabled">false</item>
</style>
Макет
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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:layout_width="match_parent"
android:layout_height="80dp"
android:maxHeight="80dp"
android:background="@color/colorWhite"
android:layout_gravity="bottom"
tools:context=".SettingsHelperActivity">
<TextView
android:id="@+id/helper_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="ПОДСКАЗКА"
android:textColor="@color/colorBlack"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
