礼物面板UI调整

This commit is contained in:
huangjian
2022-10-13 14:18:03 +08:00
parent 9fad93fb5d
commit 78714567af
6 changed files with 23 additions and 10 deletions

View File

@@ -183,7 +183,6 @@ public class GiftDialog extends BottomSheetDialog implements View.OnClickListene
private TextView tvTabInteraction;
private View llTabType;
private View lineTabType;
private RealtimeBlurView realtimeBlurView;
private RollPagerView pagerViewVip;
private boolean isShowDrawGiftModel;
@Nullable
@@ -366,7 +365,6 @@ public class GiftDialog extends BottomSheetDialog implements View.OnClickListene
tvTabSendGift.setOnClickListener(this);
tvTabInteraction = findViewById(R.id.tv_tab_interaction);
tvTabInteraction.setOnClickListener(this);
realtimeBlurView = findViewById(R.id.realtime_blur_view);
pagerViewVip = findViewById(R.id.pager_view_vip);
llTabType = findViewById(R.id.ll_tab_type);
lineTabType = findViewById(R.id.line_tab_type);
@@ -424,7 +422,6 @@ public class GiftDialog extends BottomSheetDialog implements View.OnClickListene
giftIndicator.hidePosition(GiftIndicator.TYPE_DRAW_GIFT);
llTabType.setVisibility(View.GONE);
lineTabType.setVisibility(View.GONE);
realtimeBlurView.setOverlayColor(Color.parseColor("#B3020023"));
}
gridView = findViewById(R.id.gridView);
indicatorView = findViewById(R.id.indicator);
@@ -1258,8 +1255,9 @@ public class GiftDialog extends BottomSheetDialog implements View.OnClickListene
private void showGiftTab(int position, @Nullable GiftInfo selectGiftInfo) {
if (tvTabSendGift.isSelected() && position == giftIndicator.getCurrrentType()) return;
tvTabSendGift.setSelected(true);
tvTabSendGift.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, R.drawable.ic_gift_dialog_top_indicator);
tvTabInteraction.setSelected(false);
tvTabInteraction.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0);
giftIndicator.hidePosition(GiftIndicator.TYPE_DRAW_GIFT);
giftIndicator.showPosition(GiftIndicator.TYPE_LUCKY);
giftIndicator.showPosition(GiftIndicator.TYPE_NOBLE);
@@ -1273,7 +1271,9 @@ public class GiftDialog extends BottomSheetDialog implements View.OnClickListene
private void showInteractionTab() {
if (tvTabInteraction.isSelected()) return;
tvTabSendGift.setSelected(false);
tvTabSendGift.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0);
tvTabInteraction.setSelected(true);
tvTabInteraction.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, R.drawable.ic_gift_dialog_top_indicator);
giftIndicator.showPosition(GiftIndicator.TYPE_DRAW_GIFT);
giftIndicator.hidePosition(GiftIndicator.TYPE_LUCKY);

Binary file not shown.

After

Width:  |  Height:  |  Size: 336 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.2 KiB

After

Width:  |  Height:  |  Size: 9.2 KiB

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/ic_gift_dialog_top_indicator" android:state_selected="true" />
<item android:width="8dp" android:height="5dp">
<shape android:shape="rectangle">
<solid android:color="@color/transparent" />
</shape>
</item>
</selector>

View File

@@ -208,7 +208,7 @@
android:layout_height="wrap_content"
app:realtimeBlurRadius="80dp"
app:realtimeDownsampleFactor="1"
app:realtimeOverlayColor="@color/white_tran_10" />
app:realtimeOverlayColor="#0D0E2C" />
</com.mango.moshen.ui.widget.TopRoundLinearLayout>
@@ -280,9 +280,11 @@
android:id="@+id/tv_tab_send_gift"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableBottom="@drawable/ic_gift_dialog_top_indicator"
android:drawablePadding="2dp"
android:text="送礼"
android:textColor="@color/color_selector_white_false_8a8cab"
android:textSize="12sp" />
android:textSize="14sp" />
<View
android:layout_width="1px"
@@ -296,9 +298,10 @@
android:id="@+id/tv_tab_interaction"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawablePadding="2dp"
android:text="互动"
android:textColor="@color/color_selector_white_false_8a8cab"
android:textSize="12sp" />
android:textSize="14sp" />
<View
android:layout_width="0dp"
@@ -307,8 +310,8 @@
<com.mango.moshen.ui.widget.rollviewpager.RollPagerView
android:id="@+id/pager_view_vip"
android:layout_width="61dp"
android:layout_height="19dp"
android:layout_width="62dp"
android:layout_height="20dp"
android:layout_marginEnd="15dp" />
</LinearLayout>
@@ -317,7 +320,6 @@
android:id="@+id/line_tab_type"
android:layout_width="match_parent"
android:layout_height="1px"
android:layout_marginTop="10dp"
android:background="@color/white_tran_10" />
<RelativeLayout

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.7 KiB

After

Width:  |  Height:  |  Size: 6.1 KiB