Trying to solve nested weights issue in linear layout (possibly using relative layout)

view full story

http://stackoverflow.com – I am working on a calculator app and wish to have: buttons in multiple rows. buttons should fill up the entire screen size and leave no white space below. This has been realized successfully using nested linear layouts. However, android lint points out the inefficiency in 'nested weights' in the linear layout. Please suggest a way to resolve it or realize the same using relative layout. Following is a sample of the linear layout. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent (HowTos)