crystal-wallet-android/app/src/main/res/layout/activity_create_contact.xml

89 lines
3.6 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
2018-07-12 15:32:01 +00:00
<android.support.constraint.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="match_parent"
2018-07-12 15:32:01 +00:00
android:focusableInTouchMode="true"
android:paddingTop="@dimen/activity_vertical_margin">
2018-07-12 15:32:01 +00:00
<android.support.design.widget.TextInputLayout
android:id="@+id/tilName"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2018-07-12 15:32:01 +00:00
android:layout_marginStart="@dimen/activity_horizontal_margin"
android:layout_marginEnd="@dimen/activity_horizontal_margin">
2018-07-12 15:32:01 +00:00
<android.support.design.widget.TextInputEditText
android:id="@+id/tietName"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2018-07-12 15:32:01 +00:00
android:hint="Contact Name"
android:inputType="textPersonName"
android:maxLines="1"/>
2018-07-12 15:32:01 +00:00
</android.support.design.widget.TextInputLayout>
2018-07-12 15:32:01 +00:00
<Button
android:id="@+id/btnAddAddress"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/spacing_different_topic"
android:text="@string/add"
android:textStyle="bold"
style="@style/Widget.AppCompat.Button.Borderless.Colored"
app:layout_constraintTop_toBottomOf="@id/tilName"
app:layout_constraintEnd_toEndOf="parent"/>
2018-07-12 15:32:01 +00:00
<TextView
android:id="@+id/tvCryptoAddresses"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginStart="@dimen/activity_horizontal_margin"
android:text="Crypto addresses"
android:textAppearance="@style/TextAppearance.Body1"
android:textStyle="bold"
app:layout_constraintTop_toTopOf="@id/btnAddAddress"
app:layout_constraintStart_toStartOf="parent"/>
2018-07-12 15:32:01 +00:00
<android.support.v7.widget.RecyclerView
android:id="@+id/rvContactAddresses"
android:layout_width="match_parent"
2018-07-12 15:32:01 +00:00
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/activity_horizontal_margin"
android:layout_marginEnd="@dimen/activity_horizontal_margin"
app:layout_constraintTop_toBottomOf="@id/btnAddAddress"
tools:listitem="@layout/contact_address_list_item"
tools:itemCount="1"/>
2018-07-12 15:32:01 +00:00
<Button
android:id="@+id/btnCancel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/spacing_different_section"
android:layout_marginStart="@dimen/activity_horizontal_margin"
android:theme="@style/RedButton"
android:text="@string/cancel"
app:layout_constraintTop_toBottomOf="@id/rvContactAddresses"
app:layout_constraintStart_toStartOf="parent"/>
2018-07-12 15:32:01 +00:00
<Button
android:id="@+id/btnCreate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/activity_horizontal_margin"
android:theme="@style/BlueButton"
android:text="Create"
app:layout_constraintTop_toTopOf="@id/btnCancel"
app:layout_constraintEnd_toEndOf="parent"/>
2018-07-12 15:32:01 +00:00
<cy.agorise.crystalwallet.util.BottomStatusBar
android:id="@+id/bottomStatusBar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintBottom_toBottomOf="parent"/>
2018-07-12 15:32:01 +00:00
</android.support.constraint.ConstraintLayout>