I would like to develop a layout which is diagonally divided in to two phases with option1 & option2. I want both this diagonal layers to be touch sensible so that when user touch on it, its event get executed. How can I develop such a layout?
I am attaching my Layouts rough design
<item>
<rotate
android:fromDegrees="40"
android:toDegrees="120"
android:pivotX="100%"
android:pivotY="0%">
<shape
android:shape="rectangle" >
<stroke android:color="@color/colorAccent" android:width="2dp"/>
<solid
android:color="@color/colorPrimary" />
</shape>
</rotate>
</item>
This code gives me very small triangle and I am not able to increase its height & width. Please help