2013-04-08 45 views
0

我尝试使用Framelayout创建布局。Framelayout问题

下面的代码,我尝试但没有得到输出。我想要输出像图像。

 <ImageView 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:layout_gravity="left|top" 
      android:src="@drawable/login_arrow" /> 

     <ImageView 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content" 
      android:layout_gravity="right|bottom" 
      android:src="@drawable/login_fbsignup" /> 
    </FrameLayout> 

enter image description here

+2

那么目前的结果是什么? – 2013-04-08 14:10:28

+0

第一张图片在左上方,第二张在屏幕右下方 – 2013-04-08 14:16:04

回答

0

我会使用RelativeLayout,而不是FrameLayout。但更多的是,我只是制作一张图片,并且没有任何布局容器。

+0

是的,但是我想点击注册按钮,所以我不能使用一个图片 – 2013-04-08 14:16:35

+0

用填充或边距来实现这一点是个好主意? – 2013-04-08 14:19:43

+0

当然,为什么不... – 2013-04-08 14:27:26