Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
アダプター (myAdapter.add("")) に空白のオブジェクトを追加せずに、空のセルを含むリストビュー。私はそのような解決策を望んでいません。このタイプの機能を取得できるプロパティまたはメソッドはありますか。
ベース アダプタの getCount メソッドで、たとえば 20 などの値を設定できます。次に、最初の 4 つの項目の getView メソッドで、それらの項目のレイアウトを設定します。他の項目では、空のレイアウトを設定します。