I am trying to implement a group-like thing in my app. So I was trying to create the "Create Group" view. It is really simple - Just 2 EditTexts and one button for confirmation. And a ListView showing the suggested users based on what you type.
But for the second EditText, I am trying to implement something like the one in Facebook Messenger and Hangouts: It is like an EditText but it has custom views in it (not just plain text) listing the users which you added.
I found someone who asked a similar question here: How do I achieve a Facebook Messenger/ Google Hangouts like layout to preview selected items in search bar on ANDROID?
But I have no idea how to use the class in the answer.
Could anyone help? Thank you!
Related
Basically what I want to create can be best illustrated from a screenshot.
I have a listview of people just like FB Messenger app. I want the ability for my users to have a search bar like the one shown in the screenshots.
It should have the following properties:
1) Search bar should preview names of people selected in the list view
2) People can be de-selected by hitting backspace on any name in the preview search bar
3) The search bar should be able to filter the bottom list of people as the user types.
I have a solution for propert 3) but I am clueless about the other two.
Please HELP!!!
You should check out this.
This class uses combination of TextWatcher, SpannableString, AutoCompleteTextView and Annotations.
I have used this forum when I didn't know how to do something, but now I have decided to begin participating in it.
I would like to know how could I do a dropdown text (maybe it has a specific name and that's why I don't find any results on the internet). I mean, I have some tags in the screen (About, Company, Contact, ...). Each of these tags has a down arrow on the right side, and when I click it, it has to display (and hide if it's clicked again).
Here are the links with the images of what I want to do.
http://i45.tinypic.com/4fzoso.png
http://i47.tinypic.com/2u5886q.png
Thank you in advance!
You should use an ExpandableListView component.
There is a tutorial for it here.
Finally I did it with ImageViews and TextViews using the property android:visibility. Now that it's a static version is working properly. I hope that it continues working well when taking the information from the DB
I had implemented auto-suggestion functionality using MultiAutoCompleteTextView successfully and everything is working fine except i'm not able to display auto-suggestion list above the soft-keyboard.
Android Gmail app has the same functionality. [see below image]
Question:
I want the exact functionality, want to a display a suggestion list on
the soft-keyboard but i don't have any clue how to achieve this. My
suggestion list is always hidden behind the soft-keyboard.
How to show auto-suggestion list above the soft-keyboard like Gmail
app?
I had tried playing with different android:imeOptions and different xml attributes and did a lot of searching but nothing helped.
Is there any public Api or XML attribute is available to do so?
Does anyone have any clue or idea about how to achieve this.
Code Structure : My fragment opens an AlertDialog which contains MultiAutoCompleteTextView where i'm implementing auto-suggest.
Any help or suggestion which leads to the right direction, would be greatly appreciated.
I am developing a chat application. And i want to have pop up window with smileys in it so that when user clicks on one of smileys it will be inserted to edit text box.
Does anyone know sample code for it?
I wanted code for both pop up window and code to embbed smileys in an application.
(same as in case of yahoo which has smileys.how to code for it and how to store them in database and all)
Take a look at the PopupWindow. You'll want to use it in similar fashion to this tutorial here: http://www.mobilemancer.com/2011/01/08/popup-window-in-android/.
I would populate it with your drawable images, and then attach to each image you create a onClickListener that would insert the smiley into whatever text window your using.
I'm not an Android expert, and I'm still learning myself, but this is one approach I would investigate.
I am working in android. i am trying to display name of university using listView.
my list view is looking like this.
Now i want to add a search bar on the top of this list view. if i press A in search bar then this list view should display all the name of university start with A, if i press some other character then according university name must be displayed.
Please tell me how can implement this. Is any way to make search bar in android. I have seen in iPhone, it works very efficiently in iPhone. Please help me how can make this search bar ?
Thank you in advance...
This may be the long way. but this is just an idea..
I think you have to create a layout xml file with one EditText and ListView. Inside activity you have to listen for textChange in EditText and then probably you have to filter your ListAdapterbased on the text entered by the user and bind it with ListView.
See the complete example here : http://www.androidpeople.com/android-listview-searchbox-sort-items
You can use setTextFilterEnabled(true) on your list view.
I think this may help you to get an idea. http://developer.android.com/resources/tutorials/views/hello-autocomplete.html