摘要:delphi XE6 在Android编译SharedActivity时正常,但xe7下编译出错,在uses添加Androidapi.Helpers就可以。
阅读全文
随笔分类 - delphi
摘要:Delphi XE7 GPS控件的Android新变化GPS控件的Accuracy可以起作用了,Accuracy>0时: 1--100:ACCURACY_HIGH 101--500:ACCURACY_MEDIUM 其它值时:ACCURACY_LOWAccuracy=0时根据以下方式进行定位:1.GP...
阅读全文
摘要:使用DPFJAlertDialog控件时发现DPFJAlertDialog1Click不能捕获到对话框到底按了那个按键,上网搜索后找到了解决方法:打开DPF.Android.JAlertDialog.pas文件,找到procedure TAlertDialogOnClickListener.onCl...
阅读全文
摘要:delphi xe6 for android LocationSensor控件默认是优先使用网络定位,对定位精度要求高的应用我们可以修改原码直接指定GPS定位。修改方法:将C:\Program Files\Embarcadero\Studio\14.0\source\rtl\common\Syste...
阅读全文
摘要:delphi fmx的字体等设置默认与皮肤有关,用代码直接修改字体颜色等是无效的,如何才能用代码修改呢?请按以下方法就可以:1.在Object inspector中取消StlyedSettings中的Fontcolor选项的勾。2. Label6.TextSettings.FontColor:=TA...
阅读全文
摘要:The first step it's a run sample from RAD Studio that named SensorInfo on your device. On the tab Biometric you can see HumanProximity. If it's true y...
阅读全文
摘要:今天才知道xe6 android控件的透明度设置方法:只需设置控件中的Opacity参数,默认为1--不透明panel1.Opacity:=0.60;
阅读全文
摘要:Delphi XE6找出 FMX.Platform.Android.pas 档案,并复制到自己的 Project 路径里,找到 GetScrollingBehaviour 函数,修改成如下:unit FMX.Platform.Android;function TPlatformAndroid.Get...
阅读全文
摘要:1.拖放Label、button和popup控件到form2.在structure将button1和label1拖到popup1上,然后调整布局就可以Popup有几个重要的属性:1.PlacementTarget:依附于那个控件弹出,当不设置这个属性值,依附的是当前的Form。2.Placement...
阅读全文
摘要:1) setting the Project Options, Uses Permissions, Wake lock = True2) Adding Android.JNI.PowerManager to the uses clause3) call: AcquireWakeLock; // at...
阅读全文
摘要:var Item1: TListViewItem;begin Item1 := ListView1.Items.Add; Item1.Purpose:=TListItemPurpose.Header;// Item1.Purpose:=TListItemPurpose.Footer; Item1.t...
阅读全文
摘要:如果用xe6自带的LocationSensor控件,默认优先使用网络位置,网络位置定位精度不准确,不能满足高精度定位的要求。但xe6自带的LocationSensor控件不能指定网络定位优先还是GPS定位优先,如果调用java API是可以指定优先使用GPS定位,以下代码经实测证实是可以直接指定GP
阅读全文
摘要:Androidapi.JNI.JavaTypes, Androidapi.JNI.GraphicsContentViewText, Androidapi.JNI.Location, Androidapi.JNIBridge, Androidapi.JNI.Os, Androidapi.Helper...
阅读全文