0元购Android端

dialog_loading.xml 1.7KB

    <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@android:color/transparent"> <androidx.constraintlayout.widget.ConstraintLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" android:background="@drawable/shape_bg_loading" android:padding="15dp"> <ImageView android:id="@+id/loading_img" android:layout_width="60dp" android:layout_height="60dp" android:src="@mipmap/loading" app:layout_constraintTop_toTopOf="parent" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent"/> <!--<TextView android:id="@+id/loading_tx" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="加载中..." android:textColor="@android:color/white" android:textSize="15sp" android:visibility="gone" android:layout_marginTop="10dp" app:layout_constraintTop_toBottomOf="@+id/loading_img" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" />--> </androidx.constraintlayout.widget.ConstraintLayout> </RelativeLayout>