Android: multi select list preferences with autocomplete? - android

I need to let the user in my app to choose several cities.
so the users should be able to choose "All Cities" or "multiple cities", every tap on city name will be shown above the list, and every click on the list above, will bring it back down, I designed a sketch so you will be able to understand what i need.
the closest example i have found is android chips edit text:
https://github.com/klinker41/android-chips
but it works on contacts and actually its too much code for a pretty simple select list.
any idea?
Thank you!
Eran.

Finally, I have found exactly what I was looking for, you can find it here:
https://github.com/pratikbutani/MultiSelectSpinner
Thank anyway.
Eran.

There are many library in Github. You can find it here:
Multi Choice - Github Links
https://github.com/wongk/MultiSelectSpinner
https://github.com/GunaseelanArumaikkannu/MultiSpinner
https://github.com/pratikbutani/MultiSelectSpinner

Related

Google results number to show inside a text view in Android Studio

I would like to show just the Google results number of a specific sentence directly inside a view. Unfortunately, I do not know where to start.
I plan to do it with many sentences and make it refreshed each time the user get connected to the application.
Thanks in advance for your precious helps.
Just in case if someone is looking for an answer. Jsoup seems to be a great solution.

how can i implement a split button like below given image

i want this kind of drop-down button on my layout. i don't know the exact term, Please Help
I don't want a list, i only want when somebody tries to know about topic then he may click on that button, then button get split and all description related to specific topic will be shown to person.
I don't know how it would be implemented so i request the professionals to post answers
I searched from too many resources and tried to implement but i couldn't implement
Thank you
That is known as ExpandableListView. Refer to this example. Good luck
The closest component in Swing would be a JTree.
Read the section from the Swing tutorial on How to Use Trees for more information and working examples.
The next closest would be a JList, but you would need to add all the logic to support the expanding/collapsing of the list.

Finding people with similar parameter around you android app

So I'm currently working on an android app for a class project which essentially matches users who use the app to other users in vicinity that have similar interest inside the app as well. So the basic idea is, PersonA open up my app and there is a dropdown box that they can select say 1/10 interests options in the list. Then PersonB, who has already opened the app as well and specified their specific interest from the dropdown before can click a button that says "find a person near me within 100feet with my interest that I just selected". If the PersonA is within 100feet of PersonB with them both matching the interest selected, then PersonA is returned to the screen with where they are. How would you go about doing this solution in Android? Is there a library/class or some api that does this? I'm fairly new to android, so I'm not exactly sure how to approach this.
I've been looking through many forums and even stackoverflow questions, but can't seem to find exactly the way to implement this or even start to go about creating this solution. Any help is appreciated! Thanks :)

How to implement shopping cart in android

I am new in android. My app is basically is to scan the QR code to obtain product information such as the image, name, description and price and choose to add to cart and continue to do so(scan the qrcode) till user choose to end shopping and click to proceed to cart and will be shown the total prices of the items selected. User then can click either to edit the cart or proceed to the checkout. I have been searching tutorial but cannot find a complete one. Can anyone guide me through proper code how could i do this?
I do not think you will ever find a complete tutorial for the your task. However, a quick googling led me to zxing which can be used for processing barcode. I didnt go through the examples provided there, but I believe they are easy to understand.
Edit:
This is an exact duplicate of another question in SO. see
Now if that answer seems not enough for you, I think you are new to Android. Just google Android and you will find plenty of tutorials available. Start with Layouts, Activities, Intents, Bundles, Event Handling. To build what you want you would need a blend of many such small small things. Good luck
You will most probably wont find one single complete A to Z tutorial satisfying ALL of your app requirements .
But you can search for code/tutorial implementing parts of your app , like reading QR code , proceeding to next item etc . You will have to figure yourself out how it all comes together.
QR reader app on Google Play store

Help needed with android app code

I'm looking to make a new type app that when the user open it for the first time it will open up a pop-up menu that contains multiple check boxes that the user can select from and will then save their selections for later use. After the user selects their choices I would like to have a monthly based calender on this same screen that the user can select a date from and based on their selection this will then take them to a separate screen showing the news for that day.
I am fairly new to android app development and this will be my first go at it. I have read several books and websites but cannot seem to find the help I need to produce the code for the above desired functions. Any and all help with this will be much appreciated.
Read these tutorials and you'll be able to create just what you need
Tutorials
Your question is very vague in fact, so I will only suggest a few points to start reading from, that I believe are important.
I think that you will answer any other questions you may have by reading through the developer documents for Android and studying the supplied examples. But don't hesitate to ask another, more specific question if you run into trouble.
tl;dr
Activities (must read!)
Dialogs (you will need these)
Data Storage (also important for the app you describe)
If you're still lost, just get some sample code from the repository and toy with it.
Good luck!

Categories

Resources