Предположим, у меня есть класс, который расширяет ViewGroup
public class MapView extends ViewGroup
Он включен в макет map_controls.xml
следующим образом
<com.xxx.map.MapView
android:id="@+id/map"
android:background="@drawable/address"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
</com.xxx.map.MapView>
Как извлечь свойства в конструкторе из AttributeSet ? Скажем, рисуемое в фоновом поле.
public MapView(Context context, AttributeSet attrs) {
}