이android에서 조각의 무게 크기를 변경하는 방법은 무엇입니까?
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal"
android:weightSum="100"
>
<fragment
android:id="@+id/menuFragment"
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:layout_weight="70"
class="com.pack.Menufragment" >
</fragment>
<fragment
android:id="@+id/bodyFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="30"
class="com.pack.BodyFragment" >
</fragment>
</LinearLayout>
가 지금은없는 XML에서 자바에서 조각 무게의 크기를 변경하려면 내 조각보기의 XML-레이아웃이며,이를 위해 어쨌든 있나요?
나는 이것을했지만, 오류를 보이지는 않지만 크기에 영향을주지는 않습니다. –