Video of the problem from a different user but its the same

來自不同用戶的問題的視頻但是相同

http://imgur.com/ca2cNZv

I have a background image set as follows :

我有一個背景圖像設置如下:

.pane {

background-image: url("../img/inner-banner-bg.jpg");

background-repeat: repeat;

-webkit-background-size: cover;

-moz-background-size: cover;

background-size: cover;

}

And in my config.xml

在我的config.xml中

Now the problem I am having is when the keyboard fades away after I hit done / search, it leaves a white background for like 0.5 during the transition for the space the keyboard covered and it looks a bit bad.

現在我遇到的問題是當我點擊完成/搜索后鍵盤消失時,它會在鍵盤覆蓋的空間過渡期間留下類似0.5的白色背景,看起來有點糟糕。

When the keyboard closes it unshrinks but leaves white gap. How can I get the keyboard to not shrink the view behind the backdrop ?

當鍵盤關閉時,它會不收縮但會留下白色間隙。如何讓鍵盤不縮小背景幕后的視圖?

When I set

我訂的時候

It doesn't happen. I am also using the Ionic Plugin Keyboard.

它不會發生。我也在使用Ionic插件鍵盤。

Anyway I can make the transition of the keyboard fading not display the white background ?

無論如何,我可以使鍵盤褪色的過渡不顯示白色背景?

Edit : Here's my android settings

編輯:這是我的android設置

And my config Settings

和我的配置設置

And in the Package.json

並在Package.json中

"dependencies": {

"gulp": "^3.5.6",

"gulp-sass": "^2.0.4",

"gulp-concat": "^2.2.0",

"gulp-minify-css": "^0.3.0",

"gulp-rename": "^1.2.0"

},

"devDependencies": {

"bower": "^1.3.3",

"gulp-util": "^2.2.14",

"shelljs": "^0.3.0"

},

"cordovaPlugins": [

"cordova-plugin-device",

"cordova-plugin-console",

"cordova-plugin-whitelist",

"cordova-plugin-splashscreen",

"cordova-plugin-statusbar",

"cordova-plugin-geolocation",

"cordova-plugin-network-information",

"ionic-plugin-keyboard"

],

"cordovaPlatforms": [

"android",

"ios"

]

In my web view I use ion-view and ion-content

在我的網頁視圖中,我使用離子視圖和離子內容

6 个解决方案

#1

8

In AndroidManifest.xml file try to set windowSoftInputMode attribute to adjustNothing:

在AndroidManifest.xml文件中嘗試將windowSoftInputMode屬性設置為adjustNothing:

android:windowSoftInputMode="adjustNothing"

It worked for my Ionic project, avoiding the resize of Cordova webview when soft keyboard is on.

它適用於我的Ionic項目,避免在打開軟鍵盤時調整Cordova webview的大小。

#2

1

That is your windowBackground peeking through. You are probably drawing over the white background of your Theme with that teal background. Modify your theme to include a better background color and remove the background from your layout if possible to improve drawing performance.

那是你的窗戶背景偷看。您可能正在使用該青色背景繪制主題的白色背景。修改主題以包含更好的背景顏色,並盡可能從布局中刪除背景以提高繪圖性能。

...

#ff000000

...

#3

1

Put:

放:

@drawable/gradient

In styles.xml source

在styles.xml源碼中

#4

0

Hey there is a simple workaround for this

嘿,有一個簡單的解決方法

you need to add overflow-scroll="false" to your ion-content this should fix it

你需要在你的離子內容中添加overflow-scroll =“false”,這應該修復它

related topic Ionicforum

相關主題Ionicforum

#5

0

Its happen because window re size itself to make room for the soft input area

它的發生是因為窗口大小本身為軟輸入區域騰出空間

use android:windowSoftInputMode="adjustNothing" in AndroidManifest.xml

在AndroidManifest.xml中使用android:windowSoftInputMode =“adjustNothing”

..

...

#6

-1

Add the following code in your 'App.js'. add

在“App.js”中添加以下代碼。加

$window.addEventListener('native.keyboardhide', function (event) {

$rootScope.$broadcast('native.keyboardhide', event);

});

when app.run() method call with $window and $rootScope dependency. also, add

當app.run()方法調用$ window和$ rootScope依賴時。還有,補充一下

if (window.cordova && window.cordova.plugins && window.cordova.plugins.Keyboard) {

cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);

cordova.plugins.Keyboard.disableScroll(true);

}

in $ionicPlatform.ready().

在$ ionicPlatform.ready()中。

