android - 将进度条放在元素上
问题描述
在这样的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" />
解决方案
这发生在我之前,尝试elevation
通过添加 android:elevation="10dp"
到视图中添加一些。
让我知道这是否有帮助。
推荐阅读
- swift - 托管对象上下文是“非分代的”是什么意思?
- java - 在java中调用存储过程
- scilab - 在 scilab 中找到方程的最小根
- node.js - 在 Promise Resolver 中包含 Promisified 回调?
- sql - 使用 CASE 表达式透视数据
- java - JSONException 试图从 JSON 中获取价值
- python - 在python中处理Keyerror Exception的最佳解决方案是什么
- android - Proguard:保留具有特定注释属性的数据类成员信息
- javascript - 在函数内部调用 XMLHttpRequest 时未收到响应
- php - MSSQL,PDO,插入 XML 字符串时出错:一般错误:102 Incorrect syntax near '
我正在尝试从 PHP 将 XML 字符串插入 MSSQL 数据库。我得到:
SQLSTATE[HY000]:一般错误:102 ' 附近的语法不正确(后面是一段 xml)。
准备好的语句是:
<