I am creating a module having a class (roundbutton) extending linear layout. It contains an image view and a textview.
When the roundbutton view is declared in the XML file, a layout_width and layout_height values are assigned. I want the imageview dimensions to be proportional to the layout dimensions assigned. Hence how to pass the layout dimensions to the view class so that I can assign the proportional dimensions to the image view?
P.S.: This question does not deal with passing custom attributes. But deals with passing the android:layout_width
and android:layout_height
to the custom UI Class.