Get Hint attribute Value from AttributeSet

admin

Administrator
Staff member
i have overridden EditText as given in <strong><a href="http://arunbadole1209.wordpress.com...ate-edittext-with-crossx-button-at-end-of-it/" rel="nofollow">this link</a></strong>.

Now while declaring this field inside layout i am using

Code:
&lt;com.and.ab1209.ClearableEditText
android:id=”@+id/edit_text_clearable”
android:layout_width=”fill_parent”
android:hint="My Hint Goes here"
android:layout_height=”wrap_content” /&gt;

How do i retrieve this hint value inside any of these constructor.

Code:
 public ClearableEditText(Context context, AttributeSet attrs, int defStyle){...}
 public ClearableEditText(Context context, AttributeSet attrs){...}

How do i do this?