草庐IT

keyboard-navigation

全部标签

java - 在键盘存在时隐藏 ‘Bottom Navigation Bar’ - Android

我有一个小型演示聊天UI应用程序。此应用程序有一个底部导航栏。我需要在键盘出现时隐藏底部导航栏。HereisanexampleofthechatUI当您单击EditText元素时可以看到,键盘出现但底部导航栏保持可见。我试过thismeasurementmethod等方法,但UI元素闪烁likethis.当键盘可见时,是否有适当的方法隐藏底部导航栏?编辑:在下面的Activity中,您可以看到我在哪里设置键盘监听器以在确定键盘可见时调整UI元素的位置。这是我的Activity代码,使用上面链接中的setKeyboardListener方法并将其设置在onCreateView中:pack

android - React-native android忽略navigator.geolocation.getCurrentPosition

我正在尝试在我的Android设备(PhilipsXenium)上使用navigator.geolocation.getCurrentPosition。它在iphone和genimotion模拟器中完全可以正常工作。navigator.geolocation.getCurrentPosition绝对不返回任何内容-没有错误,没有成功。但是,如果我在智能手机中关闭地理定位服务,它会返回Noavailablelocationprovider。另外,navigator.geolocation.watchPosition工作正常。 最佳答案

android - React-native android忽略navigator.geolocation.getCurrentPosition

我正在尝试在我的Android设备(PhilipsXenium)上使用navigator.geolocation.getCurrentPosition。它在iphone和genimotion模拟器中完全可以正常工作。navigator.geolocation.getCurrentPosition绝对不返回任何内容-没有错误,没有成功。但是,如果我在智能手机中关闭地理定位服务,它会返回Noavailablelocationprovider。另外,navigator.geolocation.watchPosition工作正常。 最佳答案

android - 找不到androidx.navigation :safe-args-gradle-plugin:1. 0.0-alpha01

我想使用导航架构组件。但是我在导入safeargs时遇到了问题同步消息:Couldnotfindandroidx.navigation:safe-args-gradle-plugin:1.0.0-alpha01.Searchedinthefollowinglocations:https://dl.google.com/dl/android/maven2/androidx/navigation/safe-args-gradle-plugin/1.0.0-alpha01/safe-args-gradle-plugin-1.0.0-alpha01.pomhttps://dl.google.c

android - 找不到androidx.navigation :safe-args-gradle-plugin:1. 0.0-alpha01

我想使用导航架构组件。但是我在导入safeargs时遇到了问题同步消息:Couldnotfindandroidx.navigation:safe-args-gradle-plugin:1.0.0-alpha01.Searchedinthefollowinglocations:https://dl.google.com/dl/android/maven2/androidx/navigation/safe-args-gradle-plugin/1.0.0-alpha01/safe-args-gradle-plugin-1.0.0-alpha01.pomhttps://dl.google.c

android - 自定义 'Keyboard' 内置在 Android 上的应用程序中

我一直在寻找为我的应用程序创建自定义键盘。起初,我开始查看SDK示例的SoftKeyboard,但阅读Android开发人员组后,我看到了这篇文章:Thisisreallynothowtheinputmethodframeworkissupposedtowork.AnIMEshouldbeagenericinputfacility,notforaparticularapplication.Ifyouneedsomeapp-specificinput,youshouldbuilditintoyourUIratherthanpushingitouttoagenericIME.如何在UI中构

android - 自定义 'Keyboard' 内置在 Android 上的应用程序中

我一直在寻找为我的应用程序创建自定义键盘。起初,我开始查看SDK示例的SoftKeyboard,但阅读Android开发人员组后,我看到了这篇文章:Thisisreallynothowtheinputmethodframeworkissupposedtowork.AnIMEshouldbeagenericinputfacility,notforaparticularapplication.Ifyouneedsomeapp-specificinput,youshouldbuilditintoyourUIratherthanpushingitouttoagenericIME.如何在UI中构

android - setImeOptions : why the "Done" button does not show on the soft keyboard?

我尝试使用input.setImeOptions(EditorInfo.IME_ACTION_DONE)设置软键盘上的“完成”按钮;但“完成”按钮根本不显示在软键盘上。有什么建议吗?publicvoidmodif(intposition){AlertDialog.Builderalert=newAlertDialog.Builder(MainActivity.this);alert.setTitle("Modifica");EditTextinput=newEditText(MainActivity.this);input.setImeOptions(EditorInfo.IME_AC

android - setImeOptions : why the "Done" button does not show on the soft keyboard?

我尝试使用input.setImeOptions(EditorInfo.IME_ACTION_DONE)设置软键盘上的“完成”按钮;但“完成”按钮根本不显示在软键盘上。有什么建议吗?publicvoidmodif(intposition){AlertDialog.Builderalert=newAlertDialog.Builder(MainActivity.this);alert.setTitle("Modifica");EditTextinput=newEditText(MainActivity.this);input.setImeOptions(EditorInfo.IME_AC

javascript - navigator.geolocation.getCurrentPosition 在 android google chrome 上不起作用

这段代码:navigator.geolocation.getCurrentPosition(function(position){alert(position.coords.latitude,position.coords.longitude);},function(error){alert(error.message);},{enableHighAccuracy:true,timeout:5000});https://jsfiddle.net/FcRpM/在我的笔记本电脑上的GoogleChrome中工作,但在移动HTConeS上工作(Android4.1,GPS关闭,通过移动网络定