`

Clicking on EditText Makes Fragment Transparent

 
阅读更多
  问题:当点击一个EditText的时候,这个控件所在的fragment变得透明,这样会导致在它下面的fragment部分被显示出来,如图



  解决的办法不多。


  办法 1. 常用的使用replace取代add,这样就保证当前的fragment下面没有其它的fragment, 当变得透明时,没有任何影响

  办法 2. 在当前的fragment的root目录添加background和clickable="true"(这样能解决大部分问题)

  办法 3. 在办法2的基础上,针对某一个edittext获取焦点 requestFocus 这样也能解决一部分问题


  但是原因呢?
  • 大小: 64.1 KB
分享到:
评论

相关推荐

    Pinotti, Paolo(2017):Clicking on Heaven Door.pdf

    在2016年,Paolo Pinotti博士发表了一篇题为《点击天堂之门:移民合法化对犯罪率的影响》的论文,这篇研究通过运用独特的统计方法,细致地分析了移民合法化对意大利犯罪率所造成的影响。该研究来自伦敦大学学院经济...

    android实现点击按钮切换不同的fragment布局

    在上面的代码中,我们定义了5个 Fragment 和 5 个按钮, clicking buttons 将切换到不同的 Fragment 布局。在点击按钮时,我们使用 FragmentTransaction 来隐藏所有 Fragment,除了当前要显示的 Fragment。 五、 ...

    php_manual_zh(2011-11-10).chm

    menu item, then clicking on the "Unblock" button (on Windows Vista this is within the "Security" options). Failure to unblock the documentation file may result in error messages including "Navigation ...

    php_manual_zh(2012-01-18).chm

    If you are using Windows XP SP2 or later and you are going to download the documentation in CHM format, you need to "unblock" the file after downloading it by right-clicking on it in Windows Explorer ...

    php_manual_en(2012-01-18).chm

    If you are using Windows XP SP2 or later and you are going to download the documentation in CHM format, you need to "unblock" the file after downloading it by right-clicking on it in Windows Explorer ...

    php_manual_en(2011-11-10).chm

    menu item, then clicking on the "Unblock" button (on Windows Vista this is within the "Security" options). Failure to unblock the documentation file may result in error messages including "Navigation ...

    php_manual_ja(2011-11-10).chm

    menu item, then clicking on the "Unblock" button (on Windows Vista this is within the "Security" options). Failure to unblock the documentation file may result in error messages including "Navigation ...

    Entity Framework 6 Power Tools Community Edition

    When right-clicking on a file containing a derived DbContext class, the following context menu functions are available: View Entity Data Model (Read-only) View Entity Data Model XML View Entity ...

    asdf.rar_On the Up

    a simple script to pop up a small window like element upon clicking on the label Klick and closes when use clicks on Close (title of the window) it is basically <div> element

    PuppetMaster0.9

    The most basic learning resource for each component can be found by clicking on the help button on the header of right-clicking on the header and clicking on the tutorial/manual links in the context ...

    Android代码-Prop-Editor

    PropEditor program Running the program: Main screen: ...Clicking on a property will give a Suggestion list of values for the clicked property; the suggestion file is less sparse at this tim

    Linux下常用命令(全).rar

    Many of these "commands" can be accessed from your favourite GUI front-end (probably KDE or Gnome) by clicking on the right menu or button. They can all be run from the command line. Programs that ...

    kafkatool_64bit_v1.0.3.exe.zip

    Before clicking on the download button below, carefully read the terms of the license agreement. By clicking and downloading the software you are consenting to be bound by the license agreement. Do ...

    灰色按钮克星

    it appears as an icon in the system tray and can be turned on and off simply by clicking on it. Windows enabler may be freely distributed as long as the entire package (or a superset) is distributed ...

    vc15-build-tools-step.exe

    You can remove Visual Studio Build Tools 2017 by clicking on the Start menu of Windows and pasting the command line C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe....

    plsqldev14.0.1.1965x32多语言版+sn.rar

    32位版本的 PLSQL 正式版。 安装请查看说明。 JUNE 4, 2020 - VERSION 14.0.1 RELEASED Enhancements Language packs updated for ...The Quick Access Toolbar in Full Screen mode on Windows 10 was transparent

    【WordPress插件】2022年最新版完整功能demo+插件v2.0.7.zip

    Popup Anything on Click Pro - Display a Modal Popup By Clicking on a Link, Image or Button 弹出窗口在单击pro - 通过单击链接,图像或按钮显示模态弹出窗口" ---------- 泰森云每天更新发布最新WordPress主题...

    Clicking Game:单击一个正方形的游戏。-开源

    今天我们要探讨的是一个名为"Clicking Game"的开源项目,它是一个简单而刺激的游戏,玩家通过快速点击正方形来积累积分,同时享受色彩带来的视觉盛宴。 "Clicking Game"的核心玩法是基于用户交互,它锻炼了玩家的...

    plsqldev14.0.1.1965x64多语言版+sn.rar

    64位版本的 PLSQL 正式版,只能运行在64位系统中,需要你安装 64 位的 Oracle 客户端。 安装请查看说明。 JUNE 4, 2020 - VERSION ...The Quick Access Toolbar in Full Screen mode on Windows 10 was transparent

    [欧特克数字绘画设计软件].AUTODESK_SKETCHBOOK_DESIGNER_V2012_WIN32-XFORCE

    5.Before clicking on Activate You have 2 options : - a) Disable Your network Card, pull the network cable out or block with firewall (this is just to disable online serial check) OR - b) Click on...

Global site tag (gtag.js) - Google Analytics