调整礼物墙tab

This commit is contained in:
zlzw 2024-07-04 15:02:41 +08:00
parent 8cae89e7cd
commit 9c38f40098
4 changed files with 8 additions and 3 deletions

View File

@ -23,6 +23,7 @@ import com.yunbao.common.fragment.GiftWallMainTab1Fragment;
import com.yunbao.common.fragment.GiftWallMainTab2Fragment; import com.yunbao.common.fragment.GiftWallMainTab2Fragment;
import com.yunbao.common.utils.DpUtil; import com.yunbao.common.utils.DpUtil;
import com.yunbao.common.utils.ScreenDimenUtil; import com.yunbao.common.utils.ScreenDimenUtil;
import com.yunbao.common.utils.WordUtil;
import com.yunbao.common.views.CustomEllipsizeTextView; import com.yunbao.common.views.CustomEllipsizeTextView;
import com.yunbao.common.views.weight.ViewClicksAntiShake; import com.yunbao.common.views.weight.ViewClicksAntiShake;
@ -118,12 +119,16 @@ public class GiftWallDialog extends AbsDialogPopupWindow {
mIvBg.setImageResource(R.mipmap.bg_gift_wall_main_root2); mIvBg.setImageResource(R.mipmap.bg_gift_wall_main_root2);
mIvTabsLayout.setBackgroundResource(R.mipmap.icon_gift_wall_main_switch_full); mIvTabsLayout.setBackgroundResource(R.mipmap.icon_gift_wall_main_switch_full);
mTvTab1.setTextColor(Color.parseColor("#FFFFFF")); mTvTab1.setTextColor(Color.parseColor("#FDF5EE"));
mTvTab1.setTextSize(14); mTvTab1.setTextSize(14);
mTvTab1.setTypeface(Typeface.defaultFromStyle(Typeface.NORMAL)); mTvTab1.setTypeface(Typeface.defaultFromStyle(Typeface.NORMAL));
mTvTab2.setTextColor(Color.parseColor("#FFC593")); mTvTab2.setTextColor(Color.parseColor("#FFC593"));
if(WordUtil.isNewZh()) {
mTvTab2.setTextSize(16); mTvTab2.setTextSize(16);
}else{
mTvTab2.setTextSize(14.5f);
}
mTvTab2.setTypeface(Typeface.defaultFromStyle(Typeface.BOLD)); mTvTab2.setTypeface(Typeface.defaultFromStyle(Typeface.BOLD));
mViewPager.setCurrentItem(1,false); mViewPager.setCurrentItem(1,false);
}); });

View File

@ -77,7 +77,7 @@
<LinearLayout <LinearLayout
android:id="@+id/tab_layout" android:id="@+id/tab_layout"
android:layout_width="205dp" android:layout_width="240dp"
android:layout_height="36dp" android:layout_height="36dp"
android:layout_marginTop="13dp" android:layout_marginTop="13dp"
android:background="@mipmap/icon_gift_wall_main_switch_main" android:background="@mipmap/icon_gift_wall_main_switch_main"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 48 KiB