|
|
@@ -47,7 +47,7 @@
|
|
|
android:id="@+id/preview_image"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:scaleType="fitXY"
|
|
|
+ android:scaleType="fitCenter"
|
|
|
app:imageUri="@{previewViewModel.previewUri}"
|
|
|
app:isGone="@{previewViewModel.type != PreviewActivity.TYPE_IMG}"
|
|
|
app:layout_constraintBottom_toBottomOf="@id/preview_background"
|
|
|
@@ -115,10 +115,121 @@
|
|
|
app:layout_constraintRight_toRightOf="@id/preview_audio_background"
|
|
|
app:layout_constraintTop_toTopOf="@id/preview_audio_play" />
|
|
|
|
|
|
- <androidx.coordinatorlayout.widget.CoordinatorLayout
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
android:id="@+id/preview_bottom"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- app:layout_constraintBottom_toBottomOf="parent" />
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent">
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:id="@+id/v_bottom"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:background="@color/white"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintDimensionRatio="360:72" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:background="@drawable/bg_common_btn"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="@string/export"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="16sp"
|
|
|
+ android:textStyle="bold"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@id/v_bottom"
|
|
|
+ app:layout_constraintDimensionRatio="328:44"
|
|
|
+ app:layout_constraintEnd_toEndOf="@+id/v_bottom"
|
|
|
+ app:layout_constraintStart_toStartOf="@id/v_bottom"
|
|
|
+ app:layout_constraintTop_toTopOf="@id/v_bottom"
|
|
|
+ app:layout_constraintWidth_percent="0.9111111111111111" />
|
|
|
+
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ app:isGone="@{previewViewModel.type != PreviewActivity.TYPE_IMG}"
|
|
|
+ app:layout_constraintBottom_toTopOf="@+id/v_bottom">
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:id="@+id/v_preview_img_bottom"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:background="@drawable/bg_preview_img_bottom"
|
|
|
+ app:layout_constraintDimensionRatio="360:103"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_preview_img_name"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="@dimen/app_common_page_horizontal_padding"
|
|
|
+ android:text="@string/preview_img_create_time"
|
|
|
+ android:textColor="#A7A7A7"
|
|
|
+ android:textSize="12sp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/v_preview_img_bottom"
|
|
|
+ app:layout_constraintStart_toStartOf="@+id/v_preview_img_bottom"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/v_preview_img_bottom"
|
|
|
+ app:layout_constraintVertical_bias="0.1627906976744186" />
|
|
|
+
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_preview_file_type"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="@dimen/app_common_page_horizontal_padding"
|
|
|
+ android:text="@string/preview_img_file_type"
|
|
|
+ android:textColor="#A7A7A7"
|
|
|
+ android:textSize="12sp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/v_preview_img_bottom"
|
|
|
+ app:layout_constraintStart_toStartOf="@+id/v_preview_img_bottom"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/v_preview_img_bottom" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_preview_file_size"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="@dimen/app_common_page_horizontal_padding"
|
|
|
+ android:text="@string/preview_img_file_size"
|
|
|
+ android:textColor="#A7A7A7"
|
|
|
+ android:textSize="12sp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/v_preview_img_bottom"
|
|
|
+ app:layout_constraintStart_toStartOf="@+id/v_preview_img_bottom"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/v_preview_img_bottom"
|
|
|
+ app:layout_constraintVertical_bias="0.8372093023255814" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ app:layout_constraintStart_toEndOf="@+id/tv_preview_img_name"
|
|
|
+ app:layout_constraintBaseline_toBaselineOf="@+id/tv_preview_img_name"
|
|
|
+ android:textColor="#404040"
|
|
|
+ android:textSize="12sp"
|
|
|
+ android:layout_marginStart="12dp"
|
|
|
+ tools:text="2023-06-26 16:21"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ app:layout_constraintStart_toEndOf="@+id/tv_preview_file_type"
|
|
|
+ app:layout_constraintBaseline_toBaselineOf="@+id/tv_preview_file_type"
|
|
|
+ android:textColor="#404040"
|
|
|
+ android:textSize="12sp"
|
|
|
+ android:layout_marginStart="12dp"
|
|
|
+ tools:text="PNG"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ app:layout_constraintStart_toEndOf="@+id/tv_preview_file_size"
|
|
|
+ app:layout_constraintBaseline_toBaselineOf="@+id/tv_preview_file_size"
|
|
|
+ android:textColor="#404040"
|
|
|
+ android:textSize="12sp"
|
|
|
+ android:layout_marginStart="12dp"
|
|
|
+ tools:text="14.10KB"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content" />
|
|
|
+
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
</layout>
|