2011-02-03 96 views
0

我有框架布局,我用480x800分辨率放置图像来填充屏幕。现在我正在将一个按钮放在图像上。如何删除布局屏幕上的黑线在Android?

我的XML看起来是这样的....

<ImageView android:id="@+id/ImageView01" 
     android:layout_width="480px" 
     android:layout_height="800px" 
     android:src="@drawable/img"> 
</ImageView> 
<FrameLayout android:id="@+id/FrameLayout01" 
     android:layout_width="174px" 
     android:layout_height="64px" 
     android:layout_gravity="bottom|right" 
     android:layout_marginBottom="40px" 
     android:layout_marginRight="16px"> 

    <Button android:id="@+id/callend2" 
     android:layout_width="176px" 
     android:layout_height="64px" 
     android:paddingLeft="20px" 
     android:paddingRight="10px" 
     android:textColor="#f5f5f5" 
     android:textSize="24px" 
     android:background="@drawable/csh_call_red_btn_normal" 
      android:drawableLeft="@drawable/call_end_call_icon" 
     android:text="call end"> 
    </Button> 
</FrameLayout> 

我的问题是我得到的按钮或内部框架布局的边界黑线...

+0

请考虑添加问题的形象,这将有助于了解它 – 2017-11-07 14:09:26

回答

-1

这将有助于了解什么样的视图包含ImageViewFrameLayout

但是,如果您想要背景图片,为什么不设置您的层次结构的根视图的android:background属性?

+0

嗨,老兄,这个形象将动态变化。两个视图都在帧布局中只有 – 2011-02-03 06:16:01