player_hud.xml 4.79 KB
Newer Older
1 2
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 4 5
    android:id="@+id/progress_overlay"
    android:layout_width="800dp"
    android:layout_height="wrap_content"
Geoffrey Métais's avatar
Geoffrey Métais committed
6
    android:layout_centerInParent="@bool/center_hud"
7 8 9 10 11
    android:layout_alignParentBottom="true"
    android:alpha="0.55"
    android:background="@drawable/rounded_corners"
    android:paddingTop="@dimen/overlay_padding_top"
    android:paddingBottom="@dimen/overlay_padding_bottom"
Geoffrey Métais's avatar
Geoffrey Métais committed
12
    android:layout_marginBottom="@dimen/overlay_margin"
Geoffrey Métais's avatar
Geoffrey Métais committed
13 14
    android:layout_marginRight="@dimen/overlay_margin"
    android:layout_marginLeft="@dimen/overlay_margin">
15

16 17 18 19 20 21 22
    <SeekBar
        android:id="@+id/player_overlay_seekbar"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:maxHeight="@dimen/seekbar_height"
        android:minHeight="@dimen/seekbar_height"
        android:layout_alignParentTop="true"
Geoffrey Métais's avatar
Geoffrey Métais committed
23
        android:layout_marginBottom="5dp"
24
        android:progressDrawable="@drawable/po_seekbar"
25 26
        android:thumb="@drawable/seekbar_thumb"
        android:focusable="true"/>
27

28 29 30 31 32 33 34 35 36 37
    <TextView
        android:id="@+id/player_overlay_time"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/player_overlay_seekbar"
        android:layout_marginLeft="@dimen/time_margin_sides"
        android:layout_alignParentLeft="true"
        android:layout_marginBottom="5dp"
        android:textAppearance="@style/TextAppearance.AppCompat.SearchResult.Title"
        android:textColor="@color/darkorange"/>
38

39 40 41 42 43 44 45 46 47
    <TextView
        android:id="@+id/player_overlay_length"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/player_overlay_seekbar"
        android:layout_alignParentRight="true"
        android:layout_marginRight="@dimen/time_margin_sides"
        android:layout_marginBottom="5dp"
        android:textAppearance="@style/TextAppearance.AppCompat.SearchResult.Title" />
48

49 50 51 52 53 54 55 56 57 58 59 60
    <!-- Media control buttons -->

    <ImageView
        android:id="@+id/lock_overlay_button"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/player_overlay_length"
        android:layout_alignBottom="@+id/player_overlay_play"
        android:layout_alignTop="@+id/player_overlay_play"
        android:layout_alignParentLeft="true"
        android:layout_marginLeft="@dimen/images_margin_sides"
        android:src="@drawable/ic_lock"
61 62
        android:scaleType="center"
        android:focusable="true" />
63 64 65 66 67 68 69 70 71 72 73 74

    <ImageView
        android:id="@+id/player_overlay_tracks"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@id/player_overlay_length"
        android:layout_toRightOf="@+id/lock_overlay_button"
        android:layout_toLeftOf="@+id/player_overlay_play"
        android:layout_alignBottom="@+id/player_overlay_play"
        android:layout_alignTop="@+id/player_overlay_play"
        android:clickable="true"
        android:src="@drawable/ic_subtitle_circle"
75 76
        android:scaleType="center"
        android:focusable="true"/>
77 78 79 80 81 82 83 84 85

    <ImageView
        android:id="@+id/player_overlay_play"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/player_overlay_length"
        android:layout_centerHorizontal="true"
        android:clickable="true"
        android:src="@drawable/ic_pause_circle"
86 87
        android:scaleType="center"
        android:focusable="true"/>
88 89 90 91 92 93 94 95 96 97 98 99 100

    <ImageView
        android:id="@+id/player_overlay_adv_function"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@id/player_overlay_length"
        android:layout_toRightOf="@+id/player_overlay_play"
        android:layout_toLeftOf="@+id/player_overlay_size"
        android:layout_alignBottom="@+id/player_overlay_play"
        android:layout_alignTop="@+id/player_overlay_play"
        android:clickable="true"
        android:onClick="showAdvancedOptions"
        android:src="@drawable/ic_more"
101 102
        android:scaleType="center"
        android:focusable="true"/>
103 104 105 106 107 108 109 110 111 112 113

    <ImageView
        android:id="@+id/player_overlay_size"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/player_overlay_length"
        android:layout_alignBottom="@+id/player_overlay_play"
        android:layout_alignTop="@+id/player_overlay_play"
        android:layout_alignParentRight="true"
        android:layout_marginRight="@dimen/images_margin_sides"
        android:src="@drawable/ic_crop_circle"
114 115
        android:scaleType="center"
        android:focusable="true" />
116
</RelativeLayout>