<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2023 The Android Open Source Project
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<!-- Demonstrates adding/removing views from ViewGroup. See corresponding Java code. -->

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
              android:id="@+id/linear_layout"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:orientation="vertical">
    <EditText
        android:id="@+id/view"
        android:layout_width="20dp"
        android:layout_height="10dp"
        android:text="Hello World!"
        android:background="#2F00FF00" />
    <EditText
        android:id="@+id/view_scale"
        android:layout_width="20dp"
        android:layout_height="10dp"
        android:scaleX="0.5"
        android:scaleY="2"
        android:transformPivotX="0dp"
        android:transformPivotY="0dp"
        android:text="Hello World!"
        android:background="#2F00FF00" />
    <EditText
        android:id="@+id/view_translate"
        android:layout_width="20dp"
        android:layout_height="10dp"
        android:translationX="10px"
        android:translationY="20px"
        android:text="Hello World!"
        android:background="#2F00FF00" />
    <FrameLayout
        android:layout_width="20dp"
        android:layout_height="10dp">
        <EditText
            android:id="@+id/view_overlap_bottom"
            android:layout_width="20dp"
            android:layout_height="10dp"
            android:text="Hello World!"/>
        <Button
            android:id="@+id/view_overlap_top"
            android:layout_width="10dp"
            android:layout_height="10dp"/>
    </FrameLayout>

    <FrameLayout
        android:layout_width="20dp"
        android:layout_height="10dp">
        <EditText
            android:id="@+id/view_cover_bottom"
            android:layout_width="10dp"
            android:layout_height="10dp"
            android:text="Hello World!"/>
        <Button
            android:id="@+id/view_cover_top"
            android:layout_width="10dp"
            android:layout_height="10dp"/>
    </FrameLayout>

</LinearLayout>
