Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (keyboard)
Viewing all articles
Browse latest Browse all 352

Can not able to change keyboard type in iPad.

$
0
0

Hi All,

I am using

Titanium Studio : Titanium Studio, build: 3.1.1.201306112235,

SDK : 3.1.1.GA,

OS : Mac OS X 10.8.2,

Processor : 2.5 GHz Inter Core i5,

Memory : 4 GB

with commonJS structure.

I want to change iPad keyboardType to numpad or decimalPad, I set it into Text field's property but it remains default. can not able to change its type. it remains same in simulator and device also.

is there any way to change keyboardType?

Here is some sample code that I use:

var txtAmount = Ti.UI.createTextField({
        value : "",
        left : 10,
        width : "90%",
        hintText : "Enter Amount",
        color : "gray",
        top : 10,
        height : 35,
        clearButtonMode : Ti.UI.INPUT_BUTTONMODE_ONFOCUS,
        keyboardType : Ti.UI.KEYBOARD_DECIMAL_PAD,
        font : {
            fontFamily : "Open Sans",
            fontWeight : "regular",
            fontSize : 14
        },
        backgroundImage : "txtbackgroundImage.png", // Please remove this
        leftButtonPadding : 5,
        bubbleParent : false,
        maxLength : 10
    });

Viewing all articles
Browse latest Browse all 352

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>