我正在尝试为回收器视图设计一个交错布局管理器,并且回收器视图的每个项目都会膨胀一个卡片视图。问题是每当我尝试在我的项目中应用选取框时,唯一的第一个项目会获得预期的选取框行为,而其他项目保持不变。它不应该应用于每个项目吗?
我已经关注了这个
XML
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/job_clicktoseedetails"
android:layout_alignParentRight="true"
android:layout_below="@+id/job_deadline"
android:text="Click To See The Details of the job"
android:textColor="@android:color/holo_blue_dark"
android:paddingBottom="5dp"
android:paddingRight="5dp"
style="@style/Widget.SampleMessageTile"
/>
样式.xml
<style name="Widget.SampleMessageTile">
<item name="android:singleLine">true</item>
<item name="android:ellipsize">marquee</item>
<item name="android:marqueeRepeatLimit">marquee_forever</item>
<item name="android:focusable">true</item>
<item name="android:focusableInTouchMode">true</item>
<item name="android:scrollHorizontally">true</item>
</style>