Added format text hint

pull/198/head
M66B 4 years ago
parent 730af827f0
commit 4a12098246

@ -68,6 +68,7 @@ import android.text.style.CharacterStyle;
import android.text.style.ImageSpan;
import android.text.style.ParagraphStyle;
import android.text.style.QuoteSpan;
import android.text.style.RelativeSizeSpan;
import android.text.style.URLSpan;
import android.util.Pair;
import android.util.TypedValue;
@ -524,6 +525,14 @@ public class FragmentCompose extends FragmentBase {
setZoom();
SpannableStringBuilder hint = new SpannableStringBuilder();
hint.append(getString(R.string.title_body_hint));
hint.append("\n");
int pos = hint.length();
hint.append(getString(R.string.title_body_hint_style));
hint.setSpan(new RelativeSizeSpan(0.7f), pos, hint.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
etBody.setHint(hint);
etBody.setInputContentListener(new EditTextCompose.IInputContentListener() {
@Override
public void onInputContent(Uri uri) {

@ -1043,6 +1043,7 @@
<string name="title_subject">Subject:</string>
<string name="title_attachment">Attachment:</string>
<string name="title_body_hint">Your message</string>
<string name="title_body_hint_style">You can select text to format it</string>
<string name="title_discard">Discard</string>
<string name="title_save">Save</string>
<string name="title_send">Send</string>

Loading…
Cancel
Save