私はAppceleratorAlloyの新しい開発者です。Plzは、デバイスの表示サイズに応じてテキストフィールドの高さプロパティを設定する方法を教えてくれます。
チタンで。
var name_Txt = Titanium.UI.createTextField({
height : (Ti.Platform.displayCaps.platformHeight< 481) ? 32 : Ti.Platform.displayCaps.platformHeight * 6 / 100,
width : "94%",
backgroundImage : "../images/textfield_dropdown.png",
top : "10",
paddingLeft : "10",
hintText : "Input Activity - optional scroll",
font : {
16,
fontWeight : "bold",
},
});
合金で
<TextField height="?" id="name_Txt" left ="2%" paddingLeft = "5" backgroundImage = "/appimage/textfield.png" width ="60%"></TextField>
または.tssファイル
"#name_Txt":{
height : ?,
}
前もって感謝します、