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.
以下のコードを使用して、グリッドのセルを区切る線を設定します。
GridView gv = (GridView)findViewById(gridview id); gv.setVerticalSpacing(3); gv.setHorizontalSpacing(3); gv.setAdapter(Adapter);
線幅を設定するだけで、異なる色は表示されません。 別の色の線を設定するにはどうすればよいですか?
グリッドではできません。セパレーターを削除し、ビューごとに変更できるビューに境界線を追加する必要があります。