how to get the elevator in my window + Android

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

hello

I have a window that contains a tableview and wish to have an effect asseceur me so I can move up and down from my window

so I tried to add a container but it does not work

can you tell me what I should do

thank you

var win = Ti.UI.currentWindow;
 
var container = Ti.UI.createScrollView({
    top:0,
    contentHeight:'auto',
    layout:'vertical',
    width:320,
    bottom:0,
    showVerticalScrollIndicator:true,
    showHorizontalScrollIndicator:false
});
 
 
 
win.add(container);

1 Answer

If you are just trying to scroll the tableview then you can try the scrollToIndex on the tableview to get the effect you're looking for.

— answered 2 years ago by Anthony Decena
answer permalink
2 Comments
  • you can give me a sample code please!

    thank you

    — commented 2 years ago by sabrina sabrina

  • I found it as an example but for the iphone but I want something for the android

    tableView.scrollToIndex(10,{
        position:Titanium.UI.iPhone.TableViewScrollPosition.MIDDLE,
        animated:true
      }
    );

    — commented 2 years ago by sabrina sabrina

Your Answer

Think you can help? Login to answer this question!