This commit is contained in:
renhaoting 2025-12-05 19:08:40 +08:00
parent 47020ca736
commit b7ca0babe5
4 changed files with 69 additions and 114 deletions

View File

@ -4,14 +4,10 @@ import android.app.Activity
import android.content.Intent import android.content.Intent
import android.view.LayoutInflater import android.view.LayoutInflater
import androidx.activity.viewModels import androidx.activity.viewModels
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import androidx.core.view.updatePadding
import com.ama.core.architecture.appBase.AppViewsActivity import com.ama.core.architecture.appBase.AppViewsActivity
import com.ama.core.architecture.util.setOnClickBatch import com.ama.core.architecture.util.setOnClickBatch
import com.gamedog.vididin.R import com.gamedog.vididin.R
import com.gamedog.vididin.core.login.login.AccountManager import com.gamedog.vididin.core.login.login.AccountManager
import com.gamedog.vididin.main.interfaces.OnTabStyleListener
import com.gamedog.vididin.router.Router import com.gamedog.vididin.router.Router
import dagger.hilt.android.AndroidEntryPoint import dagger.hilt.android.AndroidEntryPoint
import kotlin.getValue import kotlin.getValue
@ -21,7 +17,7 @@ import com.gamedog.vididin.main.MainViewModel as ViewModel
@AndroidEntryPoint @AndroidEntryPoint
class ZeroBuyActivity : AppViewsActivity<ViewBinding, UiState, ViewModel>(), OnTabStyleListener { class ZeroBuyActivity : AppViewsActivity<ViewBinding, UiState, ViewModel>() {
override val mViewModel: ViewModel by viewModels() override val mViewModel: ViewModel by viewModels()
override fun inflateViewBinding(inflater: LayoutInflater) = ViewBinding.inflate(inflater) override fun inflateViewBinding(inflater: LayoutInflater) = ViewBinding.inflate(inflater)
@ -71,16 +67,10 @@ class ZeroBuyActivity : AppViewsActivity<ViewBinding, UiState, ViewModel>(), OnT
//TODO("Not yet implemented") //TODO("Not yet implemented")
} }
override fun onTabIsDarkFont(isDarkFont: Boolean) {
//TODO("Not yet implemented")
}
private fun gotoLotteryRecords() { private fun gotoLotteryRecords() {
Router.WinRecord.startActivity(this) Router.WinRecord.startActivity(this)
} }
companion object { companion object {
internal fun startActivity(activity: Activity) { internal fun startActivity(activity: Activity) {
activity.startActivity(Intent(activity.applicationContext, ZeroBuyActivity::class.java)) activity.startActivity(Intent(activity.applicationContext, ZeroBuyActivity::class.java))

View File

@ -1,8 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<shape android:shape="rectangle" <shape android:shape="rectangle"
xmlns:android="http://schemas.android.com/apk/res/android"> xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#33666666" /> <solid android:color="#66666666" />
<corners android:topLeftRadius="23dp" android:topRightRadius="23dp" android:bottomLeftRadius="23dp" android:bottomRightRadius="23dp" /> <corners android:topLeftRadius="23dp" android:topRightRadius="23dp" android:bottomLeftRadius="23dp" android:bottomRightRadius="23dp" />
</shape> </shape>

View File

@ -11,20 +11,21 @@
android:scaleType="centerCrop" android:scaleType="centerCrop"
/> />
<com.ama.core.architecture.widget.CustomTitleBar <FrameLayout
android:id="@+id/titlebar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="match_parent"
/> android:id="@+id/content_root" >
<androidx.core.widget.NestedScrollView <com.ama.core.architecture.widget.CustomTitleBar
android:id="@+id/content_root" android:id="@+id/titlebar"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<FrameLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="wrap_content"
/>
<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -83,13 +84,15 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical" android:orientation="vertical"
android:padding="15dp" android:paddingTop="15dp"
android:background="@drawable/zero_bg_4_items"> android:background="@drawable/zero_bg_4_items"
>
<!--第一行两个--> <!--第一行两个-->
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginHorizontal="15dp"
android:orientation="horizontal"> android:orientation="horizontal">
<LinearLayout <LinearLayout
@ -218,35 +221,66 @@
</LinearLayout> </LinearLayout>
<!--参加者-->
<!--第一行两个-->
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:paddingVertical="8dp"
android:paddingHorizontal="15dp"
android:orientation="horizontal" android:orientation="horizontal"
android:layout_marginTop="15dp"> android:layout_marginHorizontal="16dp"
android:gravity="center_vertical"
android:background="@drawable/bg_zero_buy_bottom">
<LinearLayout <androidx.appcompat.widget.AppCompatTextView
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:orientation="vertical" android:textColor="@color/white"
android:background="@mipmap/zero_bg_item"> android:textSize="12sp"
android:text="@string/participar_member"
/>
</LinearLayout> <androidx.appcompat.widget.AppCompatImageView
android:layout_width="wrap_content"
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:src="@mipmap/icon_fail"
android:orientation="vertical" android:layout_marginStart="5dp"
android:layout_marginLeft="15dp" />
android:background="@mipmap/zero_bg_item">
</LinearLayout>
</LinearLayout> </LinearLayout>
<!--提示信息-->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginTop="13dp"
android:gravity="center"
android:padding="15dp"
android:background="@drawable/bg_zero_buy_bottom_hint">
<androidx.appcompat.widget.AppCompatTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/red_9c"
android:textSize="12sp"
android:textStyle="bold"
android:text="@string/zero_buy_hint_title"
/>
<androidx.appcompat.widget.AppCompatTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/red_9c"
android:layout_marginTop="20dp"
android:textSize="10sp"
android:text="@string/zero_buy_hint_content"
/>
</LinearLayout>
</LinearLayout> </LinearLayout>
@ -254,79 +288,13 @@
</LinearLayout> </LinearLayout>
<!--参加者-->
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:padding="15dp"
android:layout_marginHorizontal="16dp"
android:background="@drawable/bg_zero_buy_bottom">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<androidx.appcompat.widget.AppCompatTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="4.5dp"
android:textColor="@color/white"
android:textSize="12sp"
android:text="@string/participar_member"
/>
<androidx.appcompat.widget.AppCompatTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="4.5dp"
android:textColor="@color/white"
android:textSize="12sp"
android:text="@string/participar_member_2"
/>
</LinearLayout>
</RelativeLayout>
<!--提示信息-->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginTop="30dp"
android:gravity="center"
android:padding="15dp"
android:background="@drawable/bg_zero_buy_bottom_hint">
<androidx.appcompat.widget.AppCompatTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/red_9c"
android:textSize="12sp"
android:text="@string/zero_buy_hint_title"
/>
<androidx.appcompat.widget.AppCompatTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/red_9c"
android:layout_marginTop="20dp"
android:textSize="10sp"
android:text="@string/zero_buy_hint_content"
/>
</LinearLayout>
</LinearLayout> </LinearLayout>
</androidx.core.widget.NestedScrollView>
</FrameLayout>
</FrameLayout>
</androidx.core.widget.NestedScrollView>
</FrameLayout> </FrameLayout>

View File

@ -111,10 +111,9 @@
<string name="sorte">Sorteio instantâneo:</string> <string name="sorte">Sorteio instantâneo:</string>
<string name="pessoas">pessoas</string> <string name="pessoas">pessoas</string>
<string name="participar">Participar</string> <string name="participar">Participar</string>
<string name="participar_member">Participe do super sorteio grátis</string> <string name="participar_member">Participe do super sorteio grátis \nQuase 4 milhões de pessoas na jogada!</string>
<string name="participar_member_2">Quase 4 milhões de pessoas na jogada!</string>
<string name="zero_buy_hint_title">Regras para Ganhar</string> <string name="zero_buy_hint_title">Regras para Ganhar</string>
<string name="zero_buy_hint_content"><![CDATA[Número Sorteado = Segundos da Conclusão % Número de Participantes + 1%: Computes the remainder after division by team size.\\n· Gaste Moedas de Propaganda para participar.\n·Draw when ful l& Reembolso automático se não completar]]></string> <string name="zero_buy_hint_content"><![CDATA[Número Sorteado = Segundos da Conclusão % Número de Participantes + 1%: Computes the remainder after division by team size. \n· Gaste Moedas de Propaganda para participar.\n·Draw when ful l& Reembolso automático se não completar]]></string>
<string name="record_cash_title">Dinheiro</string> <string name="record_cash_title">Dinheiro</string>
<string name="record_gold_title">Moedas</string> <string name="record_gold_title">Moedas</string>
<string name="record_cash_title_hint">Total sacado até o momento:</string> <string name="record_cash_title_hint">Total sacado até o momento:</string>