|
|
@@ -54,36 +54,37 @@
|
|
|
android:background="@drawable/bg_voice_ai_vip"
|
|
|
android:onClick="@{()-> voiceAIViewModel.onGoSubscriptionClick()}"
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/v_tool_bar"
|
|
|
- app:layout_constraintDimensionRatio="58:28"
|
|
|
+ app:layout_constraintDimensionRatio="80:28"
|
|
|
app:layout_constraintStart_toStartOf="@+id/v_tool_bar"
|
|
|
app:layout_constraintTop_toTopOf="@+id/v_tool_bar"
|
|
|
- app:layout_constraintWidth_percent="0.1611111111111111" />
|
|
|
+ app:layout_constraintWidth_percent="0.2222222222222222" />
|
|
|
|
|
|
<ImageView
|
|
|
android:id="@+id/iv_vip"
|
|
|
android:layout_width="0dp"
|
|
|
android:layout_height="0dp"
|
|
|
- android:src="@drawable/icon_vip"
|
|
|
+ android:src="@drawable/icon_total_integration"
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/v_vip_bg"
|
|
|
- app:layout_constraintDimensionRatio="1:1"
|
|
|
+ app:layout_constraintDimensionRatio="39:42"
|
|
|
app:layout_constraintHorizontal_chainStyle="packed"
|
|
|
app:layout_constraintLeft_toLeftOf="@+id/v_vip_bg"
|
|
|
app:layout_constraintRight_toLeftOf="@+id/tv_vip_title"
|
|
|
app:layout_constraintTop_toTopOf="@+id/v_vip_bg"
|
|
|
- app:layout_constraintWidth_percent="0.0444444444444444" />
|
|
|
+ app:layout_constraintWidth_percent="0.0344444444444444" />
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/tv_vip_title"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_marginStart="4dp"
|
|
|
- android:text="@string/voice_pro"
|
|
|
+ android:text="@{String.valueOf(voiceAIViewModel.credit)}"
|
|
|
android:textColor="@color/colorPrimaryVariant"
|
|
|
android:textSize="14dp"
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/v_vip_bg"
|
|
|
app:layout_constraintLeft_toRightOf="@+id/iv_vip"
|
|
|
app:layout_constraintRight_toRightOf="@+id/v_vip_bg"
|
|
|
- app:layout_constraintTop_toTopOf="@+id/v_vip_bg" />
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/v_vip_bg"
|
|
|
+ tools:text="200" />
|
|
|
|
|
|
<TextView
|
|
|
android:layout_width="wrap_content"
|
|
|
@@ -122,75 +123,17 @@
|
|
|
app:layout_constraintDimensionRatio="360:12"
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
- <View
|
|
|
- android:id="@+id/v_free_get_bg"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="0dp"
|
|
|
- android:layout_marginHorizontal="@dimen/app_common_page_horizontal_padding"
|
|
|
- android:alpha="0.1"
|
|
|
- android:background="@drawable/bg_voice_ai_free"
|
|
|
- android:onClick="@{()-> voiceAIViewModel.onGetMoreClick()}"
|
|
|
- app:layout_constraintDimensionRatio="336:36"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/space1" />
|
|
|
-
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/tv_generate_free_desc"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginStart="14dp"
|
|
|
- android:text="@{voiceAIViewModel.voiceProbationTxt}"
|
|
|
- android:textColor="@color/white"
|
|
|
- android:textSize="14sp"
|
|
|
- app:layout_constraintBottom_toBottomOf="@+id/v_free_get_bg"
|
|
|
- app:layout_constraintStart_toStartOf="@+id/v_free_get_bg"
|
|
|
- app:layout_constraintTop_toTopOf="@+id/v_free_get_bg"
|
|
|
- tools:text="You have 3 chances today." />
|
|
|
-
|
|
|
- <ImageView
|
|
|
- android:id="@+id/iv_get_free_arrow"
|
|
|
- android:layout_width="0dp"
|
|
|
- android:layout_height="0dp"
|
|
|
- android:layout_marginEnd="8dp"
|
|
|
- android:src="@drawable/icon_voice_ai_free_arrow"
|
|
|
- app:layout_constraintBottom_toBottomOf="@+id/v_free_get_bg"
|
|
|
- app:layout_constraintDimensionRatio="61:60"
|
|
|
- app:layout_constraintEnd_toEndOf="@+id/v_free_get_bg"
|
|
|
- app:layout_constraintTop_toTopOf="@+id/v_free_get_bg"
|
|
|
- app:layout_constraintWidth_percent="0.0555555555555556" />
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/tv_get_free_txt"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:text="@string/voice_ai_get_free"
|
|
|
- android:textColor="@color/white"
|
|
|
- android:textSize="14sp"
|
|
|
- app:layout_constraintBottom_toBottomOf="@+id/iv_get_free_arrow"
|
|
|
- app:layout_constraintEnd_toStartOf="@+id/iv_get_free_arrow"
|
|
|
- app:layout_constraintTop_toTopOf="@+id/iv_get_free_arrow" />
|
|
|
-
|
|
|
- <Space
|
|
|
- android:id="@+id/sapce2"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="0dp"
|
|
|
- app:layout_constraintDimensionRatio="360:8"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/v_free_get_bg" />
|
|
|
-
|
|
|
-
|
|
|
<TextView
|
|
|
android:id="@+id/tv_your_txt_title"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_marginStart="@dimen/app_common_page_horizontal_padding"
|
|
|
- android:layout_marginTop="12dp"
|
|
|
android:text="@string/voice_your_text"
|
|
|
android:textColor="@color/white"
|
|
|
android:textSize="16sp"
|
|
|
android:textStyle="bold"
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/sapce2" />
|
|
|
-
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/space1" />
|
|
|
|
|
|
<View
|
|
|
android:id="@+id/v_voice_print_bg"
|
|
|
@@ -204,6 +147,7 @@
|
|
|
|
|
|
<com.atmob.voiceai.widget.IgnoreNoEnterActionEditText
|
|
|
android:id="@+id/et_voice_print"
|
|
|
+ maxLength="@{voiceAIViewModel.voiceTextLimit }"
|
|
|
android:layout_width="0dp"
|
|
|
android:layout_height="0dp"
|
|
|
android:layout_marginHorizontal="@dimen/app_common_page_horizontal_padding"
|
|
|
@@ -212,7 +156,6 @@
|
|
|
android:background="@null"
|
|
|
android:gravity="start"
|
|
|
android:hint="@string/voice_ai_print_hint"
|
|
|
- android:maxLength="200"
|
|
|
android:text="@={voiceAIViewModel.voicePrintTxt}"
|
|
|
android:textColor="@color/white"
|
|
|
android:textColorHint="@color/white50"
|
|
|
@@ -222,30 +165,109 @@
|
|
|
app:layout_constraintStart_toStartOf="@+id/v_voice_print_bg"
|
|
|
app:layout_constraintTop_toTopOf="@+id/v_voice_print_bg" />
|
|
|
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:onClick="@{()-> voiceAIViewModel.onRandomTxtClick()}"
|
|
|
+ android:id="@+id/v_voice_ai_random_txt"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:layout_marginStart="6dp"
|
|
|
+ android:background="@drawable/bg_voice_ai_random_txt"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/tv_print_clear"
|
|
|
+ app:layout_constraintDimensionRatio="104:28"
|
|
|
+ app:layout_constraintStart_toStartOf="@+id/v_voice_print_bg"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/tv_print_clear"
|
|
|
+ app:layout_constraintWidth_percent="0.2888888888888889" />
|
|
|
+
|
|
|
+ <Space
|
|
|
+ android:id="@+id/space_voice_ai_random_txt"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/v_voice_ai_random_txt"
|
|
|
+ app:layout_constraintDimensionRatio="1:1"
|
|
|
+ app:layout_constraintHorizontal_chainStyle="packed"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/v_voice_ai_random_txt"
|
|
|
+ app:layout_constraintRight_toLeftOf="@+id/tv_voice_ai_random_txt"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/v_voice_ai_random_txt"
|
|
|
+ app:layout_constraintWidth_percent="0.0333333333333333" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ isGone="@{voiceAIViewModel.isRandoming}"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:src="@drawable/icon_voice_ai_random_txt"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/space_voice_ai_random_txt"
|
|
|
+ app:layout_constraintDimensionRatio="1:1"
|
|
|
+ app:layout_constraintEnd_toEndOf="@+id/space_voice_ai_random_txt"
|
|
|
+ app:layout_constraintStart_toStartOf="@+id/space_voice_ai_random_txt"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/space_voice_ai_random_txt" />
|
|
|
+
|
|
|
+ <ProgressBar
|
|
|
+ android:id="@+id/progress_random_txt"
|
|
|
+ isGone="@{!voiceAIViewModel.isRandoming}"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:indeterminate="true"
|
|
|
+ android:indeterminateDrawable="@drawable/progress_random_txt_loading"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/space_voice_ai_random_txt"
|
|
|
+ app:layout_constraintDimensionRatio="1:1"
|
|
|
+ app:layout_constraintEnd_toEndOf="@+id/space_voice_ai_random_txt"
|
|
|
+ app:layout_constraintStart_toStartOf="@+id/space_voice_ai_random_txt"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/space_voice_ai_random_txt"
|
|
|
+ app:layout_constraintVertical_chainStyle="packed" />
|
|
|
+
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_voice_ai_random_txt"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="4dp"
|
|
|
+ android:text="@string/voice_ai_random_txt"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="12sp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/v_voice_ai_random_txt"
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/space_voice_ai_random_txt"
|
|
|
+ app:layout_constraintRight_toRightOf="@+id/v_voice_ai_random_txt"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/v_voice_ai_random_txt" />
|
|
|
+
|
|
|
<TextView
|
|
|
android:id="@+id/tv_print_clear"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginStart="9dp"
|
|
|
- android:layout_marginBottom="@dimen/app_common_page_horizontal_padding"
|
|
|
+ android:layout_marginEnd="20dp"
|
|
|
android:onClick="@{()-> voiceAIViewModel.clearPrintTxt()}"
|
|
|
android:text="@string/voice_ai_clear_txt"
|
|
|
android:textColor="@color/colorPrimaryVariant"
|
|
|
android:textSize="14sp"
|
|
|
- app:layout_constraintBottom_toBottomOf="@+id/v_voice_print_bg"
|
|
|
- app:layout_constraintStart_toStartOf="@+id/v_voice_print_bg" />
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/tv_print_length"
|
|
|
+ app:layout_constraintEnd_toStartOf="@+id/tv_print_length"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/tv_print_length" />
|
|
|
+
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_print_length"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="@{String.valueOf(voiceAIViewModel.voicePrintTxt.length)}"
|
|
|
+ android:textColor="@color/white50"
|
|
|
+ android:textSize="14sp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/tv_print_limit"
|
|
|
+ app:layout_constraintRight_toLeftOf="@+id/tv_print_limit"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/tv_print_limit"
|
|
|
+ tools:text="0" />
|
|
|
|
|
|
<TextView
|
|
|
+ android:id="@+id/tv_print_limit"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_marginEnd="@dimen/app_common_page_horizontal_padding"
|
|
|
- android:text="@{voiceAIViewModel.voicePrintLimitTxt}"
|
|
|
+ android:layout_marginBottom="@dimen/app_common_page_horizontal_padding"
|
|
|
+ android:text='@{ "/" + voiceAIViewModel.voiceTextLimit}'
|
|
|
android:textColor="@color/white50"
|
|
|
android:textSize="14sp"
|
|
|
- app:layout_constraintBottom_toBottomOf="@+id/tv_print_clear"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/v_voice_print_bg"
|
|
|
app:layout_constraintEnd_toEndOf="@+id/v_voice_print_bg"
|
|
|
- app:layout_constraintTop_toTopOf="@+id/tv_print_clear"
|
|
|
- tools:text="0/200" />
|
|
|
+ tools:text="/500" />
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
@@ -286,22 +308,9 @@
|
|
|
app:tabPaddingStart="0dp"
|
|
|
app:tabRippleColor="#00000000" />
|
|
|
|
|
|
-
|
|
|
- <androidx.constraintlayout.widget.Group
|
|
|
- isGone="@{voiceAIViewModel.isMember || voiceAIViewModel.voiceProbationTxt == null || voiceAIViewModel.voiceProbationTxt.toString().length() == 0 }"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- app:constraint_referenced_ids="v_free_get_bg,tv_generate_free_desc,sapce2,iv_get_free_arrow,tv_get_free_txt" />
|
|
|
-
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
|
- <androidx.constraintlayout.widget.Group
|
|
|
- isGone="@{voiceAIViewModel.isMember}"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- app:constraint_referenced_ids="v_vip_bg,iv_vip,tv_vip_title" />
|
|
|
-
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
<RelativeLayout
|
|
|
@@ -361,19 +370,6 @@
|
|
|
app:layout_constraintDimensionRatio="336:48"
|
|
|
app:layout_constraintTop_toTopOf="@+id/v_generate" />
|
|
|
|
|
|
- <ImageView
|
|
|
- android:id="@+id/iv_ad"
|
|
|
- isGone="@{voiceAIViewModel.isMember()}"
|
|
|
- android:layout_width="0dp"
|
|
|
- android:layout_height="0dp"
|
|
|
- android:src="@drawable/icon_ad_film"
|
|
|
- app:layout_constraintBottom_toBottomOf="@+id/v_generate_btn"
|
|
|
- app:layout_constraintDimensionRatio="1:1"
|
|
|
- app:layout_constraintHorizontal_chainStyle="packed"
|
|
|
- app:layout_constraintLeft_toLeftOf="@+id/v_generate_btn"
|
|
|
- app:layout_constraintRight_toLeftOf="@+id/tv_generate_txt"
|
|
|
- app:layout_constraintTop_toTopOf="@+id/v_generate_btn"
|
|
|
- app:layout_constraintWidth_percent="0.0388888888888889" />
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/tv_generate_txt"
|
|
|
@@ -385,7 +381,6 @@
|
|
|
android:textSize="17sp"
|
|
|
android:textStyle="bold"
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/v_generate_btn"
|
|
|
- app:layout_constraintLeft_toRightOf="@+id/iv_ad"
|
|
|
app:layout_constraintRight_toRightOf="@+id/v_generate_btn"
|
|
|
app:layout_constraintTop_toTopOf="@+id/v_generate_btn" />
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|