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

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.

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

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/557751.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

javax.servlet.ServletException: Circular view path []: would dispatch back to the current....

解决:javax.servlet.ServletException: Circular view path []: would dispatch back to the current… 原因: 当没有声明ViewResolver时,spring会注册一个默认的ViewResolver,就是JstlView的实例, 该对象继承自Inter…

android跌倒检测,Android跌倒检测

我正在使用加速度传感器实现跌倒检测,并创建以下代码.public void onSensorChanged(SensorEvent foEvent) {if (foEvent.sensor.getType() Sensor.TYPE_ACCELEROMETER) {double loX foEvent.values[0];double loY foEvent.values[1];double loZ foEvent.values[2];double l…

SpringBoot与SpringCloud的关系与区别

一、SpringBoot和SpringCloud简介 1、SpringBoot:是一个快速开发框架,通过用MAVEN依赖的继承方式,帮助我们快速整合第三方常用框架,完全采用注解化(使用注解方式启动SpringMVC),简化XML配置&am…

android studio break,Android Studio IDE: Break on Exception

可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):问题:It seems my Android Studio does not want to break on any exception by default. Enabling break on "Any Exception" starts breaking within act…

SpringBoot怎么直接访问templates下的html页面

SpringBoot直接访问templates下的html问题 方法1:曾经: template下文件不允许直接访问 1、springboot项目默认是不允许直接访问template下的文件的,是受保护的。 所以想访问template下的html页面,我们可以配置视图解析器。 2、如…

php查到的内容追加到html,javascript - 请问php中如何将查询出来的结果数组转化成自己想要的格式,并在前台利用js输出到html中...

考试类型的表jx_exam_type,可后台添加内容考试成绩的表jx_result,可后台添加内容期中考试成绩表中的exam_id对应考试类型表中的id,也就是添加的成绩是属于期中还是期末然后使用php查询$sql"SELECT re.type, re.score, re.exam_id, et.ti…

DevOps(过程、方法与系统的统称)是什么

DevOps (过程、方法与系统的统称) DevOps(Development和Operations的组合词)是一组过程、方法与系统的统称,用于促进开发(应用程序/软件工程)、技术运营和质量保障(QA)部…

android 蓝牙sco stream_voice_call,android TTS输出总是要 A2DP_android_开发99编程知识库

大多数设备上我都有这样的工作。 下面是在语音呼叫流中使用蓝牙SCO代替A2DP启动TTS的部分。if (mTtsReady) {myHash new HashMap();myHash.put(TextToSpeech.Engine.KEY_PARAM_UTTERANCE_ID,"A2DP_Vol");OLD_AUDIO_MODE am2.getMode();if(SMSstream 1){if (am2.is…

Springboot 页面访问不到静态资源Failed to load resource: the server responded with a status of 404 ()

Springboot 页面访问不到静态资源 问题&#xff1a;在HTML文件中引入图片&#xff0c;但是浏览器访问不到图片。 index.html&#xff1a; <!DOCTYPE html> <html xmlns:th"http://www.thymeleaf.org"><head><meta charset"UTF-8"&…

dw中HTML修改背景图片,dreamweaver将一个图片设定背景,用代码怎么写?

在你要改背景的文件夹中(包括硬盘分区也是一样)建立记事本&#xff0c;储存为desktop.ini 格式的&#xff0c;打开记事本编辑,输入一下源码:[ExtShellFolderViews]{BE098140-A513-11D0-A3A4-00C04FD706EC}{BE098140-A513-11D0-A3A4-00C04FD706EC}[{BE098140-A513-11D0-A3A4-00C…

spring.mvc.static-path-pattern、spring.resources.static-locations

“spring.mvc.static-path-pattern”用于阐述HTTP请求地址&#xff0c;请求非controller地址&#xff0c;如js,css,img等访问路径需要加上static, 可以不配置也能访问图片 而“spring.resources.static-locations”则用于描述静态资源的存放位置。多个路径&#xff08;逗号隔开…

JS在html中加法器,JavaScript_JavaScript程序设计之JS调试,本文主要通过一个加法器,介 - phpStudy...

JavaScript程序设计之JS调试本文主要通过一个加法器&#xff0c;介绍JS如何调试。先上代码&#xff1a;效果&#xff1a;test.html&#xff1a;计算器计算器计算demo.js/*** Created by yanzi on 15/12/8.*/var num1 document.getElementById("num1"),num2 documen…

springboot页面中静态图片路径

目录结构&#xff1a; 不写th:src"{/images/a.jpeg}"是访问不到的

html字居右垂直设置,css文字水平垂直居中怎么设置?

css文字水平垂直居中怎么设置&#xff1f;下面本篇文章就来给大家介绍使用CSS设置文字水平居中和垂直居中的方法。有一定的参考价值&#xff0c;有需要的朋友可以参考一下&#xff0c;希望对大家有所帮助。1、文字水平居中在CSS中想要让文字水平居中&#xff0c;可以使用text-a…

java实现把数据写入到Excel并下载

引入依赖&#xff1a; <!-- https://mvnrepository.com/artifact/org.apache.poi/poi --><dependency><groupId>org.apache.poi</groupId><artifactId>poi</artifactId><version>4.1.0</version></dependency>RequestM…

html5中api有什么,HTML5中的API概览

HTML5中的API概览整理一下HTML5中的常见API。前言HTML5中提供了一些功能强大的API&#xff0c;在不考虑兼容性的情况下&#xff0c;比起原生js实现更加简单&#xff0c;比起jQuery可以少引入包&#xff0c;这里整理几个常用的。一、获取页面元素及类名操作和自定义属性1. 获取页…

js参数长度太长问题 UUID字符串作为js的参数———Uncaught SyntaxError: Invalid or unexpected token

今天写程序时将id作为参数传递到js函数中&#xff0c;发现一个长度为36的字符串无法传进&#xff0c;会提示 Uncaught SyntaxError: Invalid or unexpected token 错误&#xff0c;在网上搜发现时因为参数长度太长&#xff0c;系统提示少符号&#xff0c;解决方法如下 在实际…

计算机主机声音怎么办,电脑主机声音大怎么解决 电脑主机嗡嗡响是怎么回事...

如果你经常使用电脑&#xff0c;那么主机声音大的情况你肯定遇到过&#xff0c;这就是电脑老化的表现&#xff0c;说明主机内部有了很多灰尘&#xff0c;如果平时没有注意保养&#xff0c;那么就会早主机声音很大的问题&#xff0c;怎么解决呢?很简单&#xff0c;清理主机吧&a…

springboot的thymeleaf一个页面中引入其它页面

引入页面内容&#xff08;copy为自定义的&#xff09; <div th:fragment"copy">这是引入内容</div>引入方式&#xff08;footer为引入页面名称&#xff09; <div th:include"footer::copy"></div>

计算机组成原理知识点白中英,计算机组成原理重点整理(白中英版) 考试必备

计算机组成原理重点整理(白中英版) 考试必备 一、 浮点存储&#xff1a;1&#xff0e;若浮点数 x 的 754 标准存储格式为(41360000)16&#xff0c;求其浮点数的十进制数值。解&#xff1a;将 16 进制数展开后&#xff0c;可得二制数格式为0 100 00010 011 0110 0000 0000 0…