我想通过坐标从 SVG 文件获取对象 ID。
例如在
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.1"
height="50" width="50">
<rect id="rectRED"
x="15" y="5" height="30" width="30"
style="fill:#ff0000;fill-opacity:0.5;stroke:#000000;stroke-width:1.5" />
<rect id="rectBLUE"
x="5" y="15" height="30" width="30"
style="fill:#0000ff;fill-opacity:0.5;stroke:#000000;stroke-width:1.5" />
</svg>Run Code Online (Sandbox Code Playgroud)
getObjectsAt(10,25)应该返回一个包含的列表rectBLUEgetObjectsAt(25,25)应该返回一个包含rectRED和的列表rectBLUEgetObjectsAt(10,10)应该返回类似的东西NIL有办法做到这一点吗?
我正在尝试使用Gingerbread,api 10为我的(非常)旧Android手机开发应用程序.
但是使用android studio作为IDE,问题似乎永远存在:
minSdkVersion 10 cannot be smaller than version 14 declared in libraryimplementation 'com.android.support:appcompat-v7:26.1.0'改为implementation 'com.android.support:appcompat-v7:25.1.0'......这就是我不知道如何继续下去的观点
正如我所想,这不可能是真的,一个项目抛出了manny错误,我没有创建一个单独的类并且没有编写一行代码,我尝试从命令行构建.
它有效,但我习惯了IDE功能,不喜欢错过它们.所以我的问题是:
如何使用android studio为api级别开发一个简单的Android应用程序?
是否有指导将项目安装到api 10?
我是否处于"正确"的道路上?
是否有一个api 10级应用程序的骨架项目,我可以导入(好像我可以在项目向导中选择api 10)?
我知道原因,谷歌不再支持api <14了.
我仍然不明白为什么我不能使用我完全健康的硬件.
我仍然希望能够为我的旧手机编写一个简单的应用程序.
¹错误日志:
Information:Gradle tasks [:app:assembleDebug]
/home/aik/.gradle/caches/transforms-1/files-1.1/appcompat-v7-25.1.0.aar/2ab2d76d88a035b2d8a733b1b9a020a8/res/values-v14/values-v14.xml
Error:(8, 5) error: style attribute 'android:attr/textAllCaps' not found.
Error:resource android:style/TextAppearance.Material not found.
Error:resource android:style/TextAppearance.Material.Body1 not found.
Error:resource android:style/TextAppearance.Material.Body2 not found.
/home/aik/test_api10/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values-v14/values-v14.xml
Error:(5) style attribute 'android:attr/textAllCaps' not found.
Error:resource android:style/TextAppearance.Material.Button not …Run Code Online (Sandbox Code Playgroud)