diff --git a/BaseModule/src/main/res/layout/room_view_default_wheat.xml b/BaseModule/src/main/res/layout/room_view_default_wheat.xml index e495a581..423b2286 100644 --- a/BaseModule/src/main/res/layout/room_view_default_wheat.xml +++ b/BaseModule/src/main/res/layout/room_view_default_wheat.xml @@ -227,16 +227,14 @@ android:id="@+id/iv_online" android:layout_width="0dp" android:layout_height="0dp" - android:background="@mipmap/room_ic_owner_offline" + android:adjustViewBounds="true" + android:scaleType="fitXY" android:visibility="gone" - app:layout_constraintBottom_toBottomOf="parent" - app:layout_constraintEnd_toEndOf="parent" - app:layout_constraintWidth_percent="0.5" - app:layout_constraintHeight_percent="0.5" - app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toTopOf="parent" - app:loopCount="0" - tools:visibility="visible" /> + android:src="@mipmap/room_ic_owner_offline" + app:layout_constraintBottom_toBottomOf="@+id/riv" + app:layout_constraintEnd_toEndOf="@+id/riv" + app:layout_constraintStart_toStartOf="@+id/riv" + app:layout_constraintTop_toTopOf="@+id/riv"/> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/BaseModule/src/main/res/layout/room_view_sing_wheat.xml b/BaseModule/src/main/res/layout/room_view_sing_wheat.xml index 8832cbbf..0bcfd75d 100644 --- a/BaseModule/src/main/res/layout/room_view_sing_wheat.xml +++ b/BaseModule/src/main/res/layout/room_view_sing_wheat.xml @@ -21,7 +21,7 @@ android:layout_marginTop="@dimen/dp_12" android:layout_marginEnd="@dimen/dp_12" android:adjustViewBounds="true" - android:scaleType="fitCenter" + android:scaleType="center" app:layout_constraintDimensionRatio="1:1" android:src="@mipmap/room_ic_wheat_default" app:layout_constraintBottom_toBottomOf="parent" @@ -204,17 +204,14 @@ android:id="@+id/iv_online" android:layout_width="0dp" android:layout_height="0dp" - android:background="@mipmap/room_ic_owner_offline" + android:adjustViewBounds="true" + android:scaleType="fitCenter" android:visibility="gone" - app:layout_constraintBottom_toBottomOf="parent" - app:layout_constraintDimensionRatio="1:1" - app:layout_constraintEnd_toEndOf="parent" - app:layout_constraintHeight_percent="0.82" - app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toTopOf="parent" - android:layout_marginTop="@dimen/dp_10" - app:loopCount="0" - tools:visibility="visible" /> + android:src="@mipmap/room_ic_owner_offline" + app:layout_constraintBottom_toBottomOf="@+id/riv" + app:layout_constraintEnd_toEndOf="@+id/riv" + app:layout_constraintStart_toStartOf="@+id/riv" + app:layout_constraintTop_toTopOf="@+id/riv"/>