5
正如我看過很多帖子有辦法讓字符串從XML陣列和直接綁定到RecyclerView
或任何其它控制像微調。機器人:使用彩色陣列在XML
特別是在使用app:entries="@{@stringArray/fi}
like:
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<android.support.v7.widget.RecyclerView
android:layout_width="match_parent"
android:layout_height="match_parent"
app:entries="@{@stringArray/fi}"
app:layoutManager="android.support.v7.widget.LinearLayoutManager"/>
</layout>
有沒有辦法做到這一點的顏色排列Android Databinding字符串數組與RecylerView結合?