2013年11月13日

摘要: 不多讲,直接上代码了。代码来自网络http://files.cnblogs.com/nywh2008/Bluetooth_LEDs_android.rar 阅读全文

posted @ 2013-11-13 21:33 至今 阅读(1857) 评论(1) 推荐(1) 编辑

摘要: unit Android.JNI.Toast;// Java bridge class imported by hand by Brian Long (http://blong.com)interface{$IFDEF ANDROID}uses Androidapi.JNIBridge, Androidapi.JNI.JavaTypes, Androidapi.JNI.GraphicsContentViewText;{$ENDIF}{$IFDEF ANDROID}type TToastLength = (LongToast, ShortToast); JToast = interfa... 阅读全文

posted @ 2013-11-13 21:21 至今 阅读(2293) 评论(0) 推荐(0) 编辑


2013年11月6日

摘要: 直接上代码:unit OpenViewUrl;interface // URLEncode is performed on the URL// so you need to format it protocol://pathfunction OpenURL(const URL: string; const DisplayError: Boolean = False): Boolean;implementationuses IdURI, SysUtils, Classes, FMX.Dialogs,{$IFDEF ANDROID} FMX.Helpers.Android, Androida... 阅读全文

posted @ 2013-11-06 16:12 至今 阅读(1351) 评论(0) 推荐(1) 编辑


2013年11月5日

摘要: 如何设计并使用FireMonkeyStyleFireMonkey使用Style来控制控件的显示方式。每个控件都有一个StyleLookup属性,FireMonkey就是通过控件的这个属性来在当前窗体的StyleBook控件中查找匹配的Style,如果找到了这个Style,那么控件就使用这个Style来显示。StyleBook是一个Style的集合,里面可以有窗体的Style,按钮的Style,文本框的Style,等等。每个Style其实就是一个控件,像常用到的TLayout,TRectangle等等,只是这个控件需要设置它的StyleName。比如我在StyleBook中设计这样一个按钮:l 阅读全文

posted @ 2013-11-05 13:40 至今 阅读(3888) 评论(0) 推荐(1) 编辑


2013年10月28日

摘要: 以下代码能监控到以下几个事件: FinishedLaunching BecameActive WillBecomeInactive EnteredBackground WillBecomeForeground WillTerminate LowMemory TimeChange OpenURLunit Unit11;interfaceuses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Controls, FMX.Forms, FMX.Graph.. 阅读全文

posted @ 2013-10-28 21:48 至今 阅读(1795) 评论(2) 推荐(0) 编辑


2013年10月15日

摘要: C:\Users\Public\Documents\RAD Studio\12.0\Samples\FireMonkeyMobile\ListView路径下有两个dpk,装完后listview也能实现listbox的效果了procedure TFormMain.FillListBox;var // item:TMetropolisUIListBoxItem; // listitem:TListboxItem; p: PpatientData; LItem: TListViewItem; i: Integer;begin ListViewPatient.Items.Clear; i... 阅读全文

posted @ 2013-10-15 15:12 至今 阅读(6752) 评论(9) 推荐(1) 编辑


2013年10月12日

摘要: 下载style 然后在deployment里添加进去http://files.cnblogs.com/nywh2008/styles.rar在AndroidManifest.template.xml 中增加段儿(粗体部分): 阅读全文

posted @ 2013-10-12 15:48 至今 阅读(2525) 评论(1) 推荐(0) 编辑


2013年10月10日

摘要: 实现下拉菜单式的效果,本代码是国外的网站上下载的。。,不是原创。源码下载地址 : http://files.cnblogs.com/nywh2008/popumenu.rar 阅读全文

posted @ 2013-10-10 14:01 至今 阅读(1241) 评论(4) 推荐(0) 编辑


2013年10月7日

摘要: unit Androidapi.JNI.Network;interfacefunction IsConnected: Boolean;function IsWiFiConnected: Boolean;function IsMobileConnected: Boolean;implementationuses System.SysUtils, Androidapi.JNIBridge, Androidapi.JNI.GraphicsContentViewText, Androidapi.JNI.JavaTypes, FMX.Helpers.Android;type JConnect... 阅读全文

posted @ 2013-10-07 21:07 至今 阅读(1766) 评论(0) 推荐(1) 编辑


2013年10月5日

摘要: uses AndroidAPI.JNI.GraphicsContentViewText, AndroidAPI.JNI.JavaTypes, AndroidAPI.JNI.OS; function BatteryPercent(const aContext: JContext): Integer; var filter: JIntentFilter; battery: JIntent; level, scale: Integer; begin filter := TJIntentFilter.Create; filter.addAction(TJIntent... 阅读全文

posted @ 2013-10-05 22:06 至今 阅读(1489) 评论(0) 推荐(0) 编辑


Copyright © 2024 至今
Powered by .NET 8.0 on Kubernetes