android - About extending LinearLayout -
i need create view extends linearlayout contain standard android widget. i've created class mylinearlayout extends linearlayout class; now, how can use element in xml layout file? can't working , haven't been able find info , i'm bit confused... o.o
assuming
package com.example; public class mylinearlayout extends linearlayout...
in xml can use
<com.example.mylinearlayout android:id="@+id/mylayout" [rest of attributes go here] > [other stuff here] </com.example.mylinearlayout>
Comments
Post a Comment