I am on my way trying to figure this out and hope there is someone who has a solution.
I want to create a custom layout for an Android application. This should theoretically be fairly straightforward, but I cannot find any useful information on how to do this.
I am looking for: 1) A simple, step-by-step tutorial on how to subclass ViewGroup to create custom layouts. 2) A basic understanding of internal mechanics, for example, how to access children's representations, how and when to ask a child's representations, how to draw oneself, how to define xml for a custom layout, how to access custom xml attributes, etc.
I looked all over the Internet, and I can only find small tidbits, and even could not start creating a subclass.
I found 1) The conversation listed at http://parleys.com/#id=2191&sl=3&st=5 , but after a few minutes it aborts the subscription request. 2) The API link to http://developer.android.com/reference/android/view/ViewGroup.html , but this does not give any idea of how to realistically implement the subclass.
source
share