2016-07-08 110 views
0

我有鈦SDK 5.3.0.GA在Android上的麻煩......刷新屏幕的Android麻煩Appcelerator的

當我點擊一個按鈕和一個全視圖打開屏幕的頂部(透明包裝與另一個視圖與內部的一些內容),屏幕刷新只在應用程序的左上角,而不是每個地方(正如你可以看到的圖片)。

這是很奇怪的,我沒有在iPhone這樣的麻煩......但是當我打開菜單與按鈕,屏幕刷新良好,包裝物normaly顯示..

任何一個現在爲什麼當我點擊按鈕時它不工作?

謝謝您的幫助

麻煩,我有圖像在屏幕

enter image description here

上顯示

Trouble that I have in the image

什麼通常有

我的包裝看起來像:

wrapper = Ti.UI.createView({ 
    backgroundColor : 'transparent', 
    height : 'auto', 
    width : 'auto' 
}); 

tView = Ti.UI.createView({ 
    opacity : 0.8, 
    width : 'auto', 
    height : 'auto', 
    backgroundColor : '#000000' 
}); 

tView2 = Ti.UI.createScrollView({ 
    width : '90%', 
    height : '70%', 
    top : '28%', 
    backgroundColor : '#FFFFFF', 
    borderRadius : 20, 
    showVerticalScrollIndicator : true 

}); 

tView2.add(lRestriction); 

wrapper.add(tView); 
wrapper.add(tView2); 
wrapper.add(btnCloseRestriction); 
win.add(wrapper);` 

回答

0

看起來像一個視圖大小的問題。你的觀點在尺寸上設置了什麼? (即高度/寬度)

+0

謝謝你的回答..正如你可以看到,有'汽車' – Chatis

+0

我試圖把'100%',而不是'汽車',但..這並沒有改變問題 – Chatis

+0

嘗試Ti.UI.FILL的高度和寬度。 – Ray