简体   繁体   English

使用Delphi10.1在android中以一种形式使用2种不同样式

[英]using 2 different styles in one form in android using Delphi10.1

是否可以在一个android表单中使用2种不同的样式?,我在整个表单中使用铜样式,并且我想对speedButton使用Jet样式,但我没有看到ant属性来设置该样式

One style usually refer to one Image file with all style graphics (icons etc). 一种样式通常是指具有所有样式图形(图标等)的一个Image文件。 So if you want to use SpeedButton from another style - you need to use Photoshop or any Image editor: Save style images of 2 styles, open images in PS, copy speedbutton part from Jet style image, paste it into your current style image file (usually 3 bitmaps, for 3 scales). 因此,如果要使用其他样式的SpeedButton,则需要使用Photoshop或任何图像编辑器:保存2种样式的样式图像,在PS中打开图像,从Jet样式图像复制speedbutton部分,将其粘贴到当前样式图像文件中(通常是3个位图(3个比例)。

For Jet speedbutton main Bitmap is "Android Jetstyle.png" - search it in styles. 对于Jet speedbutton,主要位图为“ Android Jetstyle.png”-以样式搜索它。 Save this bitmap as png so you can open it in ImageEditor and copy some part to your style image. 将此位图另存为png,以便您可以在ImageEditor中将其打开并将部分复制到样式图像中。 Then find Speedbuttonstyle in styles, check object with name background - look at NormalLink, PressedLink, HotLink images. 然后在样式中找到Speedbuttonstyle,检查具有名称背景的对象-查看NormalLink,PressedLink,HotLink图像。

All this will take some time. 所有这些将花费一些时间。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM