Is it true that android.graphics.* depends on the native Skia library? If so, is it possible to access the Skia library in my native C/C++ codes?
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
Skia is not offered as a lib/sharedlib inside android, as its api is not guaranteed to be stable over time.
there is no sample implementation of controls in C/C++, all the widget/view sub-system is done in Java
for skia http://code.google.com/p/skia/
Skia can be use using native c/c++ code but you need android source to build your app and generate lib<>.so and apk because its make needs external/skia/..... in Android.mk[sample code as indicated by Rishabh]
Actually I tried one sample in which i pass canvas object to my native code using JNI and drawXXX() on canvas using skia apis.
You can refer to Android graphics pipeline to understand android graphics pipleline.
If you are developing using AOSP it's very simple - you can link previously built libskia.so in your NDK app
https://skia.googlesource.com/skia/+/master/platform_tools/android/examples/hello_skia_app/