Reorganized the layout of the sample app

This commit is contained in:
Nelson R. Perez 2018-06-11 15:13:09 -05:00
parent 8ed74dbaed
commit 8c5d48f71d

View file

@ -5,36 +5,65 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="cy.agorise.labs.sample.MainActivity">
<Button
android:id="@+id/call_get_block"
android:layout_width="wrap_content"
<ScrollView
android:id="@+id/output_text_container"
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintBottom_toTopOf="@+id/container_get_accounts_call"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent">
<TextView
android:id="@+id/response"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</ScrollView>
<LinearLayout
android:id="@+id/container_get_accounts_call"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:text="Get block"
app:layout_constraintBottom_toTopOf="@+id/call_get_accounts"
android:orientation="horizontal"
android:gravity="center"
app:layout_constraintBottom_toTopOf="@+id/container_get_block_call"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<Button
android:id="@+id/call_get_accounts"
android:layout_width="wrap_content"
app:layout_constraintTop_toBottomOf="@id/output_text_container">
<Button
android:id="@+id/call_get_accounts"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Get accounts"
app:layout_constraintBottom_toTopOf="@+id/next_activity"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@id/container_get_block_call" />
<EditText
android:id="@+id/argument_get_accounts"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="1.2.139205"/>
</LinearLayout>
<LinearLayout
android:id="@+id/container_get_block_call"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:text="Get accounts"
app:layout_constraintBottom_toTopOf="@+id/response"
android:orientation="horizontal"
android:gravity="center"
app:layout_constraintBottom_toTopOf="@+id/next_activity"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@id/call_get_block" />
<TextView
android:id="@+id/response"
android:layout_width="match_parent"
android:layout_height="200dp"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@id/call_get_block"
app:layout_constraintBottom_toTopOf="@+id/next_activity"/>
app:layout_constraintTop_toBottomOf="@id/container_get_accounts_call">
<Button
android:id="@+id/call_get_block"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Get block"/>
<EditText
android:id="@+id/argument_get_block"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="100000"/>
</LinearLayout>
<Button
android:id="@+id/next_activity"
android:layout_width="wrap_content"
@ -43,8 +72,7 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@id/response" />
app:layout_constraintTop_toBottomOf="@id/container_get_block_call" />
<TextView
android:id="@+id/connection_status"
android:layout_width="match_parent"