Skip to content

Instantly share code, notes, and snippets.

@MotiurRahman
Created August 26, 2019 15:08
Show Gist options
  • Save MotiurRahman/0de2c6df5005e35850adf7b05680fccd to your computer and use it in GitHub Desktop.
Save MotiurRahman/0de2c6df5005e35850adf7b05680fccd to your computer and use it in GitHub Desktop.
TextArea in landscape mode.
var win = Titanium.UI.createWindow({
title : 'Pin Example',
backgroundColor : 'white'
});
var view = Ti.UI.createView({
backgroundColor : 'white',
layout : 'vertical',
top : 20
});
var textArea = Ti.UI.createTextArea({
top : 60,
maxLength : '255',
borderColor : "#e0e0e0",
borderRadius : "4dp",
backgroundColor : "#FFFFFF",
editable : "true",
color : "#515151",
font : {
fontSize : '18dp',
fontFamily : 'OpenSans-Regular'
},
height : "170dp",
left : "0%",
right : "4%",
//top: '1%',
keyboardType : Titanium.UI.KEYBOARD_TYPE_ASCII
});
view.add(textArea);
win.add(view);
win.open();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment