Last active
February 24, 2025 20:22
-
-
Save alexnaspo/4059914 to your computer and use it in GitHub Desktop.
easy facebook app style username/password fields using Appcelerator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fieldContainer = Ti.UI.createView({ | |
backgroundColor:'#fff', | |
borderRadius:5, | |
width:'80%', | |
height:Ti.UI.SIZE, | |
layout:'vertical' | |
}); | |
var username = Ti.UI.createTextField({ | |
width:Ti.UI.FILL, | |
hintText:'Email', | |
height:'40dp', | |
backgroundColor:'#fff' | |
}); | |
var line = Ti.UI.createView({ | |
width:Ti.UI.FILL, | |
height:'1dp', | |
backgroundColor:'#ccc' | |
}); | |
var password = Ti.UI.createTextField({ | |
width:Ti.UI.FILL, | |
hintText:'Password', | |
passwordMask:true, | |
height:'40dp', | |
backgroundColor:'#fff' | |
}); | |
fieldContainer.add(username); | |
fieldContainer.add(line); | |
fieldContainer.add(password); |
<script src="https://gist.github.com/alexnaspo/4059914.js"></script>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
passwor : verdadero ,