1
0
mirror of http://galexander.org/git/simplesshd.git synced 2024-11-30 19:28:10 +00:00

styled the option buttons so that it's easier to change them

This commit is contained in:
Greg Alexander 2019-09-21 16:35:03 -04:00
parent 42c88f330e
commit 213a5808e3
2 changed files with 15 additions and 25 deletions

View File

@ -48,39 +48,19 @@
android:layout_width="1dp" android:layout_width="1dp"
android:layout_weight="1" android:layout_weight="1"
android:layout_height="fill_parent"> android:layout_height="fill_parent">
<Button <Button style="@style/option_button" android:id="@+id/option1"
android:layout_width="fill_parent"
android:layout_height="1dp"
android:layout_weight="1"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="Settings" android:text="Settings"
android:onClick="settings_clicked" /> android:onClick="settings_clicked" />
<Button <Button style="@style/option_button" android:id="@+id/option2"
android:layout_width="fill_parent"
android:layout_height="1dp"
android:layout_weight="1"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="Copy App-private Path" android:text="Copy App-private Path"
android:onClick="copypriv_clicked" /> android:onClick="copypriv_clicked" />
<Button <Button style="@style/option_button" android:id="@+id/option3"
android:layout_width="fill_parent"
android:layout_height="1dp"
android:layout_weight="1"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="Reset Keys" android:text="Reset Keys"
android:onClick="resetkeys_clicked" /> android:onClick="resetkeys_clicked" />
<Button <Button style="@style/option_button" android:id="@+id/option4"
android:layout_width="fill_parent"
android:layout_height="1dp"
android:layout_weight="1"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="Documentation" android:text="Documentation"
android:onClick="doc_clicked" /> android:onClick="doc_clicked" />
<Button <Button style="@style/option_button" android:id="@+id/option5"
android:layout_width="fill_parent"
android:layout_height="1dp"
android:layout_weight="1"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="About" android:text="About"
android:onClick="about_clicked" /> android:onClick="about_clicked" />
</LinearLayout> </LinearLayout>

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="option_button" parent="TextAppearance.Leanback">
<item name="android:textAllCaps">false</item>
<item name="android:textSize">20sp</item>
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">1dp</item>
<item name="android:layout_weight">1</item>
</style>
</resources>