titlebar.xml
1.89 KB
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
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="46dip"
android:orientation="horizontal">
<Chronometer
android:id="@+id/chronometer"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:layout_gravity="center"
android:format="%s"
android:gravity="center"
android:textColor="#FFFFFF"
android:textSize="19sp" />
<ImageView
android:id="@+id/flash"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginRight="12dp"
android:layout_marginTop="8dp"
android:layout_toLeftOf="@+id/switch_cam"
android:background="@drawable/icon_record_flash_off"></ImageView>
<ImageView
android:id="@+id/switch_cam"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_gravity="center_vertical"
android:layout_marginRight="12dp"
android:layout_marginTop="8dp"
android:layout_toLeftOf="@+id/backoff"
android:background="@drawable/icon_record_flip_off" />
<ImageView
android:id="@+id/backoff"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:layout_gravity="center_vertical"
android:layout_marginRight="2dp"
android:layout_marginTop="8dp"
android:background="@drawable/icon_record_close_off" />
</RelativeLayout>