如何在 Android 上将 Picker Row 标题从黑色更改为白色?我尝试使用 TSS 和带有属性的 XML,但没有成功。
XML
<Alloy>
<View top="80" height="70">
<Label class="calendarViewDayDay" top="5" left="10" color="#FFFFFF" text="L('Rooms')"></Label>
<Picker id="Numberpicker2" top="20" left="10">
<PickerColumn>
<PickerRow title="1" />
<PickerRow title="2" />
<PickerRow title="3" />
<PickerRow title="4" />
<PickerRow title="5" />
<PickerRow title="6" />
<PickerRow title="7" />
<PickerRow title="8" />
<PickerRow title="9" />
<PickerRow title="10" />
</PickerColumn>
</Picker>
</View>
</Alloy>
Run Code Online (Sandbox Code Playgroud) javascript titanium appcelerator appcelerator-titanium appcelerator-alloy
是否可以对Appcelerator中的Label文本应用删除线?如果是这样,怎么样?
我使用 Appcelerator Studio/Titanium 创建了一个应用程序,最初仅适用于 iOS,我将所有图像直接放入资产文件夹中;app/assets. 所有图像在 iOS 上都可以正常加载,例如:
<ImageView id="logo" image="logoHorizontalWhite.png" />
Run Code Online (Sandbox Code Playgroud)
但是,当我为 Android 构建应用程序时,图像没有显示。
这是否意味着我必须将图像放入 Android 特定目录中,并且我需要为 iOS 和 Android 拥有所有图像的副本?
titanium appcelerator titanium-alloy appcelerator-titanium appcelerator-alloy
我有这样的网络服务:
{"person":{"name account":"Jhon Doe","Image":"image/test","Adress":"New York 43","Recomendations":"40"}}
Run Code Online (Sandbox Code Playgroud)
这就是我想要做的,当我打印datos我得到整个json但当我尝试打印只是名称或图像我没有得到任何东西
var urll = "example.com/example";
var json;
var xhrr = Ti.Network.createHTTPClient({
onload: function() {
json = JSON.parse(this.responseText);
var datos = JSON.stringify(json);
var medicos = datos;
Ti.API.info("Json! "+datos);
}
});
xhrr.open('GET', urll);
xhrr.send();
Run Code Online (Sandbox Code Playgroud)
我试过datos[0].person,datos.person但没有
我有一个简单的应用程序,我添加了一个带有标签和解释的几个视图的教程,这没问题,但我希望它在安装应用程序时只运行一次,或者只是在用户单击帮助标志时运行.在Appcelerator钛上有缓存类型内存我可以在两个操作系统中保存吗?提前致谢.
我在appcelerator中有以下简单代码.我试图将2张图像放在另一张下面.其实我有10个 - 我正在努力做到
image
newline
image
newline
image
Run Code Online (Sandbox Code Playgroud)
码
var win1 = Titanium.UI.createWindow({
backgroundColor:"yellow"
});
var imga = Titanium.UI.createImageView ({
image: "/png/a.png",
top: "10px",
});
var imgb = Titanium.UI.createImageView ({
image: "/png/b.png",
top: "20px",
});
win1.add(imga);
win1.add(imgb);
win1.open () ;
Run Code Online (Sandbox Code Playgroud)
当我在ipad模式下运行时,图像在彼此之上.如何将它们放在单个文件列中?
谢谢
我创建了一个具有以下属性的文本字段:
keyboardType: Ti.UI.KEYBOARD_DECIMAL_PAD
returnKeyType: Ti.UI.RETURNKEY_DONE
Run Code Online (Sandbox Code Playgroud)
我在iphone设备上测试了这个.出现小数点,但没有完成按钮.
我也试过其他按钮类型,没有成功.似乎无法设置returnKeyType为KEYBOARD_DECIMAL_PAD.
当我将键盘类型更改为KEYBORD_DEFAULT或KEYBOARD_NUMBERS_PUNCTUATION它的工作原理.
最后一个选项(KEYBOARD_NUMBERS_PUNCTUATION)是我可以使用的替代方案,但有人可以告诉我为什么它不能使用KEYBOARD_DECIMAL_PAD?
谢谢.
在我的钛金应用程序上,我有一个包含许多字段的表单(文本字段等),当我专注于文本字段时,它会显示ios键盘,当我在窗口上的某个位置单击时,我想隐藏它:
<Alloy>
<Window id="home" >
<View id="form">
<Require type="view" id="myViewForm" src="form/etape_1" />
</View>
</Window>
</Alloy>
Run Code Online (Sandbox Code Playgroud)
在myViewForm内部:
<Alloy>
<View>
<TextField id="name" hintText="name"/>
<TextField id="telephone" hintText="Téléphone"/>
</View>
</Alloy>
Run Code Online (Sandbox Code Playgroud)
注意:如您所见,我有一个ID为“ telephone”的文本字段,将仅显示数字。
在我的控制器主文件上:
/*-----------------------------------------
| | EVENT LISTENER CLICK ON WINDOW
-------------------------------------------*/
$.home.addEventListener("click", hideSoftKeyboard);
/*-----------------------------------------
| | HIDE KEYBOARD
-------------------------------------------*/
function hideSoftKeyboard(e){
if(Ti.Platform.osname === 'android'){
Ti.UI.Android.hideSoftKeyboard();
} else {
$.home.textField.blur();
}
}
Run Code Online (Sandbox Code Playgroud)
在android上运行良好,但是在ios上我遇到以下错误:
[ERROR] : Script Error {
[ERROR] : column = 103;
[ERROR] : line = 12;
[ERROR] : message = "undefined is …Run Code Online (Sandbox Code Playgroud) titanium appcelerator appcelerator-mobile titanium-mobile appcelerator-titanium
您好,钛金属手机开发人员,
我对navigationWindow有一些疑问,因为图片胜过数千个单词:
正如您所看到的,我有一个navigationWindow的蓝色后退按钮,以及带有图像的ScrollableView内容:
<Alloy>
<Window>
<ScrollableView id="scrollableView" showPagingControl="true" overlayEnabled="true" pagingControlColor="transparent" backgroundColor="black">
<View id="view1">
<ImageView class="fullBgImage"image="images/pubs/v2.png" />
</View>
<View id="view2">
<ImageView id="imageview_1" image="images/pubs/pub_un.jpg" />
</View>
<View id="view3">
<ImageView id="imageview_2" image="images/pubs/pub_deux.jpg" />
</View>
<View id="view4">
<ImageView image="images/pubs/guide.png" />
</View>
<View id="view5" >
<ImageView touchEnabled="false" image="images/pubs/start.png" />
</View>
</ScrollableView>
</Window>
Run Code Online (Sandbox Code Playgroud)
我的问题是我无法将后退按钮文本和箭头变为白色,并且我在ScrollableView的两侧都有填充.
我该怎样摆脱那些填充物?和颜色后退按钮?
以上解决了上述问题
我只是有另一个问题,是否可以全屏显示图像视图,我的意思是将后退按钮放在视图下方,请看下面的截图:
谢谢你的帮助.
每当我运行iOS 12应用程序时,都会显示启动屏幕,并立即关闭。我尝试创建一个新项目并通过USB在我的设备上运行它,它也崩溃了。但是,如果我在iOS 12模拟器上运行它,则一切正常。
以下是我的构建属性和环境的详细信息:
操作系统:10.14 macOS Mojave
Appcelerator Studio:构建5.1.1
Titanium SDK:7.4.1.GA
iOS SDK版本:12
Xcode:10.0
我使用的iPad具有iOS版本12.0.1。
配给配置文件不是问题,因为我尝试生成新的应用程序ID,带有新项目的新配置文件,但是仍然无法在设备上使用。
如果有人知道崩溃的原因是什么,或者知道如何获取崩溃日志文件,请赞赏。
我尝试将iPad连接到Mac,通过iTunes进行同步,然后尝试找到日志文件,但是我也找不到任何方法。
重新发布旧Appcelerator Q&A档案的这个问题
是的,问题仍然是一样的.在我的新应用中,我无法再在启动画面上隐藏状态栏.
我尝试了这些属性的所有可能组合(在tiapp.xml中)
<statusbar-hidden>true/false</statusbar-hidden>
<fullscreen>true/false</fullscreen>
<navbar-hidden>true/false</navbar-hidden>
Run Code Online (Sandbox Code Playgroud)