summaryrefslogtreecommitdiffstats
path: root/android/xscreensaver/res/layout/activity_tv_xscreensaver.xml
blob: 4c658bd55202898a74bc26de2e3988005e765daf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?xml version="1.0" encoding="utf-8"?>
<!-- TODO: Flip layout orientation on rotation. And maybe make scrollable? -->
<!-- TODO: Remove action bar; it's redundant. -->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    tools:context="org.jwz.xscreensaver.TVActivity">
    <LinearLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerHorizontal="true"
        android:layout_centerVertical="true"
        android:orientation="vertical">
        <ImageView
            android:layout_width="256sp"
            android:layout_height="256sp"
            android:layout_centerHorizontal="true"
            android:src="@drawable/thumbnail" />
        <!-- TODO: Version number! -->
        <TextView
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:gravity="center"
            android:text="XScreenSaver"
            android:textSize="32sp" />
        <!-- TODO: Either figure out how to open daydream settings directly on
             Android TV, or change this to say "Open Settings". -->
        <Button
            android:id="@+id/apply_daydream"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:text="Open Daydream list" />
        <TextView
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:autoLink="web"
            android:gravity="center"
            android:text="https://www.jwz.org/xscreensaver/" />
    </LinearLayout>
</RelativeLayout>