android-framelayout显示在最上层

问题描述

framelayout显示在最上层

有一个id为listLayout的框架布局,包含一个button。需要这个框架布局显示在其他id为news_fragment 的框架之上。

<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="horizontal"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <FrameLayout
        android:id="@+id/listLayout"
        android:layout_weight="1"
        android:layout_width="0dp"
        android:layout_height="wrap_content">

        <Button
            android:id="@+id/lists"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center_horizontal"
            android:background="@drawable/btn_black_xml"
            android:padding="8dp"
            android:text="List"
            android:textColor="#ffffff"
            android:textSize="20dp" />

        </FrameLayout>

    <FrameLayout
              android:id="@+id/news_fragment"
              android:layout_weight="2"
              android:layout_width="0dp"
              android:layout_height="match_parent">

        </FrameLayout>

    <FrameLayout
              android:id="@+id/channel_fragment"
              android:layout_weight="3"
              android:layout_width="0dp"
              android:layout_height="match_parent" />

</LinearLayout>

请高手帮忙实现。谢谢

解决方案

两个layout外面套一个framelayout不就是

解决方案二:

listLayout和newsLayout写在同一个frameLayout中 listLayout写在newsLayout后面就在newsLayout上面了

时间: 2024-07-29 15:09:04

android-framelayout显示在最上层的相关文章

android 图片显示问题

问题描述 android 图片显示问题 我锁定了activity的横屏显示,但是我在这个activity中有拍照的功能,当我横屏拍照的时候,这张图片会自动竖屏显示,我希望它怎么拍的就怎么显示, 哪位大神可以帮我解答一下呀 解决方案 android图片显示的方向问题Android创建图片图库不显示问题关于android gridview不显示图片,文字等问题 解决方案二: 难道你横屏拍下的照片竖屏显示时视角跟横屏拍照时的视角不一样? 拍完把图片旋转下呢

在android不显示进度条对话框的问题

问题描述 在android不显示进度条对话框的问题 进度条对话框在Android程序中显示不出来,我找不出问题的原因.使用了如下代码来显示进度条对话框: func{ progressdialog.show(); .... ..... anotherfunction(); listview.setAdapter(); progressdialog.dismiss(); } 当.show() 命令执行以后,进度条对话框就会显示.但是当otherfucntion()方法被调用后,之前显示的进度条对话框

服务器-通过JSON格式获取到的html页面,怎么在Android客户端显示

问题描述 通过JSON格式获取到的html页面,怎么在Android客户端显示 服务器端直接将一个有图片有超链接的html封装成JSON中的一个字段的值,客户端获取后怎么去显示这个html呢?通过setText(Html.fromHtml(map.get(""content"")))明显是不可以的,因为还是有图片和链接的.JSON如下: 解决方案 http://blog.sina.com.cn/s/blog_75016706010149yy.html 解决方案二:

android setError() 显示空白

问题描述 android setError() 显示空白 下面的代码是用来验证表单输入,但是没有输出.显示的一片空白.不知道为什么? 请高手解决: public void onClick(View view) { if( view.getId() == R.id.btnLogin ) { TestClass.setUsername( txtUserName.getEditableText().toString() ); TestClass.setPassword( txtPassword.get

视频的播放-Android页面显示多个视频时如何控制声音显示哪个视频的声音

问题描述 Android页面显示多个视频时如何控制声音显示哪个视频的声音 最近开始学习Android,我试着在一个画面中画了3个视频,请问如何控制声音显示哪个视频的声音啊,我想要的效果是可以加入焦点进入,移动焦点在哪个视频上就显示哪个视频的声音.但是不知道如何实现.请大牛们帮忙~~~~

android应用显示在console安装成功后不能在emulator中安装

问题描述 android应用显示在console安装成功后不能在emulator中安装 我在真机和模拟器中尝试安装,虽然编译成功了,但是不能安装到模拟器上.每次都必须从IDE中安装运行应用程序.以前,一旦我运行这个程序,它就一直能在模拟器里重复安装. AndroidManifest.XML: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://sch

android 程序显示未安装该应用

问题描述 android 程序显示未安装该应用 开发中通过Eclipse讲程序安装到手机上,可以正常运行,但是退出以后,直接点击图片运行程序,就显示"程序显示未安装该应用",(即每次打开程序都要通过eclipse安装才可)大家知道这是啥回事吗? 解决方案 你加个签名,然后打包安装呢 解决方案二: 因为程序可能在AndroidManifest.xml文件的根节点加了一个属性,就是运行安装到外部存储设备,然后程序运行的时候,发现有些文件找不到认为丢失. 可以去看看. 解决方案三: 卸载重新

arcgis-Arcgis for android 怎么显示地图,并且在地图上画路线,计算面积

问题描述 Arcgis for android 怎么显示地图,并且在地图上画路线,计算面积 我现在已搭建好了 android 平台(ADT),请问在怎么弄 arcgis for Android 的 平台 ,最好有 arcgis for android 这个工具开发的,能画路线,面积,等程序或方法,拜托大神们帮小弟指点迷津. 解决方案 首先你要搭好安卓开发环境,ADT+Eclipse,网上教程很多.然后需要安装ArcGIS开发相关的库和Eclipse插件. 你可以下一本 ArcGIS API fo

android studio 显示XML tag has empty body怎么解决?

问题描述 android studio 显示XML tag has empty body怎么解决? <permission android:name=""eee"" android:protectionLevel=""normal""></permission> 解决方案 android:protectionLevel=""normal""/> 这样子试下