0

タブバーを使用しています。tableView を追加したウィンドウがあり、ウィンドウの下部 (テーブル行の最後ではなく) にビューを追加したいと考えています。常に一番下に表示されるはずです。助言がありますか?

4

1 に答える 1

1

テーブルビューの下にスペースを作り、別のビューをウィンドウに追加します

例を次に示します。

var mainWindow = Ti.UI.createWindow({});

//This creates a tableview with a 100 pixel gap at the bottom of the window
var tableview = Titanium.UI.createTableView({top:0,left:0,right:0,bottom:100,backgroundColor:'green'});

//This adds the tableview to the mainWindow
mainWindow.add(tableview);

//This adds the view at the bottom of the screen that wont scroll and always stays fixed to the bottom
var bottomView = Titanium.UI.createView({bottom:0,left:0,right:0,height:100,backgroundColor:'red'});

//This adds the bottomView to the mainWindow
mainWindow.add(bottomView);
于 2013-06-22T14:15:59.500 に答える