Made template scrollable

This commit is contained in:
M66B 2020-11-03 09:39:27 +01:00
parent 150e7d5669
commit 7251d3178c
2 changed files with 106 additions and 91 deletions

View File

@ -144,6 +144,7 @@ public class FragmentAnswer extends FragmentBase {
// Initialize // Initialize
grpReady.setVisibility(View.GONE); grpReady.setVisibility(View.GONE);
style_bar.setVisibility(View.GONE); style_bar.setVisibility(View.GONE);
bottom_navigation.setVisibility(View.GONE);
pbWait.setVisibility(View.VISIBLE); pbWait.setVisibility(View.VISIBLE);
@ -196,6 +197,7 @@ public class FragmentAnswer extends FragmentBase {
bottom_navigation.findViewById(R.id.action_delete).setVisibility(answer == null ? View.GONE : View.VISIBLE); bottom_navigation.findViewById(R.id.action_delete).setVisibility(answer == null ? View.GONE : View.VISIBLE);
grpReady.setVisibility(View.VISIBLE); grpReady.setVisibility(View.VISIBLE);
bottom_navigation.setVisibility(View.VISIBLE);
} }
@Override @Override

View File

@ -11,6 +11,17 @@
android:layout_height="match_parent" android:layout_height="match_parent"
app:layout_behavior="eu.faircode.email.BehaviorBottomPadding"> app:layout_behavior="eu.faircode.email.BehaviorBottomPadding">
<eu.faircode.email.ScrollViewEx
android:layout_width="match_parent"
android:layout_height="0dp"
app:layout_constraintBottom_toTopOf="@+id/bottom_navigation"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<eu.faircode.email.EditTextPlain <eu.faircode.email.EditTextPlain
android:id="@+id/etName" android:id="@+id/etName"
android:layout_width="0dp" android:layout_width="0dp"
@ -84,7 +95,7 @@
<eu.faircode.email.EditTextCompose <eu.faircode.email.EditTextCompose
android:id="@+id/etText" android:id="@+id/etText"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="0dp" android:layout_height="wrap_content"
android:layout_margin="6dp" android:layout_margin="6dp"
android:background="@null" android:background="@null"
android:fontFamily="monospace" android:fontFamily="monospace"
@ -93,12 +104,20 @@
android:imeOptions="actionDone" android:imeOptions="actionDone"
android:inputType="textCapSentences|textMultiLine|textAutoCorrect" android:inputType="textCapSentences|textMultiLine|textAutoCorrect"
android:isScrollContainer="true" android:isScrollContainer="true"
android:minHeight="120dp"
android:textAppearance="@style/TextAppearance.AppCompat.Small" android:textAppearance="@style/TextAppearance.AppCompat.Small"
app:layout_constraintBottom_toTopOf="@+id/style_bar"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/vSeparator" /> app:layout_constraintTop_toBottomOf="@id/vSeparator" />
<androidx.constraintlayout.widget.Group
android:id="@+id/grpReady"
android:layout_width="0dp"
android:layout_height="0dp"
app:constraint_referenced_ids="etName,etGroup,cbStandard,cbFavorite,cbHide,vSeparator,etText" />
</androidx.constraintlayout.widget.ConstraintLayout>
</eu.faircode.email.ScrollViewEx>
<com.google.android.material.bottomnavigation.BottomNavigationView <com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/style_bar" android:id="@+id/style_bar"
android:layout_width="0dp" android:layout_width="0dp"
@ -135,11 +154,5 @@
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" /> app:layout_constraintTop_toTopOf="parent" />
<androidx.constraintlayout.widget.Group
android:id="@+id/grpReady"
android:layout_width="0dp"
android:layout_height="0dp"
app:constraint_referenced_ids="etName,cbFavorite,cbHide,vSeparator,etText,bottom_navigation" />
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>
</androidx.coordinatorlayout.widget.CoordinatorLayout> </androidx.coordinatorlayout.widget.CoordinatorLayout>