Andreas Falkenhahn
2018-03-27 14:04:29 UTC
Is it possible to have an app bar on top of a NativeActivity whose contents are drawn by C code writing raw pixels into the memory buffer obtained from ANativeWindow_lock()?
I've read the App Bar developer tutorial provided by Google at https://developer.android.com/training/appbar/setting-up.html but it says that activities using the App Bar should extend AppCompatActivity, i.e.
public class MyActivity extends AppCompatActivity { }
and then call setSupportActionBar(). But how can I make this work with NativeActivity? I don't know much about Java but I don't think it's possible to write an activity which extends two activities, i.e. AppCompatActivity *and* NativeActivity, is it?
So is it possible to use the App Bar together with a NativeActivity at all?
--
Best regards,
Andreas Falkenhahn mailto:***@falkenhahn.com
I've read the App Bar developer tutorial provided by Google at https://developer.android.com/training/appbar/setting-up.html but it says that activities using the App Bar should extend AppCompatActivity, i.e.
public class MyActivity extends AppCompatActivity { }
and then call setSupportActionBar(). But how can I make this work with NativeActivity? I don't know much about Java but I don't think it's possible to write an activity which extends two activities, i.e. AppCompatActivity *and* NativeActivity, is it?
So is it possible to use the App Bar together with a NativeActivity at all?
--
Best regards,
Andreas Falkenhahn mailto:***@falkenhahn.com
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/1485448003.20180327160429%40falkenhahn.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/1485448003.20180327160429%40falkenhahn.com.
For more options, visit https://groups.google.com/d/optout.