Fix scroll issue

This commit is contained in:
Niels Andriesse 2019-07-24 16:47:59 +10:00
parent 6eb00ceb5c
commit 16c89178f2
3 changed files with 40 additions and 30 deletions

View File

@ -45,6 +45,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="50dp" android:layout_height="50dp"
android:layout_marginTop="20dp" android:layout_marginTop="20dp"
android:layout_marginBottom="40dp"
android:layout_gravity="center_horizontal" android:layout_gravity="center_horizontal"
android:background="@color/signal_primary" android:background="@color/signal_primary"
android:textColor="@color/white" android:textColor="@color/white"

View File

@ -91,6 +91,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="50dp" android:layout_height="50dp"
android:layout_marginTop="20dp" android:layout_marginTop="20dp"
android:layout_marginBottom="40dp"
android:layout_gravity="center_horizontal" android:layout_gravity="center_horizontal"
android:background="@color/signal_primary" android:background="@color/signal_primary"
android:textColor="@color/white" android:textColor="@color/white"

View File

@ -1,40 +1,48 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout <ScrollView
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_marginStart="32dp" android:fillViewport="true">
android:layout_marginEnd="32dp"
android:orientation="vertical">
<org.thoughtcrime.securesms.components.LabeledEditText <LinearLayout
android:id="@+id/publicKeyEditText"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:layout_marginTop="32dp" android:layout_marginStart="32dp"
app:labeledEditText_label="@string/activity_new_conversation_public_key_edit_text_label"/> android:layout_marginEnd="32dp"
android:orientation="vertical">
<TextView <org.thoughtcrime.securesms.components.LabeledEditText
android:id="@+id/explanationTextView" android:id="@+id/publicKeyEditText"
style="@style/Signal.Text.Body" android:layout_width="match_parent"
android:layout_width="match_parent" android:layout_height="wrap_content"
android:layout_height="wrap_content" android:layout_marginTop="32dp"
android:layout_marginTop="24dp" app:labeledEditText_label="@string/activity_new_conversation_public_key_edit_text_label"/>
android:text="@string/activity_new_conversation_public_key_explanation" />
<com.dd.CircularProgressButton <TextView
android:id="@+id/nextButton" android:id="@+id/explanationTextView"
android:layout_width="match_parent" style="@style/Signal.Text.Body"
android:layout_height="50dp" android:layout_width="match_parent"
android:layout_marginTop="24dp" android:layout_height="wrap_content"
android:layout_gravity="center_horizontal" android:layout_marginTop="24dp"
android:background="@color/signal_primary" android:text="@string/activity_new_conversation_public_key_explanation" />
android:textColor="@color/white"
app:cpb_colorIndicator="@color/white"
app:cpb_colorProgress="@color/textsecure_primary"
app:cpb_cornerRadius="4dp"
app:cpb_selectorIdle="@drawable/progress_button_state"
app:cpb_textIdle="@string/activity_new_conversation_button_title" />
</LinearLayout> <com.dd.CircularProgressButton
android:id="@+id/nextButton"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_marginTop="24dp"
android:layout_marginBottom="32dp"
android:layout_gravity="center_horizontal"
android:background="@color/signal_primary"
android:textColor="@color/white"
app:cpb_colorIndicator="@color/white"
app:cpb_colorProgress="@color/textsecure_primary"
app:cpb_cornerRadius="4dp"
app:cpb_selectorIdle="@drawable/progress_button_state"
app:cpb_textIdle="@string/activity_new_conversation_button_title" />
</LinearLayout>
</ScrollView>