Here is my XML code for the Edittext and i set id with this name ettMId
<EditText
android:id="@+id/ettMId"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/login_hint_email_id"
android:imeOptions="actionNext"
android:inputType="text|textEmailAddress"
android:nextFocusDown="@id/etLPassword"
android:singleLine="true"
android:theme="@style/AppEditTextStyle" />
I want that ID programmatically in my activity class.
I tried this code for getting id
int id=ettMId.getId();
But I got below result
If2131230797
Actually I want same id name(ettMId) which I had set in XML