skyline/app/src/main/res/layout/license_dialog.xml
◱ PixelyIon 41ddaf7f33 Add in Licenses to Settings
This commit adds in all the licenses to the end of settings by introducing a new type of preference: "LicensePreference"
2020-04-23 22:26:27 +05:30

36 lines
1.3 KiB
XML

<?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="wrap_content"
android:paddingTop="10dp">
<TextView
android:id="@+id/license_url"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:autoLink="web"
android:textAlignment="center"
android:textAppearance="@style/TextAppearance.AppCompat.Body2"
android:textSize="15sp" />
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/license_url"
android:layout_alignStart="@id/license_url"
android:layout_marginTop="10dp"
android:background="@color/cardview_dark_background">
<TextView
android:id="@+id/license_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="monospace"
android:padding="10dp"
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
android:textColor="@android:color/tertiary_text_light" />
</ScrollView>
</RelativeLayout>