布局-android

布局-android,android,xml,android-layout,Android,Xml,Android Layout,我是android世界的新手,我想制作一个这样的android界面: (左侧屏幕) 但是,我在xml中添加了两个图标,但这些图标不在旁边。。。(不在同一行上) xml如下所示: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical

我是android世界的新手,我想制作一个这样的android界面: (左侧屏幕)

但是,我在xml中添加了两个图标,但这些图标不在旁边。。。(不在同一行上)

xml如下所示:

    <?xml version="1.0" encoding="utf-8"?>

    <LinearLayout 
xmlns:android="http://schemas.android.com/apk/res/android" 
android:orientation="vertical" android:layout_width="fill_parent" 
android:layout_height="fill_parent" android:background="#ABABAB">

<ImageView android:layout_width="fill_parent" android:id="@+navigate/title" 
android:layout_height="wrap_content"
android:src="@drawable/myimg" android:layout_marginTop="30px" />

 <ImageView  
android:layout_width="fill_parent" android:id="@+navigate/bookings" 
android:layout_height="wrap_content"
android:src="@drawable/inventory" android:layout_marginTop="20px" android:layout_marginRight="150px"
 />  

 <ImageView  
android:layout_width="fill_parent" android:id="@+navigate/picture" 
android:layout_height="wrap_content"
android:src="@drawable/picture" android:layout_marginLeft="150px"
 /> 

</LinearLayout>

有人有关于布局的好教程吗?:)
Thx的任何帮助

这是一个好的开始。这是基本的,它帮助了我:


此外,如果您刚刚开始使用Android布局,这是一篇必读文章:

这是一个良好的开端。这是基本的,它帮助了我:


另外,如果您刚刚开始使用Android布局,这是一篇必读文章:

听起来您需要仔细阅读布局<代码>线性布局只是使用的几种布局之一。以下是一些有用教程的链接:


听起来你需要仔细阅读布局<代码>线性布局只是使用的几种布局之一。以下是一些有用教程的链接:


此布局是垂直的。垂直的意思是一个在另一个上面。这个布局是垂直的。垂直的意思是一个在另一个之上。这正是我想要的。谢谢你,菲尔@尼克很高兴我能帮忙。如果这是你想要的,一定要接受这个答案。谢谢,正是我想要的。谢谢你,菲尔@尼克很高兴我能帮忙。如果这是你想要的,一定要接受这个答案。谢谢,没问题,尼克。我更喜欢菲尔的链接,而不是我的第一个。但我仍然鼓励你阅读我发布的第二个链接。所有这些都值得一读,但有些你应该好好读一读。有一节讨论了对象使用“dp”单位,文本使用“sp”单位。使用dp和sp将允许Android自动缩放您的对象和文本,以适应Android提供的各种屏幕大小。只有在特殊情况下才能使用px装置。没问题,尼克。我更喜欢菲尔的链接,而不是我的第一个。但我仍然鼓励你阅读我发布的第二个链接。所有这些都值得一读,但有些你应该好好读一读。有一节讨论了对象使用“dp”单位,文本使用“sp”单位。使用dp和sp将允许Android自动缩放您的对象和文本,以适应Android提供的各种屏幕大小。只能在特殊情况下使用px装置。