嘿,我想爲我的文件上傳通知做出通知。這是我的XML:但它一直給我錯誤:在RelativeLayout中不存在循環依賴關係。我究竟做錯了什麼?我沒有看到它有什麼問題嗎?我也想使它看起來類似於瀏覽器下載爲什麼我會收到CircularDependencyException?
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="5dp">
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/left"
android:layout_toLeftOf="@+id/right">
<ImageView
android:id="@+id/status_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
/>
<TextView
android:id="@+id/progress_text"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/status_icon"
android:text="0%"
/>
</RelativeLayout>
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/right"
android:layout_toRightOf="@+id/left">
<TextView
android:id="@+id/status_text"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
/>
<ProgressBar
android:id="@+id/status_progress"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@id/status_text"
android:progressDrawable="@android:drawable/progress_horizontal"
android:indeterminate="false"
android:indeterminateOnly="false"
/>
</RelativeLayout>
</RelativeLayout>