可視性をに設定して、グリッドビューから子を隠していView.GONE
ます。問題は、GONEに設定したつもりでも、見えなくなりますが、配置されていた場所にまだギャップが残っていることです.
非表示の要素がレイアウト内のスペースを占有しないように、グリッドビューを再配置することは可能ですか?
<GridView
android:id="@+activity_queues/gv_queue1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:columnWidth="200dp"
android:horizontalSpacing="10dp"
android:numColumns="auto_fit"
android:padding="10dp"
android:stretchMode="none"
android:verticalSpacing="10dp" >
</GridView>