2017-10-16から1日間の記事一覧
お題 RecyclerViewで使用するdividerの左側にマージンを確保したい。 対応 レイヤーリストとoffsetの組み合わせでできた。とりあえず基本となるdividerを用意する(drawable/divider.xml などとする) <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> </shape>
お題 RecyclerViewで使用するdividerの左側にマージンを確保したい。 対応 レイヤーリストとoffsetの組み合わせでできた。とりあえず基本となるdividerを用意する(drawable/divider.xml などとする) <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> </shape>