Java 如何将默认的水平进度条更改为垂直进度条?
到目前为止,我有一个工作水平进度条 这是我的xml文件Java 如何将默认的水平进度条更改为垂直进度条?,java,android,Java,Android,到目前为止,我有一个工作水平进度条 这是我的xml文件 <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" > <ProgressBar
<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" >
<ProgressBar
android:id="@+id/progressBar1"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginTop="168dp" />
我要用它作为一个液体罐的视觉指示器
我想知道如何将其设置为垂直。如果这是不可能的,可以有人建议一些其他的选择我的问题。检查下面的链接它将帮助你 演示代码和如何设置进度条垂直
http://www.androidpeople.com/android-progress-dialog-example
,可能会有帮助:)