please ensure that your code is updated by inspecting your app. If it's not updated then try to remove and add platform and rebuild your app.

請確保通過檢查您的應用來更新您的代碼。如果沒有更新,請嘗試刪除並添加平台並重建您的應用。

android关机背景,鍵盤消失后的Android白色背景相关推荐

  1. 深入解析Android关机

    轉載: http://mobile.51cto.com/aprogram-418981.htm 其他參考: 设备驱动-----Android关机流程总结 下图详细阐释了Android的关机顺序. 第一 ...

  2. 自定义Android菜单背景

    本文来自:安卓航班网 如何自定义Android菜单背景呢? 默认的情况下Android系统的菜单是白色的,下面的例子可以通过自定义的xml布局实现个性化的menupublic class MenuEx ...

  3. 解决Android软键盘弹出覆盖h5页面输入框问题 // 在ios系统中输入框软键盘消失后,页面不回弹的问题 // 解决苹果不回弹页面 // 微信环境打开

    //解决Android软键盘弹出覆盖h5页面输入框问题 window.addEventListener('resize', () => {if (document.activeElement.t ...

  4. 鍵盤彈出,頁面佈局被推上去了.....

    一般情況下:iOS在config.xml中 設置 1 <preference name="KeyboardShrinksView" value="false&quo ...

  5. 在Android关机中插入脚本

    一.Android开机运行脚本流程 在Android启动的过程中,在kernel/init/main.c中的start_kernel->rest_init->kernel_init-> ...

  6. 修改win7的登录界面背景与关机背景

    一,修改注册表 同时按下win+r出现执行窗口后. 弹出:输入regedit. 弹出:按HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVer ...

  7. Android实现背景图下拉回弹效果

    Android实现背景图下拉回弹效果 增加设置不横向拉伸时增加回弹效果 增加切换横屏时可滑动效果 效果 实现 public class HeadZoomScrollView extends Neste ...

  8. 简述改变计算机桌面背景的方法,win7开关机背景图怎么更换_win7电脑换开关机壁纸图片的方法...

    最近有朋友问小编win7开关机背景图怎么更换的问题,对于这个问题,相信很多朋友都不是太清楚,有时我们会觉得电脑默认的开关机壁纸不好看,那么我们应该如何更换win7开关机背景图呢?别着急,今天小编就针对 ...

  9. android开关机日志_(android 关机/重启)Android关机/重启流程解析

    --------------------------------Introduction-------------------------- 1. 在PowerManager的API文档中,给出了一个 ...

最新文章

  1. 调整图像- 自动对比度、自动色阶算法
  2. Win10如何取消开机密码
  3. 计算机图形学在数学中的应用,计算机图形学的数学工具与C#实现:数学C
  4. java 基本语法与流程控制_Java基础语法之控制流程
  5. 大数据平台蓝图_数据科学面试蓝图
  6. 网络——连接到server
  7. 教育部:到2021年建设1万个左右国家级一流本科专业点
  8. (转)在编写Spring框架的配置文件时,标签无提示符的解决办法
  9. 看完《复联4》想剧透怎么办?网店开始卖《复联4》讨论群了...
  10. Ubuntu 平滑升级到PHP7
  11. 用Log Explorer恢复数据的基本操作
  12. silverlight安装后仍提示未安装_CAD提示“许可管理器不起作用或未正确安装”?来,我来教你方法...
  13. Unicode和UTF编码转换
  14. Astar算法基本概念及其实现
  15. 三角网格上高斯曲率和平均曲率
  16. Android 11.0 12.0SystemUI修改状态栏电池图标样式为横屏显示
  17. 产品经理的年终总结可以这样写
  18. SpringBoot 实现AOP的简单测试demo
  19. 网线接法大全(RJ45型网线插头)
  20. linux磁盘扩空间,Linux磁盘空间扩容(LVM)

热门文章

  1. Java LinkedList boolean addAll(int index,Collection c)方法,带有示例
  2. 磊哥私藏书单分享,160买400的书!
  3. IE与IE内核浏览器的那点事
  4. jquery的扩展方法介绍
  5. Auto activation triggers for Java(代码提示)功能扩展
  6. mysql 数据库文件导入和导出、远程上传和下载数据库
  7. Win10安装 WSL Ubuntu Linux系统,非双系统,完美兼容超详细版本
  8. hadoop 2.6.5 + hive 集群搭建
  9. HTML网页使用CDN的jquery.qrcode.min.js生成页面二维码(直接可以复制使用)
  10. 计算机领域hpec会议,2018 IEEE High Performance extreme Computing Conference HPEC