I have a child layout inside its parent layout. If i set any background color for parent, it sets the same color for its child also. But i don t want to set the same color for child. (I want the default android black color as background for child). Please help me.
EDITED:
I need to capture the child layout and create a bitmap later, So i should not set any background color for child (but its parent should has some color). It should set to default android black only.
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="#FFA500" >
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_gravity="center"
android:layout_margin="15dp"
android:layout_weight="1"
android:gravity="center" >
</RelativeLayout>
</LinearLayout>
父线性布局有一些 BG 颜色。 我并没有为子子相对布局设置 BG 颜色, 但是它正在使用父色 s BG 颜色 。 所以, 现在, 我如何为子子设定和机器人默认 BG 颜色?