您现在的位置: 万盛学电脑网 >> 程序编程 >> 网络编程 >> 安卓开发 >> 正文

android设置main.xml布局的方法

作者:佚名    责任编辑:admin    更新时间:2022-06-22

大家知道android设置main.xml布局吗?下面我们就给大家详细介绍一下吧!

  1. <?xml version="1.0" encoding="utf-8"?>     
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"    
  3.     android:orientation="vertical"    
  4.     android:layout_width="fill_parent"    
  5.     android:layout_height="fill_parent"    
  6.     android:background="#808080"    
  7.     >     
  8. <SlidingDrawer     
  9.     android:id="@+id/slidingdrawer"    
  10.     android:layout_width="fill_parent"    
  11.     android:layout_height="fill_parent"    
  12.     android:orientation="vertical"    
  13.     android:handle="@+id/handle"    
  14.     android:content="@+id/content">     
  15.     <Button     
  16.             android:id="@+id/handle"    
  17.             android:layout_width="88dip"    
  18.             android:layout_height="44dip"    
  19.             android:background="@drawable/handle"    
  20.         />     
  21.     <LinearLayout     
  22.     &nbs