Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // not by me
- // http://www.hrupin.com/2012/02/how-to-set-view-width-height-in-percentage-of-parent-view-in-android
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="vertical"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:weightSum="100">
- <LinearLayout android:layout_weight="50"
- android:layout_width="match_parent"
- android:id="@+id/linearLayout1"
- android:layout_height="wrap_content"
- android:orientation="vertical"></LinearLayout>
- </LinearLayout>
Add Comment
Please, Sign In to add comment