Style for eula and license button

This commit is contained in:
Bennet Brunsen
2015-12-07 15:01:09 +01:00
parent 52272e2919
commit 491207fef4
2 changed files with 34 additions and 12 deletions
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_width="match_parent"
android:layout_height="match_parent">
<View
android:id="@+id/center_anchor"
@@ -10,20 +10,36 @@
android:layout_centerInParent="true"
/>
<Button
<com.sap.sailing.android.shared.ui.customviews.OpenSansButton
android:id="@+id/licence_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/licence_information"
android:layout_width="match_parent"
android:layout_height="@dimen/about_button_height"
android:layout_above="@id/center_anchor"
android:layout_centerHorizontal="true"/>
android:layout_centerHorizontal="true"
android:layout_marginBottom="@dimen/about_button_top_bottom_margin"
android:layout_marginLeft="@dimen/about_button_side_margin"
android:layout_marginRight="@dimen/about_button_side_margin"
android:layout_marginTop="@dimen/about_button_top_bottom_margin"
android:background="@drawable/rounded_btn_yellow"
android:text="@string/licence_information"
android:textAllCaps="false"
android:textSize="@dimen/about_button_text_size"
android:textStyle="bold"/>
<Button
<com.sap.sailing.android.shared.ui.customviews.OpenSansButton
android:id="@+id/eula_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/eula"
android:layout_width="match_parent"
android:layout_height="@dimen/about_button_height"
android:layout_below="@id/center_anchor"
android:layout_centerHorizontal="true"/>
android:layout_centerHorizontal="true"
android:layout_marginBottom="@dimen/about_button_top_bottom_margin"
android:layout_marginLeft="@dimen/about_button_side_margin"
android:layout_marginRight="@dimen/about_button_side_margin"
android:layout_marginTop="@dimen/about_button_top_bottom_margin"
android:background="@drawable/rounded_btn_yellow"
android:text="@string/eula"
android:textAllCaps="false"
android:textSize="@dimen/about_button_text_size"
android:textStyle="bold"/>
</RelativeLayout>
@@ -24,4 +24,10 @@
<!-- Default screen margins, per the Android Design guidelines. -->
<dimen name="activity_horizontal_margin">16dp</dimen>
<!-- Values for buttons -->
<dimen name="about_button_top_bottom_margin">10dp</dimen>
<dimen name="about_button_side_margin">16dp</dimen>
<dimen name="about_button_height">80dp</dimen>
<dimen name="about_button_text_size">18sp</dimen>
</resources>