Thank you for that!!!!!!!   

First off, I never thought of implementing it that way.  I know you said to 
use google, but what would I search in google to find a tutorial on how to 
simply change the data in the list view?  I'm not very good on terminology, 
so researching can be kinda tough for me.

Also, I completely understand what you are saying about the navigation 
issue.  To be honest, I sorta want to keep it this way, but the issue you 
brought up about having to click back to get to the home screen seems like 
an issue I have to look into.  I was told to put this all into a JSON file 
and have it read off of that to make the list views.  I still seem a little 
confused on how this is to be implemented.  I wouldn't know where to put 
the graph data.   I have each drug description all in my strings file, but 
as far as making the navigation with one list view, I feel a little lost on 
this.  Maybe if you know if any good youtube videos or online tutorials on 
this exact thy of thing, that would be great.  

Thank you again for answering! 

On Friday, January 22, 2016 at 7:35:39 PM UTC-8, Mark Phillips wrote:
>
> Matt,
>
> Assuming your data has some sort of hierarchy (ie Graph_10.jpg), then you 
> only need one listview in an activity. As the user drills down into your 
> data (ie selects an element from the list), all you need to change is the 
> data displayed in the same listview. You don't need an infinite set of 
> nested listviews, you just need to change the data behind the listview.
>
> In a nutshell, a listview has a dataAdapter providing the data. Once the 
> user makes a selection in the list view, change the data in the adapter and 
> use notifyDataSetChanged on the listview and the data displayed will change 
> to the new data set. 
>
> There are lots of examples on how to do this - Google is your best friend 
> here. 
>
> As an aside, you may want to do some research on Android UI best 
> practices. Looking at your data graph, I see two potential problems with a 
> listview solution.
>
> 1. (breadth issue) You might end up with a listview having scores of 
> elements at a particular level, and few will be willing to scroll all the 
> way through that list to find what they want. You might want to take a look 
> at the google contacts app as one way to handle this particular problem. 
>
> 2. (depth issue) The other problem you face is it may take 10 or more 
> steps to drill down to the final piece of data. This is annoying to the 
> user in the number of clicks it takes to get to the bottom of the 
> hierarchy, as well as the difficulty of getting back to the top, the 
> middle, or somewhere else in that hierarchy. Very easy to get lost and 
> frustrated with this approach. 
>
> You may want to take a hard look at the real problem you are trying to 
> solve for the user with all this data and find a different UI strategy that 
> solves that problem.
>
> I hope that helps shed some light on your questions, and good luck! 
>
> Mark
>
> On Fri, Jan 22, 2016 at 7:00 PM, Matt Fach <matt...@gmail.com 
> <javascript:>> wrote:
>
>>
>> Hey thank you again for replying!  I really appreciate it.  
>> Lemme add the pictures.  Can you maybe explain this in more detail?
>> "Again, if you need to represent a hierarchical structure (think file 
>> system) then you could very simply have a single activity that has a list 
>> of items, where clicking any item starts a new instance of the same 
>> activity with the list containing the children of the previously selected 
>> node. "
>>
>> Basically what I want is for the user to be able to navigate though all 
>> the categories and discover different drugs.  for instance the users will 
>> get
>> a list view of a bunch of different drug categories arranged by 
>> pharmacology.  Then the user can enter into one of those drug types.  Then 
>> in the next screen will be another list of that specific drug type broken 
>> down into more categories.  So multilevel listviews.  I don't really like 
>> the "expandable" listviews where it all shows on one screen.  It kinda 
>> looks sloppy
>>
>> So, I am sure there is a much better way of approaching this.  Again, I 
>> was a little confused to your response I put in quotes.  Could you maybe go 
>> into a little more detail of what I should do to obtain this?  Or a better 
>> idea, ect..
>>
>> Do you understand basically what I am trying to do with my app? 
>>
>> Thank again!
>>
>> Again, lemme know if I didn't convey anything properly.  I suck at 
>> explaining stuff.  :P
>>
>>
>>
>> On Friday, January 22, 2016 at 3:56:52 PM UTC-8, TreKing wrote:
>>>
>>>
>>> On Fri, Jan 22, 2016 at 5:05 PM, Matt Fach <matt...@gmail.com> wrote:
>>>
>>>> Thanks for responding!!
>>>>
>>>
>>> Sure thing holmes.
>>>  
>>>
>>>> It seems like I had a hard time conveying what I want to do.  Basically 
>>>> I want to have multilevel listviews.  I have only got it where I can embed 
>>>> one list view in a list view.  Do you know of any good tutorials that show 
>>>> how to do this?
>>>>
>>>
>>> You can look at ExpandableListView 
>>> <http://developer.android.com/reference/android/widget/ExpandableListView.html>
>>>  
>>> for a built in widget that supports one level of depth and see if you can 
>>> modify it for your needs.
>>> You may even be able to bend ReyclerView 
>>> <http://developer.android.com/reference/android/support/v7/widget/RecyclerView.html>
>>>  to 
>>> do your bidding.
>>>
>>> However, neither this is going to be easy, or even likely doable. 
>>> Attempting to have a listview that itself has a list of listviews, each of 
>>> which themselves have lists of listviews, is just going to lead to you 
>>> having yourself a bad day.
>>>
>>> Again, if you need to represent a hierarchical structure (think file 
>>> system) then you could very simply have a single activity that has a list 
>>> of items, where clicking any item starts a new instance of the same 
>>> activity with the list containing the children of the previously selected 
>>> node.  
>>>  
>>>
>>>> So if you look at the graph, every node is going to be a list view, but 
>>>> the children at all the drugs which will have a description of the drugs.
>>>>
>>>
>>> That wasn't clear.
>>>  
>>>
>>>> I attached a couple pics of how the app look like so you have a better 
>>>> idea of what I am trying to do.
>>>>
>>>
>>> I see no pics attached.
>>>
>>>
>>> -------------------------------------------------------------------------------------------------
>>> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago 
>>> transit tracking app for Android-powered devices
>>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Android Developers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to android-developers+unsubscr...@googlegroups.com <javascript:>.
>> To post to this group, send email to android-d...@googlegroups.com 
>> <javascript:>.
>> Visit this group at https://groups.google.com/group/android-developers.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/android-developers/16158633-a86a-4152-a22c-f75536ceede5%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/android-developers/16158633-a86a-4152-a22c-f75536ceede5%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/c65a0216-3c70-4329-9c08-fd5813fc7ce3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to