Hi,
I defined a layout like this:
<LinearLayout>
<ListView />
</LinearLayout>
and I want to use a wrapper class for it:
public class MyView extends LinearLayout {
ListView mListView;
public build() {
mListView = (ListView)findViewById(R.id.mylistview);
}
}
not sure how to inflate this from my layout file:
MyView v = LayoutInflater.from(this).inflate(R.layout.myview, null);
the inflater of course does not know what 'MyView' type is, and returns only View. What's a good way to reconcile this?
Thanks