zoukankan      html  css  js  c++  java
  • 2021/2/18

    帧布局

    帧布局除了前面的RelatitveLayout(相对布局)介绍的通用属性外,还有两个特殊属性

    android:foreground:*设置改帧布局容器的前景图像

    android:foregroundGravity:设置前景图像显示的位置

    <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"    
        xmlns:tools="http://schemas.android.com/tools"    
        android:id="@+id/FrameLayout1"    
        android:layout_width="match_parent"    
        android:layout_height="match_parent"    
        tools:context=".MainActivity"     
        android:foreground="@drawable/logo"    
        android:foregroundGravity="right|bottom">    
        
        <TextView    
            android:layout_width="200dp"    
            android:layout_height="200dp"    
            android:background="#FF6143" />    
        <TextView    
            android:layout_width="150dp"    
            android:layout_height="150dp"    
            android:background="#7BFE00" />    
         <TextView    
            android:layout_width="100dp"    
            android:layout_height="100dp"    
            android:background="#FFFF00" />    
            
    </FrameLayout>    
  • 相关阅读:
    Python lambda函数
    python 获取日期
    <base>元素
    django--开发博客
    django修改时区,数据库
    django初探
    python创建虚拟环境
    资源记录页面
    组管理
    远程管理命令
  • 原文地址:https://www.cnblogs.com/qiangini/p/14905112.html
Copyright © 2011-2022 走看看