From 3a75752d120b6880226e9b80c3dc652eab54729f Mon Sep 17 00:00:00 2001 From: Michael Johnson Date: Fri, 6 Jun 2014 15:06:16 -0700 Subject: [PATCH] Fix Website Overflow on Long Text Until we can re-do the layout, this fix should handle overflow issues on long URLs. First, strip the leading "http" from them and then limit the length to 20 characters. This won't affect the actual click location, just the display. Fixes #171 --- Atarashii/res/layout/activity_profile.xml | 3 ++- Atarashii/src/net/somethingdreadful/MAL/ProfileActivity.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Atarashii/res/layout/activity_profile.xml b/Atarashii/res/layout/activity_profile.xml index a3ddff3b..114fa0cb 100644 --- a/Atarashii/res/layout/activity_profile.xml +++ b/Atarashii/res/layout/activity_profile.xml @@ -142,7 +142,8 @@ android:layout_alignBaseline="@id/websitefront" android:layout_alignParentRight="true" android:text="@string/layout_card_loading" - android:textSize="16sp" /> + android:textSize="16sp" + android:maxLength="20" />