Bug 1389637: Enable Top Site scrolling when dragging TextView. r=sebastian
As per SO, singleLine also needed to be removed because it automatically sets
scrollHorizontally=true.
MozReview-Commit-ID: 89AL31Niv4L
--- a/mobile/android/app/src/main/res/layout/activity_stream_topsites_card.xml
+++ b/mobile/android/app/src/main/res/layout/activity_stream_topsites_card.xml
@@ -11,25 +11,27 @@
android:id="@+id/favicon"
android:layout_width="match_parent"
android:layout_height="match_parent"
gecko:enableRoundCorners="false"
tools:background="@drawable/favicon_globe"
android:scaleType="centerInside"
gecko:overrideScaleType="false" />
+ <!-- scrollHorizontally=false allows drags on the TextView to scroll the ViewPager.
+ See https://stackoverflow.com/a/18171834/2219998 -->
<TextView
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#66000000"
android:padding="5dp"
android:drawablePadding="2dp"
android:maxLines="1"
- android:singleLine="true"
android:ellipsize="end"
android:gravity="center"
android:textColor="@android:color/white"
android:textSize="12sp"
android:layout_gravity="bottom"
+ android:scrollHorizontally="false"
tools:text="Lorem Ipsum here is a title" />
</FrameLayout>