ios - Porting a TabViewController based app to Android -


i in process of porting on ios application android platform. have no experience in platform , ask advice on how best structure app. on ios end, app tabviewcontroller 3 tabs, each list view. list view populated http request server requesting user ids , user information. how can these components working in android?

well, you'll need few components done.

if know nothing @ android, before getting started recommend learn basic layouts, activities , views following written guide (follow getting started section):

http://developer.android.com/training/index.html

for starters, need ui layout have tabs, recommend following guide:

http://developer.android.com/guide/topics/ui/actionbar.html#tabs

second, you'll need have listview component in each tab. use simple xml define listview component in layout xml files (this example take entire tab):

<listview android:layout_width="match_parent"     android:layout_height="match_parent"     android:id="@+id/listview" </listview> 

and here's guide explains how fill listview data using adapter:

http://developer.android.com/guide/topics/ui/declaring-layout.html#adapterviews

third, you'll need component downloads information web server , updates adapter. must on separate thread, you're not allowed network operations on ui thread in android (to keep ui available user actions). can use asynctask that, following guide:

http://developer.android.com/training/basics/network-ops/connecting.html

now, how parse data you, if possible recommend using json , jsonobject class makes parsing pretty easy.

good luck , welcome android!


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -