Textfield styling

You must Login before you can answer or comment on any questions.

I need to style my texfiled as in image. I am using background color, but its not giving the solution . Please check the image and help texfield

![alt text](http://s19.postimage.org/joiid26pf/textfield.png "textfield")

— asked 10 months ago by Gaurav Sood
1 Comment
  • ya i tried.. do you think image is good option ? please suggest.. is it work good with android ?

    — commented 10 months ago by Gaurav Sood

2 Answers

Accepted Answer

Hello,

Just use this peace of code and get exactly what you want :

var tf1 = Titanium.UI.createTextField({
    height:35,
    top:10,
    left:10,
    right:60,
    borderRadius:5,
    backgroundColor:'FFFF99',
    borderColor:'99FF33',
    borderWidth:2,
});

Use an image as you provided in the screenshot and set that image as the background image of your text field.This will give exact look and feel as you needed.

Your Answer

Think you can help? Login to answer this question!