2013. 6. 12. 20:32
안드로이드 - weightsum 안드로이드 이야기2013. 6. 12. 20:32
728x90
반응형
안드로이드 - weightsum
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년만에 알게된, 새로운 사실... -_-;;;
728x90
반응형
'안드로이드 이야기' 카테고리의 다른 글
안드로이드 - mssql db서버에서 가져온 데이터를 android프로그램의 listview에 뿌리리기 (0) | 2013.07.16 |
---|---|
안드로이드-Android File 속성 및 생성, 글쓰기, 읽기, 복사 하기 (0) | 2013.07.12 |
안드로이드 - 오픈 소스 보기 (1) | 2013.06.05 |
안드로이드 - SQLite assets 데이터베이스로 연결하기 (0) | 2013.05.23 |
안드로이드 - PackageInfo를 통해 가져오기 및 다른 어플 실행 (0) | 2013.05.23 |