<分区>
我想用 Mono for Android 制作动态菜单,我在 SQLLite 数据库中有表格菜单; 如何从该表向我的菜单添加菜单项?
<分区>
我想用 Mono for Android 制作动态菜单,我在 SQLLite 数据库中有表格菜单; 如何从该表向我的菜单添加菜单项?
最佳答案
重写 dispatchKeyEvent(),像这样:
@Override
public boolean dispatchKeyEvent(KeyEvent event)
{
switch (event.getKeyCode())
{
case KeyEvent.KEYCODE_MENU:
...
return true;
关于android - 如何在 Mono for Android 中创建动态菜单?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13028788/
相关文章:
android - Visual Studio 2010 看不到 Nexus 4
android - Xamarin 执行 logcat 命令并将结果读取到字符串
android - CSS 媒体查询和 My Nexus One(或其他 Android 手机)
android - 在 ListView 中使用 clipToPadding 时,项目会过早回收
java - Android:从 GLSurfaceView 返回到主要 Activity
c# - 从另一个 ViewModel Xamarin.Forms 更新 ViewModel