Skip to content

Commit

Permalink
[Feat]: 注册功能提醒
Browse files Browse the repository at this point in the history
  • Loading branch information
why committed Apr 12, 2024
1 parent 4937178 commit 5606ec1
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import com.xiaoyv.bangumi.R
import com.xiaoyv.bangumi.databinding.ActivitySignUpBinding
import com.xiaoyv.bangumi.helper.RouteHelper
import com.xiaoyv.blueprint.base.binding.BaseBindingActivity
import com.xiaoyv.common.api.BgmApiManager
import com.xiaoyv.common.config.GlobalConfig
import com.xiaoyv.common.kts.GoogleAttr
import com.xiaoyv.common.kts.initNavBack
Expand Down Expand Up @@ -59,6 +60,10 @@ class SignUpActivity : BaseBindingActivity<ActivitySignUpBinding>() {
}

override fun initListener() {
binding.tvTip.setOnFastLimitClickListener {
RouteHelper.jumpWeb(BgmApiManager.URL_BASE_WEB, forceBrowser = true)
}

binding.btnSignUp.setOnFastLimitClickListener {
if (!binding.checkPrivacy.isChecked) {
showToastCompat("您必须阅读并同意《用户协议》和《隐私政策》")
Expand Down

This file was deleted.

16 changes: 14 additions & 2 deletions app/src/main/res/layout/activity_sign_up.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_height="653dp"
app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior">

<com.xiaoyv.common.widget.text.AnimeTextView
Expand Down Expand Up @@ -85,6 +85,18 @@
android:textAppearance="?attr/textAppearanceBodyLarge" />
</com.google.android.material.button.MaterialButtonToggleGroup>

<com.xiaoyv.common.widget.text.AnimeTextView
android:id="@+id/tv_tip"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="@dimen/ui_layout_margin"
android:lineSpacingMultiplier="1.25"
android:paddingHorizontal="@dimen/ui_size_6"
android:text="此软件为 Bangumi.TV 的第三方软件,建议使用浏览器进入官方站点进行注册操作!"
android:textAppearance="?attr/textAppearanceLabelSmall"
android:textColor="?attr/colorError"
app:layout_constraintTop_toBottomOf="@+id/btn_group" />

<com.xiaoyv.common.widget.button.AnimeButton
android:id="@+id/btn_sign_up"
android:layout_width="match_parent"
Expand All @@ -96,7 +108,7 @@
android:text="@string/sign_up_btn"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/btn_group" />
app:layout_constraintTop_toBottomOf="@+id/tv_tip" />

<com.xiaoyv.common.widget.text.AnimeTextView
android:id="@+id/tv_sign_in"
Expand Down

0 comments on commit 5606ec1

Please sign in to comment.