<LinearLayout
android:orientation="vertical"
android:layout_margin="10dp"
android:paddingTop="35dp"
android:layout_width="200dp"
android:layout_gravity="center" android:layout_height="fill_parent">
I want to make it fill 50% of the android screen instead of the 200dp
Wrap your linearlayout in another linearlayout where you’ve set the weightsum to 100.
Then set the layout_weight of the child linearlayout to 50 and it will take up 50% of the screen.
Like this: