Android - go to superscript in textview on button click - android

I'm creating calculator on Android. I want to go to superscript in my textview (containing expression) when user clicks "^" button, so I can write in the upper index.
What I want to achieve is shown in the picture below:
How can I do this? Is there any library which could help me?

Related

Adding image in a text field in flutter

I want to add images in a text field/text form field in flutter. Whenever the user clicks the first button in the bottom navigation bar, the app will ask to pick an image and the image will display in the text field.
Like this:-
How Can I add one? (I am not talking about emoji)
ANY HELP OR IDEA WOULD BE APPRECIATED.
You can use RichTextEditor using rich_text_view plugin to support stylized text. Another option here is by using flutter_markdown to render images from Markdown.

How to make , Copy text and tap on floating icon to translate like google translate?

I want to make an option like google translate have, when a user copies a text from anywhere in the mobile, a floating button comes for 5 seconds. When the user clicks on that floating button, the copied text is translated into a small window.
Like this
So my question is, how to make above floating button when user copy text from anywhere in mobile?
Please help me to make that...
It is possible by clipboard manager of android but tell me all process please...

Search a word in TextView - android

I have a problem: I have a text in a TextView in an android application. The users shall search a word in this text with an EditText and a button and the view should go to the word that is found and mark it. If there are more search solutions than one, it should be possible that the user can click on a 'Next' button and the next word that is found should be shown.
It's very important.
Does anybody know how to code this? THANKS for help!
you can get searching text from user using toolbar search view and then apply search with String.indexOf() then highlight result via SpannableString class

how to select the word by click on screen

I want to select one word from a text by click screen. Not use spannable or listener. Maybe should change something from the source code just like framework.
Just like the picture in this page: http://bbs.csdn.net/topics/390694750.
Thank your!

Adding icons in EditText for messaging purpose like whatsapp or msn

I have researched on Google how to insert icons in EditText. However, most of it is talking about something like: How to add icon inside EditText view in Android ?.
That is adding a static icons.
However, what I like is adding icons between the text like typing message in MSN or Whatsapp. First of all, there is a button near the EditText. When clicked, show a dialog that can choose any icons. After choosing the icons, it will append after the text.
Is it possible to do it?
If you want this ! so ImageSpan is what you want.And Introduction to Spans is complete tutorial how to use Spans

Categories

Resources