Create android dialpad like number input show control -
hi want create control activty android default dialpad number showing control. created edittext control it.
<edittext android:id="@+id/editid" android:hint="enter number" android:layout_width="fill_parent" android:scaletype="center" android:singleline="true" android:cursorvisible = "false" android:layout_height="wrap_content" > </edittext>
but not looking great trying show inpput number centre , keep on decreasing text size if there more numbers entered upto size.also unable set background drawable make dialpad's input box.
i tried button control.
<button android:layout_height="45dp" android:textsize = "25dp" android:singleline = "true" android:id="@+id/input_number" android:textcolor = "@color/white" android:layout_width="320dp" android:background="@drawable/num_button"> </button>
its showing want problem not been able set text qwerty keypad edit text taking automatically.
please suggest me control choose , desired behaviour.
thanks
set gravity of editext
center , work
android:gravity="center"
Comments
Post a Comment