Looks like a treeview is how you want to display the data. I would store it
using a parent-child format.
I'm sure there is some code out there that parses XML, so take that code and
modify it to parse your files in the same manner.

On Thu, Nov 12, 2009 at 4:25 AM, [email protected] <
[email protected]> wrote:

> Hello all,
>
> I'm trying to get a usable program for the Android to allow it to sync
> with Emacs Org-Mode. I'm pretty good with Python, but Java is a new
> beast to me. Currently, I've got it so that it can contact the server
> and sync the files. However, now that I've got the files downloaded,
> I'm trying to get it parsed and split into a ListView so that it can
> be viewed and edited. (An example of what I'm trying to do can be
> found here: http://mobileorg.ncogni.to/[1] ). The files each look like
> this:
>
> * Headline 1
>    Some Body Text
> ** (Headline 2) First Child of Headline 1
> *** (Headline 3) First Child of Headline 2
> ** (Headline 2) Second Child of Headline 1
> * Headline 2
>
> I'm stuck figuring out the best way to store the data object-wise to
> easily go through the headlines and children, and to pass the info to
> a ListAdapter. Any thoughts?
>
> [1] The MobileOrg software was developed for the iPhone, but it looks
> like it's doing the equivalent of a series of ListViews. When an item
> is selected, it show a ListView of the children of the headline.
> Ideally, each ListView would open up all the children onClick(), and
> open up a context menu onListViewLongClick().
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to