新增两个activity
This commit is contained in:
parent
4dff4d451d
commit
ad1735ad4e
|
|
@ -1,5 +1,7 @@
|
|||
package com.gamedog.vididin.features.benefit
|
||||
|
||||
import android.app.Activity
|
||||
import android.content.Intent
|
||||
import android.view.LayoutInflater
|
||||
import com.ama.core.architecture.appBase.AppViewsActivity
|
||||
import com.gamedog.vididin.main.interfaces.OnTabStyleListener
|
||||
|
|
@ -40,4 +42,10 @@ class BenefitActivity : AppViewsActivity<ViewBinding, UiState, ViewModel>(), OnT
|
|||
}
|
||||
|
||||
|
||||
companion object {
|
||||
internal fun startActivity(activity: Activity) {
|
||||
activity.startActivity(Intent(activity.applicationContext, BenefitActivity::class.java))
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
package com.gamedog.vididin.features.zero
|
||||
|
||||
import android.app.Activity
|
||||
import android.content.Intent
|
||||
import android.view.LayoutInflater
|
||||
import com.ama.core.architecture.appBase.AppViewsActivity
|
||||
import com.gamedog.vididin.main.interfaces.OnTabStyleListener
|
||||
|
|
@ -40,4 +42,10 @@ class ZeroBuyActivity : AppViewsActivity<ViewBinding, UiState, ViewModel>(), OnT
|
|||
}
|
||||
|
||||
|
||||
companion object {
|
||||
internal fun startActivity(activity: Activity) {
|
||||
activity.startActivity(Intent(activity.applicationContext, ZeroBuyActivity::class.java))
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -2,8 +2,7 @@
|
|||
<FrameLayout 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:orientation="vertical">
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:layout_width="wrap_content"
|
||||
|
|
@ -11,6 +10,19 @@
|
|||
android:src="@mipmap/temp_bg"
|
||||
/>
|
||||
|
||||
|
||||
<com.ama.core.architecture.widget.CustomTitleBar
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="60dp"
|
||||
app:titleText="Benefícios"
|
||||
app:titleTextColor="@android:color/white"
|
||||
app:titleTextSize="18sp"
|
||||
app:leftIcon="@mipmap/temp"
|
||||
app:titleBarBackground="#FF6B9E"
|
||||
app:rightButtonSpacing="8dp"
|
||||
/>
|
||||
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
|
|
|||
|
|
@ -13,4 +13,16 @@
|
|||
<attr name="isCircle" format="boolean" />
|
||||
</declare-styleable>
|
||||
|
||||
|
||||
<declare-styleable name="CustomTitleBar" tools:ignore="ResourceName">
|
||||
<attr name="titleText" format="string"/>
|
||||
<attr name="titleTextColor" format="color"/>
|
||||
<attr name="titleTextSize" format="dimension"/>
|
||||
<attr name="leftIcon" format="reference"/>
|
||||
<attr name="leftIconVisible" format="boolean"/>
|
||||
<attr name="titleBarBackground" format="color|reference"/>
|
||||
<attr name="rightButtonSpacing" format="dimension"/>
|
||||
</declare-styleable>
|
||||
|
||||
|
||||
</resources>
|
||||
|
|
@ -49,4 +49,7 @@
|
|||
|
||||
|
||||
<color name="transparent">00000000</color>
|
||||
<color name="title_bar_default_bg">#FF6B9E</color>
|
||||
|
||||
|
||||
</resources>
|
||||
Loading…
Reference in New Issue