Working on Status layout
[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" android:layout_width="fill_parent"
4         android:layout_height="wrap_content" android:orientation="vertical">
5
6         <org.mustard2.android.view.RemoteAvatarView
7                 android:id="@+id/avatar" android:layout_width="wrap_content"
8                 android:layout_height="wrap_content" android:layout_alignParentLeft="true"
9                 android:paddingRight="3dp" android:maxWidth="96dp" android:maxHeight="96dp" />
10
11         <TextView android:id="@+id/status_author" android:textSize="12sp"
12                 android:layout_width="wrap_content" android:layout_height="wrap_content"
13                 android:layout_toRightOf="@+id/avatar" />
14
15         <TextView android:id="@+id/status_screen_name"
16                 android:textSize="12sp" android:layout_width="wrap_content"
17                 android:layout_height="wrap_content" android:paddingLeft="3dp"
18                 android:layout_toRightOf="@+id/avatar" android:layout_below="@+id/status_author" />
19
20         <ImageView android:id="@+id/favor" android:layout_width="wrap_content"
21                 android:layout_height="wrap_content" android:src="@android:drawable/star_off"
22                 android:layout_toLeftOf="@+id/reply" />
23
24         <ImageView android:id="@+id/reply" android:src="@android:drawable/ic_media_previous"
25                 android:layout_width="wrap_content" android:layout_height="wrap_content"
26                 android:layout_toLeftOf="@+id/activity" 
27                 android:layout_marginRight="4dp" />
28                 
29         <ImageView android:id="@+id/activity" android:layout_width="wrap_content"
30                 android:layout_height="wrap_content" android:src="@drawable/i_gear"
31                 android:layout_alignParentRight="true"/>
32
33         <TextView android:id="@+id/status_content" android:textSize="18sp"
34                 android:layout_width="fill_parent" android:layout_height="wrap_content"
35                 android:layout_alignParentLeft="true" android:layout_below="@+id/avatar" />
36
37         <TextView android:id="@+id/status_date" android:textSize="12sp"
38                 android:layout_width="wrap_content" android:layout_height="wrap_content"
39                 android:layout_alignParentLeft="true" android:layout_below="@+id/status_content" />
40
41         <TextView android:id="@+id/status_source" android:textSize="12sp"
42                 android:layout_width="wrap_content" android:layout_height="wrap_content"
43                 android:paddingLeft="3dp" android:layout_toRightOf="@+id/status_date"
44                 android:layout_below="@+id/status_content" />
45
46         <TextView android:id="@+id/status_location" android:textSize="12sp"
47                 android:layout_width="wrap_content" android:layout_height="wrap_content"
48                 android:layout_alignParentLeft="true" android:layout_below="@+id/status_date"
49                 android:visibility="gone" />
50
51 <!-- 
52         <Button android:id="@+id/reply" android:layout_width="wrap_content"
53                 android:minWidth="@dimen/button_minWidth" android:layout_height="wrap_content"
54                 android:text="@string/btn_reply" android:drawableRight="@android:drawable/ic_media_rew"
55                 android:layout_below="@+id/status_location"
56                 android:layout_alignParentLeft="true" />
57
58         <Button android:id="@+id/forward" android:layout_width="wrap_content"
59                 android:minWidth="@dimen/button_minWidth" android:layout_height="wrap_content"
60                 android:text="@string/btn_forward" android:drawableRight="@android:drawable/ic_media_ff"
61                 android:layout_below="@+id/status_location"
62                 android:layout_toRightOf="@+id/reply" />
63
64         <Button android:id="@+id/repeat" android:layout_width="wrap_content"
65                 android:minWidth="@dimen/button_minWidth" android:layout_height="wrap_content"
66                 android:text="@string/btn_repeat" android:drawableRight="@android:drawable/ic_media_play"
67                 android:layout_below="@+id/status_location"
68                 android:layout_toRightOf="@+id/forward"/>
69
70  -->
71  
72         <View android:id="@+id/attachments_bar"
73                 android:layout_alignParentLeft="true" android:layout_below="@+id/reply"
74                 android:layout_width="fill_parent" android:layout_height="0px" />
75
76         <org.mustard2.android.view.RemoteImageView
77                 android:id="@+id/attachmentimg" android:layout_width="wrap_content"
78                 android:layout_height="wrap_content" android:layout_alignParentLeft="true"
79                 android:layout_below="@+id/attachments_bar" android:visibility="gone"
80                 android:layout_margin="4dp" />
81
82         <WebView android:id="@+id/attachmenttxt" android:textSize="12sp"
83                 android:layout_below="@+id/attachments_bar" android:layout_width="wrap_content"
84                 android:layout_height="wrap_content" android:visibility="gone"
85                 android:layout_margin="4dp" />
86
87         <LinearLayout android:id="@+id/xyz" android:layout_width="fill_parent"
88                 android:layout_height="wrap_content" android:orientation="vertical"
89                 android:layout_alignParentBottom="true">
90
91                 <RelativeLayout android:layout_width="fill_parent"
92                         android:layout_height="54dip" android:background="@android:drawable/bottom_bar">
93
94                         <Button android:layout_height="wrap_content" android:text="&lt;-"
95                                 android:id="@+id/prev_button" android:layout_width="70dp" 
96                                 android:layout_alignParentLeft="true"
97                                 android:layout_centerVertical="true" />
98
99                         <Button android:layout_height="wrap_content" android:text="-&gt;"
100                                 android:id="@+id/next_button" android:layout_width="70dp"
101                                 android:layout_alignParentRight="true"
102                                 android:layout_centerVertical="true" />
103
104                 </RelativeLayout>
105
106         </LinearLayout>
107
108 </RelativeLayout>