zoukankan      html  css  js  c++  java
  • 安卓 日常问题 工作日志23

    谈一谈安卓的相对布局 

    之前只会使用·线性布局 所以要多学一个 

    <RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">

    <LinearLayout
    android:id="@+id/buttonLayout"
    android:layout_alignParentBottom="true" //重要的一句话 相对布局里 意思是显示在底部
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:background="@color/operator_menu_bg"
    android:orientation="horizontal">
    </LinearLayout>
    <ScrollView
    android:layout_above="@id/buttonLayout"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="@drawable/background_tab"
    android:padding="10dp">


    <LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@color/operator_menu_bg"
    android:orientation="vertical">
    </LinearLayout>







    </ScrollView>







    </RelativeLayout>
  • 相关阅读:
    python运行时参数m的作用
    如何设置.net控件SplitContainer平均分配
    不用安装Oracle客户端
    视频聊天APP
    Hadoop框架
    Shell
    Linux
    java14带参的方法
    java13人机猜拳
    java12类的无参方法
  • 原文地址:https://www.cnblogs.com/dushutai/p/12660492.html
Copyright © 2011-2022 走看看