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