Initial commit
[mustard2:mustard2.git] / res / layout / status.xml
1 <?xml version="1.0" encoding="utf-8"?>
2  <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3         android:id="@+id/StatusRelativeLayout"
4      android:layout_width="fill_parent"
5      android:layout_height="wrap_content"
6      android:orientation="vertical">
7
8         <org.mustard.android.view.RemoteAvatarView android:id="@+id/avatar"
9         android:layout_width="wrap_content"
10         android:layout_height="wrap_content"
11         android:layout_alignParentLeft="true"
12         android:paddingRight="3dp"
13         android:maxWidth="96dp"
14         android:maxHeight="96dp"
15         />
16
17      <TextView android:id="@+id/status_author"
18          android:textSize="12sp"
19          android:layout_width="wrap_content"
20          android:layout_height="wrap_content"
21          android:layout_toRightOf="@+id/avatar"
22          />
23          
24      <TextView android:id="@+id/status_screen_name"
25          android:textSize="12sp"
26          android:layout_width="wrap_content"
27          android:layout_height="wrap_content" 
28          android:paddingLeft="3dp"
29          android:layout_toRightOf="@+id/avatar"
30          android:layout_below="@+id/status_author"
31          />
32
33      <TextView android:id="@+id/status_content"
34          android:textSize="18sp"
35          android:layout_width="fill_parent"
36          android:layout_height="wrap_content"
37          android:layout_alignParentLeft="true"
38          android:layout_below="@+id/avatar"
39          />
40
41      <TextView android:id="@+id/status_date"
42          android:textSize="12sp"
43          android:layout_width="wrap_content"
44          android:layout_height="wrap_content"
45          android:layout_alignParentLeft="true"
46          android:layout_below="@+id/status_content"
47          />
48          
49      <TextView android:id="@+id/status_source"
50          android:textSize="12sp"
51          android:layout_width="wrap_content"
52          android:layout_height="wrap_content" 
53          android:paddingLeft="3dp"
54          android:layout_toRightOf="@+id/status_date"
55          android:layout_below="@+id/status_content"
56          />
57
58      <TextView android:id="@+id/status_location"
59          android:textSize="12sp"
60          android:layout_width="wrap_content"
61          android:layout_height="wrap_content"
62          android:layout_alignParentLeft="true"
63          android:layout_below="@+id/status_date"
64          android:visibility="gone"
65          />
66
67         <View android:id="@+id/attachments_bar"
68          android:layout_alignParentLeft="true"
69          android:layout_below="@+id/status_location"
70          android:layout_width="fill_parent"
71          android:layout_height="0px"
72          />
73
74         <org.mustard.android.view.RemoteImageView android:id="@+id/attachmentimg"
75         android:layout_width="wrap_content"
76         android:layout_height="wrap_content"
77         android:layout_alignParentLeft="true"
78         android:layout_below="@+id/attachments_bar"
79         android:visibility="gone"
80         android:layout_margin="4dp"
81                 />
82
83         <WebView xmlns:android="http://schemas.android.com/apk/res/android"
84                 android:id="@+id/attachmenttxt"
85                 android:textSize="12sp"
86                 android:layout_below="@+id/attachments_bar"
87                 android:layout_width="wrap_content"
88                 android:layout_height="wrap_content"
89                 android:visibility="gone"
90         android:layout_margin="4dp"             
91                 />
92
93         <LinearLayout android:id="@+id/xyz"
94                 android:layout_width="fill_parent" android:layout_height="wrap_content"
95                 android:orientation="vertical"
96                 android:layout_alignParentBottom="true">
97
98                 <RelativeLayout android:layout_width="fill_parent"
99                         android:layout_height="54dip" android:background="@android:drawable/bottom_bar">
100                         
101                         <Button android:id="@+id/reply"
102                                 android:layout_width="wrap_content" android:minWidth="@dimen/button_minWidth"
103                                 android:layout_height="wrap_content" android:text="@string/btn_reply"
104                                 android:drawableRight="@android:drawable/ic_media_rew"
105                                 android:layout_alignParentLeft="true"
106                                 android:layout_centerVertical="true" />
107                         
108                         <Button android:id="@+id/forward"
109                                 android:layout_width="wrap_content" android:minWidth="@dimen/button_minWidth"
110                                 android:layout_height="wrap_content" android:text="@string/btn_forward"
111                                 android:drawableRight="@android:drawable/ic_media_ff"
112                                 android:layout_toRightOf="@+id/reply"
113                                 android:layout_centerVertical="true" />
114
115                         <Button android:id="@+id/repeat"
116                                 android:layout_width="wrap_content" android:minWidth="@dimen/button_minWidth"
117                                 android:layout_height="wrap_content" android:text="@string/btn_repeat"
118                                 android:drawableRight="@android:drawable/ic_media_play"
119                                 android:layout_toRightOf="@+id/forward"
120                                 android:layout_centerVertical="true" />
121                                 
122                 </RelativeLayout>
123         </LinearLayout>
124  </RelativeLayout>