【发布时间】:2015-09-17 17:45:47
【问题描述】:
我有两个自定义通知 ProgressBar 和 TextView。我需要将它添加到一个View 中。喜欢TextView 上ProgressBar 上ProgresBar。
听到是我的 XML -
<LinearLayout
android:layout_width="match_parent"
android:orientation="vertical"
android:layout_weight="45"
android:layout_height="wrap_content">
<TextView
android:id="@+id/tvTimer"
android:layout_centerInParent="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
<ProgressBar
android:id="@+id/barTimer"
style="?android:attr/progressBarStyleHorizontal"
android:max="100"
android:rotation="-90"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_centerInParent="true"
android:progressDrawable="@drawable/circular_progress_bar"/>
<ProgressBar
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_centerInParent="true"
android:max="100"
android:progress="100"
android:progressDrawable="@drawable/circle_progress_background" />
【问题讨论】:
标签: android xml view android-linearlayout android-progressbar