Android的 - 如何使进度触摸下屏幕边框 [英] Android - How to make an progressBar touching a bottom screen border

查看:123
本文介绍了Android的 - 如何使进度触摸下屏幕边框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想这是触摸屏幕的下边框一个进度条,但与这片code,我得到的酒吧和屏幕边框之间的空间不大:

I want a ProgressBar that is touching a bottom border of screen but with this piece of code, I am getting an little space between bar and screen border:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
 xmlns:tools="http://schemas.android.com/tools"
 android:layout_width="match_parent"
 android:layout_height="match_parent"
 tools:context=".Whatever" >

<ProgressBar
    android:id="@+id/progressBar1"
    style="?android:attr/progressBarStyleHorizontal"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignParentBottom="true"
    android:layout_alignParentLeft="true"
    android:layout_alignParentRight="true" />

</RelativeLayout>

和这里是我得到:

有没有什么办法来删除空间?

is there any way to remove that space?

推荐答案

请你的父母布局的高度,FILL_PARENT并设置进度高度match_parent。

Make your parent layout height as fill_parent and set progressbar height as match_parent.

这篇关于Android的 - 如何使进度触摸下屏幕边框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