次のコードのように ListView Size を動的に変更するこのアプリケーションを実行しています。
RelativeLayout.LayoutParams mParam = new RelativeLayout.LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT);
sucs.setLayoutParams(myListView);
しかし、これを行うと、ListView がビューの上に表示されます。テキストビューの下にあるはずの場所に配置する方法はありますか?
前もって感謝します!
編集済み: ここに私のxmlがあります:
<TextView
android:id="@+id/sucursales_empresa"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@id/direccion_empresa"
android:background="@drawable/barra"
android:text="@string/sucursales"
android:visibility="gone" />
<ListView
android:id="@+id/sucursalesEmpresaList"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@id/sucursales_empresa"
android:cacheColorHint="#00000000"
android:visibility="gone" />