Android activity_main.xml文件中的FrameLayout

为什么80%的码农都做不了架构师?>>>   hot3.png

  FrameLayout布局就是在屏幕上开辟一个区域以填充所有的组件,但是使用FrameLayout布局会将所有的组件都放在屏幕的左上角,而且所有的组件都可以层叠进行显示

Android activity_main.xml文件中的FrameLayout_第1张图片

  xmlns:tools="http://schemas.android.com/tools"

  android:layout_width="match_parent"

  android:layout_height="match_parent"

  tools:context=".MainActivity" >

   

    android:id="@+id/text1"

    android:layout_width="wrap_content"

    android:layout_height="wrap_content"

    android:text="我的框架布局管理器"/>

   

    android:id="@+id/mybutton1"

    android:layout_width="wrap_content"

    android:layout_height="wrap_content"

    android:text="我的框架布局管理器按钮"/>

      

    android:id="@+id/myedit1"

    android:layout_width="wrap_content"

    android:layout_height="wrap_content"

    android:text="输入姓名"/>

   


转载于:https://my.oschina.net/aspirs/blog/612576

你可能感兴趣的:(Android activity_main.xml文件中的FrameLayout)