The Title ImageView is gone when the pbar is visible, and then appears when its layout is set to gone…I don’t understand why the ImageView is not displaying??
<ProgressBar
android:id="@+id/title_pbar"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_alignParentLeft="true"
android:layout_marginLeft="5dp"
android:visibility="invisible"
android:layout_centerVertical="true" />
<ImageView
android:layout_centerVertical="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/title_s"
android:layout_toLeftOf="@+id/title_pbar"
android:layout_marginLeft="5dp" />
Because the
ImageViewis set relative to theProgressBar, so noProgressBar, noImageView. Try a different view layout. And if you can’t change from RelativeLayout (for whatever reason), set theImageViewrelative to a stationary view.