Add animation for text too long

This commit is contained in:
Sylvain Berfini 2012-11-30 14:44:37 +01:00
parent d9ef6e235c
commit 5bad3c1abd
4 changed files with 13 additions and 1 deletions

View file

@ -55,7 +55,11 @@
<TextView
android:id="@+id/sipUri"
android:lines="1"
android:ellipsize="none"
android:ellipsize="marquee"
android:marqueeRepeatLimit="marquee_forever"
android:scrollHorizontally="true"
android:fadingEdge="horizontal"
android:singleLine="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"

View file

@ -22,6 +22,11 @@
android:textSize="30sp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:marqueeRepeatLimit="marquee_forever"
android:scrollHorizontally="true"
android:fadingEdge="horizontal"
android:singleLine="true"
android:layout_weight="0.2"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textColor="@android:color/black"

View file

@ -259,6 +259,7 @@ public class ChatListFragment extends Fragment implements OnClickListener, OnIte
}
TextView sipUri = (TextView) view.findViewById(R.id.sipUri);
sipUri.setSelected(true); // For animation
if (getResources().getBoolean(R.bool.only_display_username_if_unknown) && address.getDisplayName() != null && LinphoneUtils.isSipAddress(address.getDisplayName())) {
address.setDisplayName(LinphoneUtils.getUsernameFromAddress(address.getDisplayName()));

View file

@ -310,6 +310,8 @@ public class HistorySimpleFragment extends Fragment implements OnClickListener,
final LinphoneAddress address;
TextView contact = (TextView) view.findViewById(R.id.sipUri);
contact.setSelected(true); // For animation
ImageView detail = (ImageView) view.findViewById(R.id.detail);
ImageView delete = (ImageView) view.findViewById(R.id.delete);
ImageView callDirection = (ImageView) view.findViewById(R.id.icon);