How to get android default attributes in a custom view
问题 I have created a simple custom view that contains a RelativeLayout and an EditText : <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content"> <EditText android:id="@+id/edt_content" android:layout_width="match_parent" android:layout_height="wrap_content"/> </RelativeLayout> Also I have added some custom attributes in res/values/attrs.xml and I retrieve these attributes in my custom view constructor and