In cases where one is using android:layout_weight property to assign available screen space to layout components, for instance
...
...
/* And we want to add a verical separator here */
...
...
To add a separator between the existing two layouts which has taken the entire screen space already, we cannot just add another LinearLayout with android:weight:"1" because that will make three equal width columns which we don't want. Instead, we will decrease the amount of space we will be giving to this new layout.
Final code would look like this:
...
...
/* *************** ********************** */
/* Add another LinearLayout with android:layout_weight="0.01" and
android:background="#your_choice" */
/* Or View can be used */
/* *************** ********************** */
...
...