How can i split LinearLayout or RelativeLayout diagonally into two varying sizes and each having different child view. Example ViewPager
I think i am bit late for this answer, But you should see this amazing tutorial for this. Its easy and without any external library. The output will be like:
You need to add layer-list
-
-
Now you just need to add this drawable into your layout.
layout will be like:
Must check this link for better understanding.