首页 > 解决方案 > 将进度条放在元素上

问题描述

在这样Progressbar元素后面,我想把元素放在上面。

<ScrollView
        android:layout_below="@id/imgModoAuto"
        android:layout_width="match_parent"
        android:id="@+id/scrollview"
        android:layout_height="446dp"
        android:layout_marginTop="10dp"
        tools:context=".fragment.LoginFragment">

    <RelativeLayout
            android:layout_height="wrap_content"
            android:layout_width="match_parent"
            android:id="@+id/relative">

        <ProgressBar
                android:id="@+id/progress_bar_login"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_gravity="center"
                android:layout_centerInParent="true"
                android:visibility="visible" />

标签: androidprogress-bar

解决方案


这发生在我之前,尝试elevation通过添加 android:elevation="10dp"到视图中添加一些。

让我知道这是否有帮助。


推荐阅读