Reorganized the layout of the sample app
This commit is contained in:
parent
8ed74dbaed
commit
8c5d48f71d
1 changed files with 54 additions and 26 deletions
|
@ -5,36 +5,65 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
tools:context="cy.agorise.labs.sample.MainActivity">
|
tools:context="cy.agorise.labs.sample.MainActivity">
|
||||||
|
<ScrollView
|
||||||
<Button
|
android:id="@+id/output_text_container"
|
||||||
android:id="@+id/call_get_block"
|
android:layout_width="0dp"
|
||||||
android:layout_width="wrap_content"
|
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:layout_height="wrap_content"
|
||||||
android:text="Get block"
|
android:orientation="horizontal"
|
||||||
app:layout_constraintBottom_toTopOf="@+id/call_get_accounts"
|
android:gravity="center"
|
||||||
|
app:layout_constraintBottom_toTopOf="@+id/container_get_block_call"
|
||||||
app:layout_constraintLeft_toLeftOf="parent"
|
app:layout_constraintLeft_toLeftOf="parent"
|
||||||
app:layout_constraintRight_toRightOf="parent"
|
app:layout_constraintRight_toRightOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent" />
|
app:layout_constraintTop_toBottomOf="@id/output_text_container">
|
||||||
|
<Button
|
||||||
<Button
|
android:id="@+id/call_get_accounts"
|
||||||
android:id="@+id/call_get_accounts"
|
android:layout_width="wrap_content"
|
||||||
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:layout_height="wrap_content"
|
||||||
android:text="Get accounts"
|
android:orientation="horizontal"
|
||||||
app:layout_constraintBottom_toTopOf="@+id/response"
|
android:gravity="center"
|
||||||
|
app:layout_constraintBottom_toTopOf="@+id/next_activity"
|
||||||
app:layout_constraintLeft_toLeftOf="parent"
|
app:layout_constraintLeft_toLeftOf="parent"
|
||||||
app:layout_constraintRight_toRightOf="parent"
|
app:layout_constraintRight_toRightOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@id/call_get_block" />
|
app:layout_constraintTop_toBottomOf="@id/container_get_accounts_call">
|
||||||
|
<Button
|
||||||
<TextView
|
android:id="@+id/call_get_block"
|
||||||
android:id="@+id/response"
|
android:layout_width="wrap_content"
|
||||||
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
||||||
android:layout_height="200dp"
|
android:text="Get block"/>
|
||||||
app:layout_constraintLeft_toLeftOf="parent"
|
<EditText
|
||||||
app:layout_constraintRight_toRightOf="parent"
|
android:id="@+id/argument_get_block"
|
||||||
app:layout_constraintTop_toBottomOf="@id/call_get_block"
|
android:layout_width="wrap_content"
|
||||||
app:layout_constraintBottom_toTopOf="@+id/next_activity"/>
|
android:layout_height="wrap_content"
|
||||||
|
android:text="100000"/>
|
||||||
|
</LinearLayout>
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/next_activity"
|
android:id="@+id/next_activity"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
@ -43,8 +72,7 @@
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintLeft_toLeftOf="parent"
|
app:layout_constraintLeft_toLeftOf="parent"
|
||||||
app:layout_constraintRight_toRightOf="parent"
|
app:layout_constraintRight_toRightOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@id/response" />
|
app:layout_constraintTop_toBottomOf="@id/container_get_block_call" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/connection_status"
|
android:id="@+id/connection_status"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
|
Loading…
Reference in a new issue