Home > Mobile >  [bailout] android background color doesn't work
[bailout] android background color doesn't work

Time:09-28

The activity in the app in the configuration file,
 & lt; LinearLayout XMLNS: android="http://schemas.android.com/apk/res/android" 
Android: layout_width="match_parent"
Android: layout_height="match_parent"
Android: orientation="vertical" & gt;


The android: id="@ + id/title_view11"
Android: layout_width="match_parent"
Android: layout_height="50 dp"
Android: background="@ color/blue2" & gt;

The android: id="@ + id/tv_title"
Android: layout_width="wrap_content"
Android: layout_height="wrap_content"
Android: layout_centerInParent="true"
Android: gravity="center_vertical"
Android: text=""
Android: textColor="@ color/black1"
Android: textSize="20 sp/& gt;"

The android: id="@ + id/ib_arrow"
Android: layout_width="wrap_content"
Android: layout_height="wrap_content"
Android: layout_centerVertical="true"
Android: layout_marginLeft="5 dp"
Android: layout_toRightOf="@ id/tv_title"
Android: cropToPadding="true"
Android: adjustViewBounds="true"
Android: background="@ null"
Android: scaleType="centerCrop"
Android: paddingTop="5 dp"
Android: paddingBottom="5 dp"
Android: paddingLeft="10 dp"
Android: paddingRight="10 dp"
The android: SRC="https://bbs.csdn.net/topics/@drawable/ic_arrow_down_gray"
/>

The android: id="@ + id/ib_back"
Android: layout_width="wrap_content"
Android: layout_height="wrap_content"
Android: layout_centerVertical="true"
Android: cropToPadding="true"
Android: adjustViewBounds="true"
Android: background="@ null"
Android: scaleType="centerCrop"
Android: paddingTop="5 dp"
Android: paddingBottom="5 dp"
Android: paddingLeft="10 dp"
Android: paddingRight="10 dp"
The android: SRC="https://bbs.csdn.net/topics/@drawable/ic_back"
Android: visibility="gone"/& gt;

The android: id="@ + id/tv_back"
Android: layout_width="wrap_content"
Android: layout_height="wrap_content"
Android: layout_centerVertical="true"
Android: layout_marginLeft="10 dp"
Android: textColor="@ color/white
"Android: textSize="@ dimen/text_small"
Android: visibility="gone"/& gt;

The android: id="@ + id/tv_right"
Android: layout_width="wrap_content"
Android: layout_height="wrap_content"
Android: layout_alignParentRight="true"
Android: layout_centerVertical="true"
Android: layout_marginRight="10 dp"
Android: padding="5 dp"
Android: textColor="@ color/white
"Android: textSize="13 sp"
Android: visibility="gone"/& gt;

The android: id="@ + id/ib_right"
Android: layout_width="wrap_content"
Android: layout_height="wrap_content"
Android: layout_alignParentRight="true"
Android: layout_centerVertical="true"
Android: padding="5 dp"
Android: cropToPadding="true"
Android: adjustViewBounds="true"
Android: background="@ null"
Android: scaleType="centerCrop"
Android: paddingTop="5 dp"
Android: paddingBottom="5 dp"
Android: paddingLeft="10 dp"
Android: paddingRight="10 dp"
Android: layout_marginRight="10 dp"
Android: visibility="gone"/& gt;

The android: id="@ + id/v_split"
Style="@ style/line_style"
Android: layout_alignParentBottom="true"/& gt;


The android: id="@ + id/lrv_task"
Android: layout_width="match_parent"
Android: layout_height="match_parent"
Android: background="@ color/white
"Android: layout_below="@ id/title_view11"/& gt;


Set up a RelativeLayout title_view11 background is blue, but open the app, found turned gray background color, other places did not set the background color,

And in LRecyclerView has added to the header, there is also a RecyclerView in the header, the RecyclerView adapter in the XML configuration file
 & lt; LinearLayout XMLNS: android="http://schemas.android.com/apk/res/android" 
Android: layout_width="match_parent"
Android: layout_height="wrap_content"
Android: orientation="vertical" & gt;

Android: layout_width="match_parent"
Android: layout_height="wrap_content"
The android: orientation="horizontal"
Android: paddingTop="5 dp"
Android: paddingBottom="5 dp"
Android: background="@ drawable/bg_blue_hudu_5dp"
Android: gravity="center" & gt;

Android: layout_width="wrap_content"
Android: layout_height="wrap_content"
Android: textSize="15 sp"
Android: textColor="@ color/black1"
Android: maxLines="1"
Android: ellipsize="end"
Android: text=""/& gt;




nullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related