improve UI buttons

This commit is contained in:
Andrea Franz 2018-09-10 15:57:46 +02:00
parent 4309ef5792
commit 3bc62e8e49
No known key found for this signature in database
GPG Key ID: 4F0D2F2D9DE7F29D
1 changed files with 23 additions and 25 deletions

View File

@ -7,35 +7,33 @@
android:orientation="vertical" android:orientation="vertical"
tools:context=".MainActivity"> tools:context=".MainActivity">
<TextView <ScrollView
android:id="@+id/textView" android:id="@+id/textViewScroll"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="0dp"
android:layout_weight="1" android:layout_weight="1">
android:text="\n"
android:scrollbars="vertical"
android:padding="10dp"
android:gravity="bottom"
android:textIsSelectable="true" />
<TextView
android:id="@+id/textView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:paddingBottom="30dp"
android:text="\n"
android:textIsSelectable="true" />
</ScrollView>
<Button <Button
android:id="@+id/buttonInstall" android:id="@+id/buttonInstall"
android:layout_width="wrap_content" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="install" android:text="Install" />
app:layout_constraintStart_toStartOf="parent"
android:layout_marginStart="8dp" app:layout_constraintEnd_toStartOf="@+id/buttonPerfTest"
android:layout_marginEnd="8dp" android:layout_marginTop="8dp"
app:layout_constraintTop_toBottomOf="@+id/textView" app:layout_constraintBottom_toBottomOf="parent"
android:layout_marginBottom="8dp" app:layout_constraintHorizontal_bias="0.292"
app:layout_constraintVertical_bias="0.512"/>
<Button <Button
android:text="PerfTest" android:id="@+id/buttonPerfTest"
android:layout_width="wrap_content" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:id="@+id/buttonPerfTest" app:layout_constraintEnd_toEndOf="parent" android:layout_marginEnd="52dp" android:text="Perf Test" />
android:layout_marginBottom="8dp" app:layout_constraintBottom_toBottomOf="parent"
android:layout_marginTop="8dp" app:layout_constraintTop_toBottomOf="@+id/textView"
app:layout_constraintVertical_bias="0.512"/>
</LinearLayout> </LinearLayout>