zoukankan      html  css  js  c++  java
  • clipChildren是否限制子控件在该容器所在的范围内

    clipChildren

    //--布局文件

    <?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:clipChildren="false"
    tools:context="org.lenve.clipchildren.MainActivity">

    <LinearLayout
    android:layout_width="match_parent"
    android:layout_height="48dp"
    android:layout_alignParentBottom="true"
    android:background="#03b9fc"
    android:orientation="horizontal">

    <ImageView
    android:layout_width="0dp"
    android:layout_height="match_parent"
    android:layout_weight="1"
    android:src="@mipmap/ic_launcher"/>

    <ImageView
    android:layout_width="0dp"
    android:layout_height="match_parent"
    android:layout_weight="1"
    android:src="@mipmap/ic_launcher"/>

    <ImageView
    android:layout_width="0dp"
    android:layout_height="72dp"
    android:layout_gravity="bottom"
    android:layout_weight="1"
    android:src="@mipmap/ic_launcher"/>

    <ImageView
    android:layout_width="0dp"
    android:layout_height="match_parent"
    android:layout_weight="1"
    android:src="@mipmap/ic_launcher"/>

    <ImageView
    android:layout_width="0dp"
    android:layout_height="match_parent"
    android:layout_weight="1"
    android:src="@mipmap/ic_launcher"/>
    </LinearLayout>
    </RelativeLayout>

  • 相关阅读:
    批量修改文件名
    查看数据库版本及当前登录用户是什么?
    安装mysql5.5时候的报错解决办法:
    mysql.sock的作用
    Linux系统编程15_C函数总结
    Linux系统编程14_信号和进程状态
    Linux系统编程13_CoreDump
    Linux系统编程12_标准库和POSIX标准头文件
    gcc使用
    http长链接短链接
  • 原文地址:https://www.cnblogs.com/hui413027075/p/7978474.html
Copyright © 2011-2022 走看看