Skip to content

Instantly share code, notes, and snippets.

@Marchuck
Last active September 4, 2015 06:44
Show Gist options
  • Save Marchuck/7f8af62f7acd7f21ac73 to your computer and use it in GitHub Desktop.
Save Marchuck/7f8af62f7acd7f21ac73 to your computer and use it in GitHub Desktop.
horyzontalna markiza MarqueeTextView needs textView.setSelected(true) at onBindViewHolder()
<TextView
android:id="@+id/draggable_list_swipe_item_stops_stop_name_data"
android:layout_width="100sp"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/fragment_timetable_padding"
android:layout_marginTop="@dimen/fragment_text_margin"
android:text="@string/draggable_list_item_stops_stop_name"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="#e0000000"
android:singleLine="true"
android:ellipsize="marquee"
android:marqueeRepeatLimit="marquee_forever"
android:scrollHorizontally="true"
android:paddingLeft="15dip"
android:paddingRight="15dip"
android:focusable="true"
android:focusableInTouchMode="true"
android:freezesText="true"
android:textStyle="bold" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment