1
0
mirror of https://github.com/TwidereProject/Twidere-Android synced 2025-01-30 16:35:00 +01:00

fixed user name displaying

This commit is contained in:
Mariotaku Lee 2016-01-29 00:32:37 +08:00
parent 5d2bb3abab
commit 1f75df3b4b
3 changed files with 9 additions and 3 deletions

View File

@ -85,6 +85,7 @@ public class UserViewHolder extends ViewHolder implements OnClickListener, OnLon
}
nameView.setName(manager.getUserNickname(user.id, user.name, false));
nameView.setScreenName("@" + user.screen_name);
nameView.updateText(adapter.getBidiFormatter());
descriptionView.setVisibility(TextUtils.isEmpty(user.description_unescaped) ? View.GONE : View.VISIBLE);
descriptionView.setText(user.description_unescaped);
locationView.setVisibility(TextUtils.isEmpty(user.location) ? View.GONE : View.VISIBLE);

View File

@ -89,7 +89,11 @@
android:paddingEnd="0dp"
android:paddingLeft="8dp"
android:paddingRight="0dp"
android:paddingStart="8dp"/>
android:paddingStart="8dp"
app:nv_primaryTextColor="?android:textColorPrimary"
app:nv_primaryTextStyle="bold"
app:nv_secondaryTextColor="?android:textColorSecondary"
app:nv_twoLine="true"/>
</RelativeLayout>

View File

@ -77,8 +77,9 @@
android:layout_alignWithParentIfMissing="true"
android:layout_toEndOf="@id/profile_image"
android:layout_toRightOf="@id/profile_image"
app:nv_primaryTextColor="?android:attr/textColorPrimary"
app:nv_primaryTextStyle="bold"/>
app:nv_primaryTextColor="?android:textColorPrimary"
app:nv_primaryTextStyle="bold"
app:nv_secondaryTextColor="?android:textColorSecondary"/>
<org.mariotaku.twidere.view.themed.ThemedTextView