mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-18 13:49:53 +01:00
Make 'Add a Contact' screen scrollable when keyboard is open
This commit is contained in:
@@ -1,10 +1,15 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<android.support.constraint.ConstraintLayout
|
<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"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
|
android:fillViewport="true">
|
||||||
|
|
||||||
|
<android.support.constraint.ConstraintLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
android:padding="@dimen/margin_large">
|
android:padding="@dimen/margin_large">
|
||||||
|
|
||||||
<EditText
|
<EditText
|
||||||
@@ -63,20 +68,20 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:drawableLeft="@drawable/ic_qr_code"
|
android:drawableLeft="@drawable/ic_qr_code"
|
||||||
android:drawablePadding="8dp"
|
android:drawablePadding="8dp"
|
||||||
|
android:drawableStart="@drawable/ic_qr_code"
|
||||||
android:text="@string/scan_qr_code_button"
|
android:text="@string/scan_qr_code_button"
|
||||||
|
android:visibility="gone"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintHorizontal_bias="0.5"
|
app:layout_constraintHorizontal_bias="0.5"
|
||||||
app:layout_constraintStart_toEndOf="@id/pasteButton"
|
app:layout_constraintStart_toEndOf="@id/pasteButton"
|
||||||
app:layout_constraintTop_toBottomOf="@id/linkInput"
|
app:layout_constraintTop_toBottomOf="@id/linkInput"/>
|
||||||
android:drawableStart="@drawable/ic_qr_code"
|
|
||||||
android:visibility="gone"/>
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/linkIntro"
|
android:id="@+id/linkIntro"
|
||||||
android:gravity="center"
|
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="@dimen/margin_xlarge"
|
android:layout_marginTop="@dimen/margin_xlarge"
|
||||||
|
android:gravity="center"
|
||||||
android:text="@string/send_link_instructions"
|
android:text="@string/send_link_instructions"
|
||||||
android:textIsSelectable="true"
|
android:textIsSelectable="true"
|
||||||
android:textSize="18sp"
|
android:textSize="18sp"
|
||||||
@@ -142,12 +147,12 @@
|
|||||||
android:drawableStart="@drawable/ic_qr_code"
|
android:drawableStart="@drawable/ic_qr_code"
|
||||||
android:drawableTint="@color/briar_button_text_positive"
|
android:drawableTint="@color/briar_button_text_positive"
|
||||||
android:text="@string/show_qr_code_button"
|
android:text="@string/show_qr_code_button"
|
||||||
|
android:visibility="gone"
|
||||||
app:layout_constraintBottom_toBottomOf="@id/copyButton"
|
app:layout_constraintBottom_toBottomOf="@id/copyButton"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintHorizontal_bias="0.5"
|
app:layout_constraintHorizontal_bias="0.5"
|
||||||
app:layout_constraintStart_toEndOf="@id/shareButton"
|
app:layout_constraintStart_toEndOf="@id/shareButton"
|
||||||
app:layout_constraintTop_toTopOf="@id/copyButton"
|
app:layout_constraintTop_toTopOf="@id/copyButton"/>
|
||||||
android:visibility="gone"/>
|
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/addButton"
|
android:id="@+id/addButton"
|
||||||
@@ -164,3 +169,4 @@
|
|||||||
tools:enabled="true"/>
|
tools:enabled="true"/>
|
||||||
|
|
||||||
</android.support.constraint.ConstraintLayout>
|
</android.support.constraint.ConstraintLayout>
|
||||||
|
</ScrollView>
|
||||||
Reference in New Issue
Block a user