Created
January 26, 2020 13:10
-
-
Save ssindher11/a7cd9ad28992cc58553ceca0a58895ce to your computer and use it in GitHub Desktop.
Layout file for the send key activity of the Chirp Tutorial app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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:id="@+id/container_send_key" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:background="@color/colorPrimaryDark" | |
tools:context=".activity.SendActivity"> | |
<TextView | |
android:id="@+id/textView" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_marginStart="24dp" | |
android:layout_marginTop="32dp" | |
android:text="@string/send_key" | |
android:textColor="@color/textColor" | |
android:textSize="40sp" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toTopOf="parent" /> | |
<com.google.android.material.textfield.TextInputLayout | |
android:id="@+id/textInputLayout" | |
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox" | |
android:layout_width="0dp" | |
android:layout_height="wrap_content" | |
android:layout_marginStart="32dp" | |
android:layout_marginEnd="32dp" | |
android:layout_marginBottom="8dp" | |
android:hint="@string/key" | |
android:textColorHint="@android:color/white" | |
app:boxStrokeColor="@color/colorAccent" | |
app:boxStrokeWidth="2dp" | |
app:layout_constraintBottom_toBottomOf="parent" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toBottomOf="@+id/textView" | |
app:layout_constraintVertical_bias="0.4"> | |
<com.google.android.material.textfield.TextInputEditText | |
android:id="@+id/et_key" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:inputType="text" | |
android:paddingStart="24dp" | |
android:paddingEnd="24dp" | |
android:textColorHint="@android:color/white" | |
android:textColor="@color/colorAccent" /> | |
</com.google.android.material.textfield.TextInputLayout> | |
<com.google.android.material.button.MaterialButton | |
android:id="@+id/btn_send_key" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_gravity="center" | |
android:layout_marginTop="64dp" | |
android:backgroundTint="@color/colorAccent" | |
android:paddingStart="64dp" | |
android:paddingTop="12dp" | |
android:paddingEnd="64dp" | |
android:paddingBottom="12dp" | |
android:text="@string/send" | |
android:textColor="@color/colorPrimaryDark" | |
app:layout_constraintEnd_toEndOf="@+id/textInputLayout" | |
app:layout_constraintStart_toStartOf="@+id/textInputLayout" | |
app:layout_constraintTop_toBottomOf="@+id/textInputLayout" /> | |
</androidx.constraintlayout.widget.ConstraintLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment