RelativeLayout - 3

今天把这几天的东西都和起来吧

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

    <RelativeLayout
    android:id="@+id/top"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">

        <Button
            android:id="@+id/serch"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:text="搜索小夥伴"
            />
        <EditText
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:layout_toLeftOf="@id/serch"
        />
</RelativeLayout>

    <LinearLayout
        android:id="@+id/bottom"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        android:layout_alignParentBottom="true"
        >

        <Button
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:text="New"
            />

        <Button
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:text="Find"
            />

        <Button
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:text="Settings"
            />


    </LinearLayout>

    <TextView
        android:id="@+id/penguinFrist"
       android:layout_width="match_parent"
        android:layout_height="157dp"
        android:background="#00E1FF"
        android:text=" penguinFrist"
        android:layout_below="@id/top"

        />

    <TextView
        android:id="@+id/furseal"
        android:layout_width="match_parent"
        android:layout_height="157dp"
        android:layout_below="@id/penguinFrist"
        android:layout_weight="1"
        android:background="#FFAE00"
        android:text="fur seal" />

    <TextView
        android:layout_width="match_parent"
        android:layout_height="157dp"
        android:layout_above="@id/bottom"
        android:layout_weight="1"
        android:background="#00FFB3"
        android:text="Polar bear" />

</RelativeLayout>

https://ithelp.ithome.com.tw/upload/images/20201011/20129280Gmzkc1rZml.jpg
上面是搜索小海獭的朋友引擎,最下面做了一个像选单的概念,中间则把前面LinearLayout几天的东西给加上去。


<<:  Day 27 axios-logout(html、javascript)

>>:  【Day29】Pixi-AnimatedSprite

[Day20] Yew WASM 凯萨密码简介以及加密

不知道为啥总感觉进度堪忧,我是说准备工作 之前原本有一个能运行的东西现在运行不了 我翻 commit...

[填坑日记] Android Studio plugin to Unity

要开发Android的App有许多的方法,目前以Android Studio与Unity最为多人使用...

[Refactoring] Chapter 1 Refactoring: A First Example - RPG Game Hunting Mission

本篇同步发布於个人Blog: [Refactoring] Chapter 1 Refactoring...

C# web Form web.aspx 跳出提示视窗的4种方法

一般在写ASP.NET是不太希望用 response.write来作页面输出。 因为用respon...

从 JavaScript 角度学 Python(23) - Class

前言 接下来算是小聊一下 Python 的 Class 语法而已,算是稍微休息一下,所以这边简单聊就...