player.xml 5.71 KB
Newer Older
Michael Merg's avatar
Michael Merg committed
1
<?xml version="1.0" encoding="utf-8"?>
2 3 4
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent" >
5

Sébastien Toque's avatar
Sébastien Toque committed
6
    <SurfaceView
7 8 9 10 11 12 13
        android:id="@+id/player_surface"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center" />

    <TextView
        android:id="@+id/player_overlay_info"
Sébastien Toque's avatar
Sébastien Toque committed
14 15 16
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
17 18
        android:background="@drawable/video_list_length_bg"
        android:padding="5dp"
19
        android:textColor="#ffffff"
20
        android:textSize="36dp"
21 22
        android:visibility="invisible" />

23 24 25 26 27 28 29 30 31 32 33 34 35
    <LinearLayout
        android:id="@+id/player_overlay_header"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="top"
        android:background="#AA000000"
        android:paddingLeft="5dp"
        android:paddingRight="5dp"
        android:visibility="invisible" >

        <TextView
            android:id="@+id/player_overlay_title"
            android:layout_width="0dp"
36
            android:layout_height="fill_parent"
37 38 39 40 41 42
            android:layout_weight="1"
            android:gravity="left|center_vertical"
            android:text="@string/title"
            android:textColor="#ffffff"
            android:textSize="15dip" />

43 44 45 46 47 48 49 50 51
        <ImageButton
            android:id="@+id/player_overlay_audio"
            android:layout_width="40dp"
            android:layout_height="40dp"
            android:layout_marginLeft="10dp"
            android:layout_marginRight="10dp"
            android:background="@drawable/header_icon_audio" />

        <LinearLayout
52 53
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
            android:orientation="vertical" >

            <TextView
                android:id="@+id/player_overlay_systime"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="right|center_vertical"
                android:textColor="#ffffff"
                android:textSize="15dip" />

            <TextView
                android:id="@+id/player_overlay_battery"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="right|center_vertical"
                android:textColor="#ffffff"
                android:textSize="15dip" />
        </LinearLayout>
72 73
    </LinearLayout>

74 75
    <RelativeLayout
        android:id="@+id/player_overlay"
Sébastien Toque's avatar
Sébastien Toque committed
76
        android:layout_width="fill_parent"
77 78 79 80 81 82 83
        android:layout_height="wrap_content"
        android:layout_gravity="bottom"
        android:background="#AA000000"
        android:paddingLeft="5dp"
        android:paddingRight="5dp"
        android:visibility="invisible" >

Sébastien Toque's avatar
Sébastien Toque committed
84
        <TextView
85 86 87 88 89 90 91 92
            android:id="@+id/player_overlay_time"
            android:layout_width="60dp"
            android:layout_height="wrap_content"
            android:layout_alignBottom="@+id/player_overlay_seekbar"
            android:layout_alignParentLeft="true"
            android:layout_alignTop="@+id/player_overlay_seekbar"
            android:gravity="left|center_vertical"
            android:text="@string/time_0"
Sébastien Toque's avatar
Sébastien Toque committed
93
            android:textColor="#ffffff"
94 95 96 97
            android:textSize="15dip" />

        <SeekBar
            android:id="@+id/player_overlay_seekbar"
Sébastien Toque's avatar
Sébastien Toque committed
98
            android:layout_width="fill_parent"
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
            android:layout_height="wrap_content"
            android:layout_centerHorizontal="true"
            android:maxHeight="4dip"
            android:minHeight="4dip"
            android:paddingLeft="60dp"
            android:paddingRight="60dp"
            android:progressDrawable="@drawable/po_seekbar"
            android:thumb="@drawable/ic_seekbar_thumb" />

        <TextView
            android:id="@+id/player_overlay_length"
            android:layout_width="60dp"
            android:layout_height="wrap_content"
            android:layout_alignBottom="@+id/player_overlay_seekbar"
            android:layout_alignParentRight="true"
            android:layout_alignTop="@+id/player_overlay_seekbar"
            android:gravity="right|center_vertical"
            android:text="@string/time_0"
            android:textColor="#ffffff"
            android:textSize="15dip" />

120 121 122 123 124 125 126 127 128 129 130 131 132 133 134
        <SeekBar
            android:id="@+id/player_overlay_wheelbar"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_below="@+id/player_overlay_seekbar"
            android:layout_marginLeft="60dp"
            android:layout_marginRight="60dp"
            android:clickable="false"
            android:focusable="false"
            android:maxHeight="5dp"
            android:minHeight="5dp"
            android:progressDrawable="@drawable/wheel_background"
            android:thumb="@drawable/wheel_pause"
            android:thumbOffset="0px" />

135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151
        <ImageButton
            android:id="@+id/player_overlay_size"
            android:layout_width="50dip"
            android:layout_height="50dip"
            android:layout_alignParentLeft="true"
            android:layout_below="@+id/player_overlay_seekbar"
            android:background="@drawable/ic_size" />

        <ImageButton
            android:id="@+id/player_overlay_lock"
            android:layout_width="50dip"
            android:layout_height="50dip"
            android:layout_alignParentRight="true"
            android:layout_below="@+id/player_overlay_seekbar"
            android:background="@drawable/ic_lock" />
    </RelativeLayout>

152
</FrameLayout>