I have certain number of edittexts in my activity and I specified each edittext with input type :"number"
In order to show the keyboard only with numbers. when I click on the edittext initially it shows the keyboard with number after a fraction of second it changed to text keyboard.so I cannot types numbers directly.
Even though I've given
android:windowSoftInputMode="stateHidden"
this to my activity.
I don't know the reason why it is changed like that,
<EditText
android:id="@+id/editText1"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:textColor="@color/black"
android:textSize="30dp"
android:layout_weight="25"
android:textAlignment="center"
android:gravity="center_horizontal"
android:inputType="numberDecimal"
/>
Thank you All for given response to my question I rectified the problem, when I removed these lines"android:textColor="@color/black"
android:textSize="30dp"
android:textAlignment="center"
from my code keyboard worked properly Once again thank you All