tags:

views:

156

answers:

1

Im planning to build my own custom layout manager.

What i wanted to know was if there is any other way to build one apart from extending the View class, coz this is the only approach i know for now and would like to know if there is any other way to do it??

+1  A: 

LinearLayout extends the ViewGroup class http://developer.android.com/reference/android/widget/LinearLayout.html

TableLayout extends LinearLayout http://developer.android.com/reference/android/widget/TableLayout.html

I assume the source of both these classes are available from http://android.git.kernel.org/ but I am not sure in which project.

I would have had a look at the classes above and seen if I can extends LinearLayout or if I should extends ViewGroup

dparnas
Roman Nurik
Thanks dparnas, Ill look into the code. As i have posted a new comment above about what i want to do, maybe you have any more suggestions?
Funkyidol