Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Show keyboard

$
0
0

Help me pleas. It is necessary that when you open the page show the keyboard and it was not possible to close it, ie that it is always visible in index.js method open controller:

///index.js
function toJoin(){
    $.rootWin.close();
    Alloy.createController("join").getView().open();
};
///
//join.js
$.sendPhone.addEventListener("open", function(){
    $.phoneField.focus();
});
//join.xml
<Alloy>
    <Window id="sendPhone">
        <View id="phone">
            <View layout="horizontal" left="33%" width="100%">
                <Label class="labelTopFunky" /> 
                <Label class="labelTopSales" />             
            </View>
            <Label right="2%" top="0.05%" onClick="confirmPhone">?????</Label>
            <Label class="inputLabel" text="??????? ?????\n ?????? ????????">
            <TextField id="phoneField" class="bigField" />
            <Label id="descriptionPhone" class="descr"/>
        </View>
    </Window>
</Alloy>
//join.tss
".bigField":{
    top: "30%",
    right: 0,
    height: "12%",
    width: "100%",
    backgroundColor: "white",
    borderRadius: 0,
    borderWidth: 0,
    textAlign: "center",
    color: "#5F605F",
    font:{
        fontSize: "26dp",
        fontFamily: "HelveticaNeueLight"
    },
    keyboardType: Ti.UI.KEYBOARD_NUMBER_PAD,
    softKeyboardOnFocus: Titanium.UI.Android.SOFT_KEYBOARD_SHOW_ON_FOCUS 
}
//.....

Viewing all articles
Browse latest Browse all 8068

Trending Articles



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