Programming/android
android weightSum사용하기.
.땅꼬마.
2012. 7. 24. 18:41
parent에 weight_sum을 1로 정하시고, child에 layout_weight 을 .7로 주면.. 70%를 차지하게 됩니다.
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:weightSum="1"
android:background="#ffffffff">
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="0dip"
android:layout_weight="0.7"
android:background="#ff000000"/>
</LinearLayout>
안드로이드 한지, 2년만에 알게된, 새로운 사실... -_-;;;