Android spinner-like selectors - android

I am wanting to have option selectors like the AutoTrader app. The way it works, the user must first select a car make from a list and after a make is selected, the user must select a car model under the selected make. I was thinking of implementing a spinner but I like how they have it on their app better. I am not sure how I would implement this. I was thinking about TextViews that would open an AlertDialog but on the AutoTrader app, you can't choose a model without first choosing a make. I am not sure how I would do this with TextViews. Does anyone have any other idea on how I could implement this? Thank you. I provided an image of the AutoTrader app just in case some people aren't familiar with it.

Related

creating android text-based game

I am thinking about creating a text-based game (similar to gamebooks) for android device. In this moment only theoretically. Do you have some advice please, which way to go?
You probably know how gamebooks works, but the gamebook I want, will be very easy, should work like this:
User has shown some image, text and 3 options (questions), he decides which option to click, then a new page is showing (according to the clicked option) with another image, text and another 3 options. Then again, the user clicks one option, another page opens, etc.
My question is not how to do it programmatically, but how to start with this in Android Studio, what system to use for such game on android or which way to go.
Because I think it has no sense to create intents after each click, as there might be hundreds of clickable options.
I have already created such game on my website with php/html/js, but I want to create it also offline for android.
Intents implies one activity per page - unmaintainable.
You should work with a database and load based on user interaction. So you'll need to learn about Databases and Asynchronicity (working in the background while updating the UI so the user knows)

Android Multiuser DIsplay Different Templates

I have a question that I am struggling to find the answer to. What I am looking to do is create an app that will show a different template depending on the user that signs in.
For example, two users A and B. When A logs in I am hoping for them to see a tabbed template that will have features x,y and z but when B logs in I am hoping they will see a simple activity with feature c.
Ideally there will be a point of contact for the admin that will allow them manage the different templates and who sees which ones.
Is this something that can be achieved at all or is it a waste of time?
Can you please tell me exactly how you wanna show templates to the user like in listview or something else.
Secondly the thing which you want is achievable this has to be done from the server end suppose if you are showing your template in a listview so server will send you data accordingly like if user A logs in the db will give you value of the templates which your admin wants to show to your user and later you can open the templates according to the listview item selected .
Happy Coding .

Xamarin Android menu/submenu items - best practice

I have an an Android app that requires that i give the user options to turn on or off certain brand names within specific categories.
So for example, I need to display categories such as Fashion, Music, Film etc (about 10-15 categories in total). Then the user needs to be able to click on a category and be presented with specific brands relating to that category which they can turn on and off, using perhaps a radio button or switch, depending on if they like that brand or not.
Can anybody advise as to a good way to display this kind of layout and what controls / layout to use. I'm currently thinking of using a grid layout for the categories, then submenu items or popup menu for the brands, but i'm not sure if they is a better way to go.
Also, i may need to include the brands actual logo so i need to allow for that to be possible in whatever view control i choose.
I think a great way to show that kind of thing would be using a Card View.
Xamarin has an example on how to use it available here: http://developer.xamarin.com/samples/CardViewSample/
To use it you must add the nuget package for it to your project: https://www.nuget.org/packages/Xamarin.Android.Support.v7.CardView/

Allow user to copy an image

I'm writing an app that generates an image, which I'd like to allow the user to copy so they can share it with other people.
Unfortunately, there's no copy/cut/share menu appearing when I do a long click on the image. I thought the OS would naturally do this, as it comes up in many different apps. Am I supposed to write some code before it will do this, or is there something in the layout that needs to be changed?
I've tried to google this, but the search results are taken up by various clipboard manager apps.
The OS doesn't naturally do that. You need to implement a OnLongClickListener on the ImageView, and implement a floating context menu.
But if you want the user to be able to share things, I would suggest the ShareActionProvider instead.

Add Android App in "select an action" menu

I´m looking a way to add my app in select an action menu that appears when one user wants to add one picture in another app (i.e chats apps).
So, when the user selects that option, android lists the apps like camera, gallery, and others.
Well, i want to appear in that menu. i know it is possible (intents, intents filters ?), but I couldn`t get the answer :(.
thanks, and sorry for my baad-bad english :$
Adding yourself to the menu can be done as outlined in this question. Actually providing a response can be done as seen here.

Categories

Resources