Replacing the spinner textbox with a custom textbox - android

I was just wondering if it's possible to replace a spinner textbox (default) as shown in the image below:
with a custom textbox ( like an arrow at the end and nothing behind the selectable textbox as shown:
If it's possible how do I go about it? How do I replace

Related

How to highlight textinputlayout on focus without bringing the keypad up

I am trying to design a control of TextInputLayout, on click of which a pop up will appear to select item. I want to highlight this TextInputLayout when clicked that means showing floating label but don't want to show the keypad of edit text.
Please note: I am using TextInputLayout Edit text because i want the look of floating label when an item is selected.
Thank you

Android hardkey keyboard

I have hardkey dialpad through which I want to enter number as well as alphabets, like a old dial pad mobile phone.
Now I want is, that when I enter text in edittext, a small keyboard or fragment should pop up showing all options possible right next to the edit text.
For ex. if I press 2, it should show |2|A|B|C| right next to edit text.
Any ideas on how to implement this?
I found a solution.
I declared a Linear Layout in my activity_main.xml
after doing that I programatically add required buttons to a dynamically created view and then add that view to the original layout dynamically, along with moving it with the cursor.
That solves my problem

How to add a share button to the text selection bar for an EditText?

I notice that when highlighting text in a WebView a share button appears along with the standard copy and select all buttons:
but when highlighting text in a TextView or EditText, there is no such button.
Is there any way to add such a button via XML or can it be done programmatically?
You can achieve that by setting a custom selection action mode using
TextView.setCustomSelectionActionModeCallback(ActionMode.Callback)
and so the EditText
Here's a similar question with that was answered with an example
Also visit TextView.html#setCustomSelectionActionModeCallback

Android EditText going to blank when i hide soft input keyboard

I have previously posted
EditText in GridView : How to get value from Multiple EditText
Android : newView() and bindView() with SimpleCursorAdapter
I got a little bit of success on the second question but I have one more problem like:
My GridView has 1 ImageView, 1 TextView and 3 EditText, when I am pressing the back button for hiding soft input keyboard, I got the blank value of every EditText.
Showing images:
1.First time Viewing GridView:
2.While filling up value of EditText:
3.Click on Next of Soft Input Keyboard, Its displaying QWERT keypad:
4.Cleaning all Edited EditText :
What is the reason behind this??
Please help,
You help would be appreciated...

Android Floating EditBox

I have an OptionMenu which has single option in it named "Search". When the search option is clicked, it should dynamically add a EditText at the top of Activity window like it has in WebView (browser address bar) so users could search something in my application.
After there would be EditBox, one can write inside it. I also want to have some OnTextChanged like event of that EditBox so do you think it's also available with that View?
I made it myself. I added an EditText on the screen with setting as hidden and on button click made it visible. It worked like a charm.

Categories

Resources