Could you guide me how to put 4 colors in linearlayout instead of create 4 views of linearlayout because I realized there is better way but I don't know how to apply it.
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"/>
The result should be like image below