Skip to content

Instantly share code, notes, and snippets.

@eristoddle
Created March 30, 2020 16:23
Show Gist options
  • Save eristoddle/1ef72455242fa68f090c5351a08f4d67 to your computer and use it in GitHub Desktop.
Save eristoddle/1ef72455242fa68f090c5351a08f4d67 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/eula_main">
<LinearLayout
android:id="@+id/header"
android:layout_width="match_parent"
android:layout_height="56dp"
android:orientation="horizontal">
<Button
android:id="@+id/eula_cancel"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:textColor="@color/colorAccent"
android:text="Cancel" />
<TextView
android:id="@+id/header_text"
android:layout_width="wrap_content"
android:layout_height="56dp"
android:layout_weight="2"
android:gravity="center_vertical"
android:textAlignment="center"
android:textSize="15sp"
android:scrollHorizontally="true"
android:ellipsize="end"
android:maxLines="1"
android:text="End User License Agreement"
tools:ignore="RtlCompat,RtlSymmetry" />
<Button
android:id="@+id/eula_confirm"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:textColor="@color/colorAccent"
android:text="Accept" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"/>
<ScrollView android:layout_height="match_parent"
android:layout_width="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/eula_content"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="10dp"/>
</LinearLayout>
</ScrollView>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment