summaryrefslogtreecommitdiffstats
path: root/res/layout/playback_layout.xml
blob: 5fee6fc657d8a450d1ddd2239cd6bcdf6334124a (plain)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
>
    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="100dip"
        android:orientation="vertical"
        android:background="@color/voicemail_playback_ui_background"
    >
        <!-- Mute, playback, trash buttons. -->
        <LinearLayout
            android:id="@+id/buttons_linear_layout"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="horizontal"
            android:layout_alignParentTop="true"
        >
            <ImageButton
                android:id="@+id/playback_speakerphone"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:padding="5px"
                android:background="@color/voicemail_playback_ui_background"
                android:src="@drawable/speakerphone_on_button"
                android:layout_weight="1"
            />
            <ImageButton
                android:id="@+id/playback_start_stop"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:padding="5px"
                android:background="@color/voicemail_playback_ui_background"
                android:src="@drawable/pause_button"
                android:layout_weight="1"
            />
            <ImageButton
                android:id="@+id/playback_trash"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:padding="5px"
                android:background="@color/voicemail_playback_ui_background"
                android:src="@drawable/trash_button"
                android:layout_weight="1"
            />
        </LinearLayout>
        <SeekBar
            android:id="@+id/playback_seek"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:progressDrawable="@drawable/seekbar_drawable"
            android:thumb="@drawable/seek_bar_thumb"
            android:thumbOffset="0dip"
            android:paddingLeft="30dip"
            android:paddingRight="30dip"
            android:paddingTop="10dip"
            android:paddingBottom="25dip"
            android:progress="0"
            android:max="50"
            android:layout_alignParentBottom="true"
        />
        <TextView
            android:id="@+id/playback_position_text"
            android:text="@string/voicemail_initial_time"
            android:layout_height="wrap_content"
            android:layout_width="wrap_content"
            android:paddingBottom="5dip"
            android:layout_alignParentBottom="true"
            android:layout_centerHorizontal="true"
        />
        <Button
            android:id="@+id/rate_decrease_button"
            android:layout_width="30dip"
            android:layout_height="wrap_content"
            android:background="@android:color/transparent"
            android:textColor="@color/voicemail_playback_ui_text"
            android:textSize="20dip"
            android:textStyle="bold"
            android:paddingTop="10dip"
            android:paddingBottom="15dip"
            android:text="@string/voicemail_decrease_button"
            android:layout_alignLeft="@id/playback_seek"
            android:layout_alignBottom="@id/playback_seek"
        />
        <Button
            android:id="@+id/rate_increase_button"
            android:layout_width="30dip"
            android:layout_height="wrap_content"
            android:background="@android:color/transparent"
            android:textColor="@color/voicemail_playback_ui_text"
            android:textSize="20dip"
            android:textStyle="bold"
            android:paddingTop="10dip"
            android:paddingBottom="15dip"
            android:text="@string/voicemail_increase_button"
            android:layout_alignRight="@id/playback_seek"
            android:layout_alignBottom="@id/playback_seek"
        />
    </RelativeLayout>
</LinearLayout>