首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >如何在Android中删除按钮周围的填充?

如何在Android中删除按钮周围的填充?
EN

Stack Overflow用户
提问于 2013-07-31 10:27:08
回答 16查看 143.6K关注 0票数 230

在我的Android应用程序中,我有这样的布局:

代码语言:javascript
复制
<?xml version="1.0" encoding="utf-8" ?> 
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
      android:layout_width="match_parent" 
      android:layout_height="match_parent" 
      android:orientation="vertical">

    <fragment
         android:id="@+id/map"
         android:layout_width="match_parent"
         android:layout_height="0dp" 
         android:layout_weight="1" 
         class="com.google.android.gms.maps.SupportMapFragment"/>

    <Button
        android:id="@+id/button_back"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:onClick="CloseActivity"
        android:padding="0dp"
        android:text="@+string/back" />

</LinearLayout>

在预览和电话中,它看起来是这样的:

正如你在底部区域的按钮上所看到的,那里有一些填充。

我怎么才能去掉它,让按钮完全填满底部区域呢?

EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/17960599

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档