Social widget layout when there is no update
Bug: 3144482
Change-Id: I97fe3ea6498e6a2fd029a113ab6aa85d40d42ef5
diff --git a/res/layout/social_widget.xml b/res/layout/social_widget.xml
index 7fd66a8..c3a7f1c 100644
--- a/res/layout/social_widget.xml
+++ b/res/layout/social_widget.xml
@@ -34,42 +34,50 @@
android:layout_width="match_parent"
android:layout_height="match_parent" />
</FrameLayout>
- <LinearLayout
+ <FrameLayout
android:layout_width="0dip"
android:layout_height="90dip"
android:layout_weight="1"
android:background="@drawable/status_balloon_widget_holo_light"
- android:orientation="vertical"
android:layout_gravity="center_vertical"
android:layout_marginLeft="-8dip"
- android:paddingLeft="24dip" >
+ android:paddingLeft="24dip">
- <TextView android:id="@+id/name"
- android:layout_width="match_parent"
+ <LinearLayout
+ android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:singleLine="true"
- android:ellipsize="end"
- android:textAppearance="?android:attr/textAppearanceMedium"
- android:textStyle="bold"
- android:layout_marginTop="2dip"
- />
+ android:layout_gravity="left|center_vertical"
+ android:orientation="vertical"
+ android:paddingTop="2dip"
+ android:paddingBottom="2dip"
+ android:paddingRight="4dip">
- <TextView android:id="@+id/status"
- android:layout_width="match_parent"
- android:layout_height="0px"
- android:layout_weight="1"
- android:textAppearance="?android:attr/textAppearanceSmall"
- android:maxLines="2"
- android:visibility="gone"
- />
+ <TextView
+ android:id="@+id/name"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:singleLine="true"
+ android:ellipsize="end"
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ android:textStyle="bold" />
- <TextView android:id="@+id/status_date"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:textAppearance="?android:attr/textAppearanceSmall"
- android:textSize="12sp"
- android:visibility="gone"
- android:layout_marginBottom="2dip"
- />
- </LinearLayout>
+ <TextView
+ android:id="@+id/status"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:maxLines="2"
+ android:ellipsize="end"
+ android:visibility="gone" />
+
+ <TextView
+ android:id="@+id/status_date"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:textColor="?android:attr/textColorTertiary"
+ android:textSize="12sp"
+ android:visibility="gone" />
+ </LinearLayout>
+ </FrameLayout>
</LinearLayout>