轉贈禮物增加沒有禮物ui
This commit is contained in:
@@ -237,6 +237,12 @@ class GiveGoldToUserActivity : BaseViewBindingActivity<ActivityGiveGoldToUserBin
|
||||
binding.tvGiftTab.isSelected = true
|
||||
binding.tvSure.isEnabled = true
|
||||
}
|
||||
if(giftList.size == 0){
|
||||
binding.tvEmptyTip.visibility = View.VISIBLE
|
||||
return
|
||||
}else{
|
||||
binding.tvEmptyTip.visibility = View.GONE
|
||||
}
|
||||
// giftList.map { it.isSelected = false }
|
||||
val list = transformList(giftList, 8)
|
||||
binding.magicIndicatorEntrance.initIndicator(list.size)
|
||||
|
@@ -160,7 +160,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
app:constraint_referenced_ids="mIvDiamond,mEditGold,mViewLine,mLiDiamond" />
|
||||
|
||||
<LinearLayout
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/llGiftList"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="290dp"
|
||||
@@ -171,12 +171,27 @@
|
||||
android:orientation="vertical"
|
||||
app:layout_constraintTop_toBottomOf="@+id/mLiDiamond">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvEmptyTip"
|
||||
android:text="@string/no_gift_now"
|
||||
android:textSize="@dimen/sp_14"
|
||||
android:textColor="@color/color_B3B3C3"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"/>
|
||||
|
||||
<androidx.viewpager.widget.ViewPager
|
||||
android:id="@+id/viewPagerEntrance"
|
||||
android:layout_marginStart="@dimen/dp_4"
|
||||
android:layout_marginEnd="@dimen/dp_4"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
android:layout_height="0dp"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toTopOf="@+id/magic_indicator_entrance"/>
|
||||
|
||||
<com.yizhuan.erban.home.widget.MePageIndicatorView
|
||||
android:id="@+id/magic_indicator_entrance"
|
||||
@@ -185,9 +200,13 @@
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_marginTop="2dp"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:background="@drawable/shape_me_indicator_bg" />
|
||||
android:background="@drawable/shape_me_indicator_bg"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/viewPagerEntrance"
|
||||
app:layout_constraintBottom_toBottomOf="parent"/>
|
||||
|
||||
</LinearLayout>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<EditText
|
||||
android:id="@+id/editGift"
|
||||
|
Reference in New Issue
Block a user