我正在使用带有圆角的RecyclerView,以使其在XML下方使用的圆角:
view_rounded.xml: –
android:shape="rectangle">
fragment_main.xml: –
android:id="@+id/recycler_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/view_rounded"/>
adapter_main.xml: –
android:id="@+id/LinearLayout1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
android:id="@+id/textTitle"
style="@style/AppTheme.ListTextView"
/>
style.xml: –
left
match_parent
wrap_content
false
10dp
@android:style/TextAppearance.DeviceDefault.Medium
@color/tabsScrollColor
bold
获取(没有项目分隔符):
必需(带项目分隔符):