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

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -