Android RelativeLayout Background Color -
for long time reading posts stackoverflow because helpful , google seems think also.
since yesterday have problem row in listview in android. want show image , area between image , bottom of element should filled grey color.
<relativelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical" > <relativelayout android:id="@+id/conversationsbadgelayout" android:layout_width="wrap_content" android:layout_height="match_parent" android:background="#c0c0c0" android:orientation="vertical" > <quickcontactbadge android:id="@+id/conversationsbadge" android:layout_width="60dp" android:layout_height="60dp" android:layout_alignparentleft="true" android:layout_alignparenttop="true" /> </relativelayout> <!-- ... linearlayout textviews, shouldn't interesting ... --> </relativelayout> my problem ist seems inner layout wraps content doesn't fill_parent. when set example 100dp works not want.
it nice if me that. tried workarround using linearlayouts , textviews nothing worked.
you can set background color listview itself, in have background want.
btw, recommend using linearlayout instead of relativelayout in case.
Comments
Post a Comment