truncate publish button

This commit is contained in:
sk 2022-12-23 21:16:36 +01:00
parent f1ce700c93
commit f55bd6d6cd
1 changed files with 2 additions and 0 deletions

View File

@ -638,6 +638,8 @@ public class ComposeFragment extends MastodonToolbarFragment implements OnBackPr
} else { } else {
publishButton.setText(publishText); publishButton.setText(publishText);
} }
publishButton.setSingleLine();
publishButton.setEllipsize(TextUtils.TruncateAt.END);
publishButton.setOnClickListener(this::onPublishClick); publishButton.setOnClickListener(this::onPublishClick);
LinearLayout wrap=new LinearLayout(getActivity()); LinearLayout wrap=new LinearLayout(getActivity());
wrap.setOrientation(LinearLayout.HORIZONTAL); wrap.setOrientation(LinearLayout.HORIZONTAL);