礼物墙 and tablayout
This commit is contained in:
@@ -722,7 +722,6 @@ class RoomActivity : BaseMvpActivity<RoomPresenter?, ActivityRoomBinding?>(),
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun isInAuctionTopBtVisible(isShow: Boolean) {
|
fun isInAuctionTopBtVisible(isShow: Boolean) {
|
||||||
mBinding!!.roomTop.rl.visibility = View.GONE
|
|
||||||
mBinding!!.roomTop.stubButtons2.visibility = if (isShow) View.VISIBLE else View.GONE
|
mBinding!!.roomTop.stubButtons2.visibility = if (isShow) View.VISIBLE else View.GONE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -45,8 +45,6 @@ import com.xscm.moduleutil.utils.ARouteConstants;
|
|||||||
import com.xscm.moduleutil.utils.ImageUtils;
|
import com.xscm.moduleutil.utils.ImageUtils;
|
||||||
import com.xscm.moduleutil.utils.logger.DataLogger;
|
import com.xscm.moduleutil.utils.logger.DataLogger;
|
||||||
|
|
||||||
import org.greenrobot.eventbus.EventBus;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@@ -286,11 +284,11 @@ public class VoiceCategoryFragment extends BaseMvpFragment<VoiceCategoryPresente
|
|||||||
if (position == 0) {
|
if (position == 0) {
|
||||||
textView.setTextSize(TypedValue.COMPLEX_UNIT_SP, 16);
|
textView.setTextSize(TypedValue.COMPLEX_UNIT_SP, 16);
|
||||||
textView.setTextColor(getResources().getColor(android.R.color.white));
|
textView.setTextColor(getResources().getColor(android.R.color.white));
|
||||||
customView.setBackgroundResource(com.xscm.moduleutil.R.drawable.tab_indicator);
|
// customView.setBackgroundResource(com.xscm.moduleutil.R.drawable.tab_indicator);
|
||||||
} else {
|
} else {
|
||||||
textView.setTextSize(TypedValue.COMPLEX_UNIT_SP, 12);
|
textView.setTextSize(TypedValue.COMPLEX_UNIT_SP, 12);
|
||||||
textView.setTextColor(Color.parseColor("#F1ECFF"));
|
textView.setTextColor(Color.parseColor("#F1ECFF"));
|
||||||
customView.setBackgroundResource(com.xscm.moduleutil.R.drawable.tab_unselected_background);
|
// customView.setBackgroundResource(com.xscm.moduleutil.R.drawable.tab_unselected_background);
|
||||||
}
|
}
|
||||||
|
|
||||||
tab.setCustomView(customView);
|
tab.setCustomView(customView);
|
||||||
@@ -311,7 +309,7 @@ public class VoiceCategoryFragment extends BaseMvpFragment<VoiceCategoryPresente
|
|||||||
textView.setTextSize(TypedValue.COMPLEX_UNIT_SP, 16);
|
textView.setTextSize(TypedValue.COMPLEX_UNIT_SP, 16);
|
||||||
textView.setTextColor(getResources().getColor(android.R.color.white));
|
textView.setTextColor(getResources().getColor(android.R.color.white));
|
||||||
}
|
}
|
||||||
customView.setBackgroundResource(com.xscm.moduleutil.R.drawable.tab_indicator);
|
// customView.setBackgroundResource(com.xscm.moduleutil.R.drawable.tab_indicator);
|
||||||
}
|
}
|
||||||
|
|
||||||
RoomTypeModel roomTypeModel = list.get(position);
|
RoomTypeModel roomTypeModel = list.get(position);
|
||||||
|
|||||||
@@ -5,11 +5,11 @@ import android.os.Bundle;
|
|||||||
import androidx.recyclerview.widget.GridLayoutManager;
|
import androidx.recyclerview.widget.GridLayoutManager;
|
||||||
|
|
||||||
import com.xscm.modulemain.R;
|
import com.xscm.modulemain.R;
|
||||||
import com.xscm.modulemain.adapter.UserGiftWallAdapter;
|
|
||||||
import com.xscm.modulemain.databinding.MeFagmentUserGiftWallBinding;
|
|
||||||
import com.xscm.modulemain.activity.user.activity.UserHomepageActivity;
|
import com.xscm.modulemain.activity.user.activity.UserHomepageActivity;
|
||||||
import com.xscm.modulemain.activity.user.conacts.UserGiftWallConacts;
|
import com.xscm.modulemain.activity.user.conacts.UserGiftWallConacts;
|
||||||
import com.xscm.modulemain.activity.user.presenter.UserGiftWallPresenter;
|
import com.xscm.modulemain.activity.user.presenter.UserGiftWallPresenter;
|
||||||
|
import com.xscm.modulemain.adapter.UserGiftWallAdapter;
|
||||||
|
import com.xscm.modulemain.databinding.MeFagmentUserGiftWall2Binding;
|
||||||
import com.xscm.moduleutil.base.BaseMvpFragment;
|
import com.xscm.moduleutil.base.BaseMvpFragment;
|
||||||
import com.xscm.moduleutil.bean.CombinedGiftBean;
|
import com.xscm.moduleutil.bean.CombinedGiftBean;
|
||||||
import com.xscm.moduleutil.bean.GiftUserWallBean;
|
import com.xscm.moduleutil.bean.GiftUserWallBean;
|
||||||
@@ -21,7 +21,7 @@ import java.util.List;
|
|||||||
/**
|
/**
|
||||||
* 礼物墙
|
* 礼物墙
|
||||||
*/
|
*/
|
||||||
public class UserGiftWallFragment extends BaseMvpFragment<UserGiftWallPresenter, MeFagmentUserGiftWallBinding> implements UserGiftWallConacts.View {
|
public class UserGiftWallFragment extends BaseMvpFragment<UserGiftWallPresenter, MeFagmentUserGiftWall2Binding> implements UserGiftWallConacts.View {
|
||||||
|
|
||||||
|
|
||||||
public String userId;
|
public String userId;
|
||||||
@@ -82,7 +82,7 @@ public class UserGiftWallFragment extends BaseMvpFragment<UserGiftWallPresenter,
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected int getLayoutId() {
|
protected int getLayoutId() {
|
||||||
return R.layout.me_fagment_user_gift_wall;
|
return R.layout.me_fagment_user_gift_wall_2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ public class UserGiftWallAdapter extends BaseQuickAdapter<CombinedGiftBean, Base
|
|||||||
|
|
||||||
|
|
||||||
public UserGiftWallAdapter() {
|
public UserGiftWallAdapter() {
|
||||||
super(R.layout.me_item_user_gift_wall);
|
super(R.layout.me_item_user_gift_wall_2);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
20
modulemain/src/main/res/drawable/tab_indicator_bg.xml
Normal file
20
modulemain/src/main/res/drawable/tab_indicator_bg.xml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<!-- 用item标签限制整体尺寸:maxWidth=100dp,height=10dp(与tabIndicatorHeight一致) -->
|
||||||
|
<item
|
||||||
|
android:height="@dimen/dp_25"
|
||||||
|
android:gravity="center"
|
||||||
|
android:maxWidth="@dimen/dp_20">
|
||||||
|
<!-- 最大宽度(根据需求调整) -->
|
||||||
|
<!-- 固定高度(与tabIndicatorHeight匹配) -->
|
||||||
|
<!-- 图片在item内居中 -->
|
||||||
|
<!-- 嵌套bitmap设置图片资源和缩放模式 -->
|
||||||
|
<bitmap
|
||||||
|
android:dither="true"
|
||||||
|
android:scaleType="center"
|
||||||
|
android:src="@mipmap/tab_dy" />
|
||||||
|
<!-- 你的图片资源 -->
|
||||||
|
<!-- 等比例缩放,确保图片在maxWidth和height内完整显示 -->
|
||||||
|
<!-- 抗锯齿优化 -->
|
||||||
|
</item>
|
||||||
|
</layer-list>
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
android:layout_marginLeft="@dimen/dp_10"
|
android:layout_marginLeft="@dimen/dp_10"
|
||||||
android:layout_marginTop="@dimen/dp_5"
|
android:layout_marginTop="@dimen/dp_5"
|
||||||
android:layout_marginRight="@dimen/dp_10"
|
android:layout_marginRight="@dimen/dp_10"
|
||||||
app:tabIndicator="@drawable/tab_indicator"
|
app:tabIndicator="@drawable/tab_indicator_bottom"
|
||||||
app:tabIndicatorColor="@null"
|
app:tabIndicatorColor="@null"
|
||||||
app:tabIndicatorFullWidth="false"
|
app:tabIndicatorFullWidth="false"
|
||||||
app:tabIndicatorGravity="bottom"
|
app:tabIndicatorGravity="bottom"
|
||||||
|
|||||||
@@ -1,282 +1,281 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
xmlns:tools="http://schemas.android.com/tools">
|
xmlns:tools="http://schemas.android.com/tools">
|
||||||
|
|
||||||
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent">
|
android:layout_height="match_parent">
|
||||||
|
|
||||||
<com.google.android.material.appbar.AppBarLayout
|
<com.google.android.material.appbar.AppBarLayout
|
||||||
android:id="@+id/app_bar_layout"
|
android:id="@+id/app_bar_layout"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="@color/color_transparent"
|
android:background="@color/color_transparent"
|
||||||
app:elevation="0dp">
|
app:elevation="0dp">
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
android:id="@+id/constraint_layout"
|
android:id="@+id/constraint_layout"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:paddingLeft="16dp"
|
android:paddingLeft="16dp"
|
||||||
android:paddingTop="@dimen/dp_10"
|
android:paddingTop="@dimen/dp_10"
|
||||||
android:paddingRight="16dp"
|
android:paddingRight="16dp"
|
||||||
app:layout_scrollFlags="scroll|enterAlways">
|
app:layout_scrollFlags="scroll|enterAlways">
|
||||||
|
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
android:id="@+id/cl_h_t"
|
android:id="@+id/cl_h_t"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="@dimen/dp_8"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/rm_home"
|
||||||
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
android:scaleType="fitCenter"
|
||||||
|
android:src="@mipmap/home_rm"
|
||||||
|
app:layout_constraintEnd_toStartOf="@+id/my_home"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
android:layout_marginTop="@dimen/dp_8"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
>
|
app:layout_constraintWidth_percent="0.5" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/rm_home"
|
android:id="@+id/im_hr"
|
||||||
android:layout_width="0dp"
|
android:layout_width="@dimen/dp_18"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="@dimen/dp_18"
|
||||||
android:src="@mipmap/home_rm"
|
android:layout_marginStart="@dimen/dp_18"
|
||||||
android:scaleType="fitCenter"
|
android:layout_marginTop="@dimen/dp_20"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
android:scaleType="fitCenter"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
android:src="@mipmap/f_h"
|
||||||
app:layout_constraintEnd_toStartOf="@+id/my_home"
|
app:layout_constraintStart_toStartOf="@+id/rm_home"
|
||||||
app:layout_constraintWidth_percent="0.5"/>
|
app:layout_constraintTop_toTopOf="@+id/rm_home" />
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:id="@+id/im_hr"
|
|
||||||
android:layout_width="@dimen/dp_18"
|
|
||||||
android:layout_height="@dimen/dp_18"
|
|
||||||
app:layout_constraintTop_toTopOf="@+id/rm_home"
|
|
||||||
app:layout_constraintStart_toStartOf="@+id/rm_home"
|
|
||||||
android:src="@mipmap/f_h"
|
|
||||||
android:scaleType="fitCenter"
|
|
||||||
android:layout_marginStart="@dimen/dp_18"
|
|
||||||
android:layout_marginTop="@dimen/dp_20"/>
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/tv_home_hr"
|
android:id="@+id/tv_home_hr"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
app:layout_constraintStart_toEndOf="@+id/im_hr"
|
android:fontFamily="@font/youshebiaotihei"
|
||||||
app:layout_constraintTop_toTopOf="@+id/im_hr"
|
android:text="热门房间"
|
||||||
android:text="热门房间"
|
android:textColor="#fff1ecff"
|
||||||
android:textColor="#fff1ecff"
|
android:textSize="@dimen/sp_17"
|
||||||
android:fontFamily="@font/youshebiaotihei"
|
app:layout_constraintStart_toEndOf="@+id/im_hr"
|
||||||
android:textSize="@dimen/sp_17"/>
|
app:layout_constraintTop_toTopOf="@+id/im_hr" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/im_x"
|
android:id="@+id/im_x"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
app:layout_constraintTop_toTopOf="@+id/tv_home_hr"
|
android:layout_marginStart="@dimen/dp_16"
|
||||||
app:layout_constraintStart_toEndOf="@+id/tv_home_hr"
|
android:src="@mipmap/home_xx"
|
||||||
app:layout_constraintBottom_toBottomOf="@+id/tv_home_hr"
|
app:layout_constraintBottom_toBottomOf="@+id/tv_home_hr"
|
||||||
android:src="@mipmap/home_xx"
|
app:layout_constraintStart_toEndOf="@+id/tv_home_hr"
|
||||||
android:layout_marginStart="@dimen/dp_16"/>
|
app:layout_constraintTop_toTopOf="@+id/tv_home_hr" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<com.zhpan.bannerview.BannerViewPager
|
<com.zhpan.bannerview.BannerViewPager
|
||||||
android:id="@+id/banner_view_pager"
|
android:id="@+id/banner_view_pager"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
app:bvp_indicator_visibility="gone"
|
app:bvp_indicator_visibility="gone"
|
||||||
app:layout_constraintEnd_toEndOf="@+id/im_x"
|
app:layout_constraintEnd_toEndOf="@+id/im_x"
|
||||||
app:layout_constraintStart_toStartOf="@+id/im_hr"
|
app:layout_constraintStart_toStartOf="@+id/im_hr"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/tv_home_hr"
|
app:layout_constraintTop_toBottomOf="@+id/tv_home_hr" />
|
||||||
/>
|
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/my_home"
|
android:id="@+id/my_home"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:src="@mipmap/my_home"
|
android:layout_marginStart="@dimen/dp_14"
|
||||||
android:scaleType="fitCenter"
|
android:scaleType="fitCenter"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
android:src="@mipmap/my_home"
|
||||||
app:layout_constraintStart_toEndOf="@+id/rm_home"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintHorizontal_bias="0.0"
|
||||||
app:layout_constraintHorizontal_chainStyle="packed"
|
app:layout_constraintHorizontal_chainStyle="packed"
|
||||||
app:layout_constraintHorizontal_bias="0.0"
|
app:layout_constraintStart_toEndOf="@+id/rm_home"
|
||||||
android:layout_marginStart="@dimen/dp_14"/>
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/tv_my_home"
|
android:id="@+id/tv_my_home"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
app:layout_constraintStart_toStartOf="@+id/my_home"
|
android:layout_marginStart="@dimen/dp_11"
|
||||||
app:layout_constraintTop_toTopOf="@+id/my_home"
|
android:layout_marginTop="@dimen/dp_5"
|
||||||
android:text="我的房间"
|
android:fontFamily="@font/youshebiaotihei"
|
||||||
android:layout_marginStart="@dimen/dp_11"
|
android:text="我的房间"
|
||||||
android:layout_marginTop="@dimen/dp_5"
|
android:textColor="#fff1ecff"
|
||||||
android:textColor="#fff1ecff"
|
android:textSize="@dimen/sp_17"
|
||||||
android:fontFamily="@font/youshebiaotihei"
|
app:layout_constraintStart_toStartOf="@+id/my_home"
|
||||||
android:textSize="@dimen/sp_17"/>
|
app:layout_constraintTop_toTopOf="@+id/my_home" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
app:layout_constraintStart_toStartOf="@+id/tv_my_home"
|
android:layout_marginTop="@dimen/dp_1"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/tv_my_home"
|
android:text="进行一场灵魂深聊"
|
||||||
android:text="进行一场灵魂深聊"
|
android:textColor="#80ffffff"
|
||||||
android:layout_marginTop="@dimen/dp_1"
|
android:textSize="@dimen/sp_11"
|
||||||
android:textColor="#80ffffff"
|
app:layout_constraintStart_toStartOf="@+id/tv_my_home"
|
||||||
android:textSize="@dimen/sp_11"/>
|
app:layout_constraintTop_toBottomOf="@+id/tv_my_home" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/home_phb"
|
android:id="@+id/home_phb"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:src="@mipmap/home_phb"
|
android:layout_marginTop="@dimen/dp_8"
|
||||||
android:scaleType="fitCenter"
|
android:scaleType="fitCenter"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/my_home"
|
android:src="@mipmap/home_phb"
|
||||||
app:layout_constraintStart_toStartOf="@+id/my_home"
|
app:layout_constraintEnd_toEndOf="@+id/my_home"
|
||||||
app:layout_constraintEnd_toEndOf="@+id/my_home"
|
app:layout_constraintHorizontal_bias="0.0"
|
||||||
app:layout_constraintHorizontal_chainStyle="packed"
|
app:layout_constraintHorizontal_chainStyle="packed"
|
||||||
app:layout_constraintHorizontal_bias="0.0"
|
app:layout_constraintStart_toStartOf="@+id/my_home"
|
||||||
android:layout_marginTop="@dimen/dp_8"/>
|
app:layout_constraintTop_toBottomOf="@+id/my_home" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/tv_home_phb"
|
android:id="@+id/tv_home_phb"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
app:layout_constraintStart_toStartOf="@+id/home_phb"
|
android:layout_marginStart="@dimen/dp_11"
|
||||||
app:layout_constraintTop_toTopOf="@+id/home_phb"
|
android:layout_marginTop="@dimen/dp_5"
|
||||||
android:text="排行榜"
|
android:fontFamily="@font/youshebiaotihei"
|
||||||
android:layout_marginStart="@dimen/dp_11"
|
android:text="排行榜"
|
||||||
android:layout_marginTop="@dimen/dp_5"
|
android:textColor="#fff1ecff"
|
||||||
android:textColor="#fff1ecff"
|
android:textSize="@dimen/sp_17"
|
||||||
android:fontFamily="@font/youshebiaotihei"
|
app:layout_constraintStart_toStartOf="@+id/home_phb"
|
||||||
android:textSize="@dimen/sp_17"/>
|
app:layout_constraintTop_toTopOf="@+id/home_phb" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
app:layout_constraintStart_toStartOf="@+id/tv_home_phb"
|
android:layout_marginTop="@dimen/dp_1"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/tv_home_phb"
|
android:text="荣耀之巅 彰显实力"
|
||||||
android:text="荣耀之巅 彰显实力"
|
android:textColor="#80ffffff"
|
||||||
android:layout_marginTop="@dimen/dp_1"
|
android:textSize="@dimen/sp_11"
|
||||||
android:textColor="#80ffffff"
|
app:layout_constraintStart_toStartOf="@+id/tv_home_phb"
|
||||||
android:textSize="@dimen/sp_11"/>
|
app:layout_constraintTop_toBottomOf="@+id/tv_home_phb" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/home_gg"
|
android:id="@+id/home_gg"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:src="@mipmap/home_gg"
|
android:layout_marginTop="@dimen/dp_8"
|
||||||
android:scaleType="fitCenter"
|
android:scaleType="fitCenter"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/home_phb"
|
android:src="@mipmap/home_gg"
|
||||||
app:layout_constraintStart_toStartOf="@+id/home_phb"
|
app:layout_constraintEnd_toEndOf="@+id/home_phb"
|
||||||
app:layout_constraintEnd_toEndOf="@+id/home_phb"
|
app:layout_constraintHorizontal_bias="0.0"
|
||||||
app:layout_constraintHorizontal_chainStyle="packed"
|
app:layout_constraintHorizontal_chainStyle="packed"
|
||||||
app:layout_constraintHorizontal_bias="0.0"
|
app:layout_constraintStart_toStartOf="@+id/home_phb"
|
||||||
android:layout_marginTop="@dimen/dp_8"/>
|
app:layout_constraintTop_toBottomOf="@+id/home_phb" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/tv_home_gg"
|
android:id="@+id/tv_home_gg"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
app:layout_constraintStart_toStartOf="@+id/home_gg"
|
android:layout_marginStart="@dimen/dp_11"
|
||||||
app:layout_constraintTop_toTopOf="@+id/home_gg"
|
android:layout_marginTop="@dimen/dp_5"
|
||||||
android:text="官方公告"
|
android:fontFamily="@font/youshebiaotihei"
|
||||||
android:layout_marginStart="@dimen/dp_11"
|
android:text="官方公告"
|
||||||
android:layout_marginTop="@dimen/dp_5"
|
android:textColor="#fff1ecff"
|
||||||
android:textColor="#fff1ecff"
|
android:textSize="@dimen/sp_17"
|
||||||
android:fontFamily="@font/youshebiaotihei"
|
app:layout_constraintStart_toStartOf="@+id/home_gg"
|
||||||
android:textSize="@dimen/sp_17"/>
|
app:layout_constraintTop_toTopOf="@+id/home_gg" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
app:layout_constraintStart_toStartOf="@+id/tv_home_gg"
|
android:layout_marginTop="@dimen/dp_1"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/tv_home_gg"
|
android:text="政策变动一键留痕"
|
||||||
android:text="政策变动一键留痕"
|
android:textColor="#80ffffff"
|
||||||
android:layout_marginTop="@dimen/dp_1"
|
android:textSize="@dimen/sp_11"
|
||||||
android:textColor="#80ffffff"
|
app:layout_constraintStart_toStartOf="@+id/tv_home_gg"
|
||||||
android:textSize="@dimen/sp_11"/>
|
app:layout_constraintTop_toBottomOf="@+id/tv_home_gg" />
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:id="@+id/rl"
|
android:id="@+id/rl"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/dp_31"
|
android:layout_height="@dimen/dp_31"
|
||||||
android:layout_marginTop="@dimen/dp_12"
|
android:layout_marginTop="@dimen/dp_12"
|
||||||
android:background="@mipmap/xiaox_b"
|
android:background="@mipmap/xiaox_b"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/cl_h_t">
|
app:layout_constraintTop_toBottomOf="@+id/cl_h_t">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/tv_hot"
|
android:id="@+id/tv_hot"
|
||||||
android:layout_width="@dimen/dp_24"
|
android:layout_width="@dimen/dp_24"
|
||||||
android:layout_height="@dimen/dp_24"
|
android:layout_height="@dimen/dp_24"
|
||||||
android:layout_alignParentStart="true"
|
android:layout_alignParentStart="true"
|
||||||
android:layout_centerInParent="true"
|
android:layout_centerInParent="true"
|
||||||
android:layout_marginStart="@dimen/dp_15"
|
android:layout_marginStart="@dimen/dp_15"
|
||||||
android:src="@mipmap/pp"
|
android:src="@mipmap/pp"
|
||||||
android:visibility="invisible"/>
|
android:visibility="invisible" />
|
||||||
|
|
||||||
|
|
||||||
<com.sunfusheng.marqueeview.MarqueeView
|
<com.sunfusheng.marqueeview.MarqueeView
|
||||||
android:id="@+id/marqueeView"
|
android:id="@+id/marqueeView"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_marginStart="@dimen/dp_8"
|
android:layout_marginStart="@dimen/dp_8"
|
||||||
android:layout_toStartOf="@+id/tv_wg"
|
android:layout_toStartOf="@+id/tv_wg"
|
||||||
android:layout_toEndOf="@+id/tv_hot"
|
android:layout_toEndOf="@+id/tv_hot"
|
||||||
app:mvAnimDuration="1000"
|
app:mvAnimDuration="1000"
|
||||||
app:mvInterval="3000"
|
app:mvInterval="3000"
|
||||||
app:mvSingleLine="true"
|
app:mvSingleLine="true"
|
||||||
app:mvTextColor="#B49FFF"
|
app:mvTextColor="#B49FFF"
|
||||||
app:mvTextSize="@dimen/sp_14"/>
|
app:mvTextSize="@dimen/sp_14" />
|
||||||
|
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/tv_wg"
|
android:id="@+id/tv_wg"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_alignParentEnd="true"
|
android:layout_alignParentEnd="true"
|
||||||
android:layout_centerInParent="true"
|
android:layout_centerInParent="true"
|
||||||
android:layout_marginEnd="@dimen/dp_25"
|
android:layout_marginStart="@dimen/dp_8"
|
||||||
android:layout_marginStart="@dimen/dp_8"
|
android:layout_marginEnd="@dimen/dp_25"
|
||||||
android:scaleType="fitCenter"
|
android:scaleType="fitCenter"
|
||||||
android:src="@mipmap/wg"/>
|
android:src="@mipmap/wg" />
|
||||||
|
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
<com.stx.xhb.xbanner.XBanner
|
<com.stx.xhb.xbanner.XBanner
|
||||||
android:id="@+id/banner"
|
android:id="@+id/banner"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
app:AutoPlayTime="3000"
|
android:layout_marginTop="@dimen/dp_12"
|
||||||
app:isAutoPlay="true"
|
app:AutoPlayTime="3000"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:isAutoPlay="true"
|
||||||
app:layout_constraintDimensionRatio="340:96"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
android:layout_marginTop="@dimen/dp_12"
|
app:layout_constraintDimensionRatio="340:96"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/rl"
|
app:layout_constraintTop_toBottomOf="@+id/rl"
|
||||||
app:pointsVisibility="false"/>
|
app:pointsVisibility="false" />
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
<com.google.android.material.tabs.TabLayout
|
<com.google.android.material.tabs.TabLayout
|
||||||
android:id="@+id/sliding_tab_layout"
|
android:id="@+id/sliding_tab_layout"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="@dimen/dp_30"
|
android:layout_height="@dimen/dp_34"
|
||||||
android:layout_marginLeft="@dimen/dp_16"
|
android:layout_marginLeft="@dimen/dp_16"
|
||||||
android:layout_marginTop="@dimen/dp_12"
|
android:layout_marginTop="@dimen/dp_12"
|
||||||
android:layout_marginRight="@dimen/dp_16"
|
android:layout_marginRight="@dimen/dp_16"
|
||||||
app:tabIndicatorHeight="0dp"
|
app:tabIndicator="@drawable/tab_indicator_bg"
|
||||||
app:tabSelectedTextColor="@color/white"
|
app:tabIndicatorFullWidth="true"
|
||||||
app:tabTextColor="#F1ECFF"
|
app:tabIndicatorHeight="@dimen/dp_15"
|
||||||
app:tabTextAppearance="@style/CustomTabTextAppearance"
|
app:tabIndicatorGravity="center"
|
||||||
app:tabIndicatorFullWidth="true"
|
app:tabMode="scrollable"
|
||||||
app:tabMode="scrollable"/>
|
app:tabSelectedTextColor="@color/white"
|
||||||
|
app:tabIndicatorColor="@android:color/transparent"
|
||||||
|
app:tabTextAppearance="@style/CustomTabTextAppearance"
|
||||||
|
app:tabTextColor="#F1ECFF" />
|
||||||
<!-- app:tl_indicator_corner_radius="@dimen/dp_3"-->
|
<!-- app:tl_indicator_corner_radius="@dimen/dp_3"-->
|
||||||
<!-- app:tl_indicator_drawable="@mipmap/tab_dy"-->
|
<!-- app:tl_indicator_drawable="@mipmap/tab_dy"-->
|
||||||
<!-- app:tl_indicator_height="@dimen/dp_6"-->
|
<!-- app:tl_indicator_height="@dimen/dp_6"-->
|
||||||
@@ -293,15 +292,15 @@
|
|||||||
|
|
||||||
|
|
||||||
<androidx.viewpager2.widget.ViewPager2
|
<androidx.viewpager2.widget.ViewPager2
|
||||||
android:id="@+id/view_pager"
|
android:id="@+id/view_pager"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_marginStart="@dimen/dp_14"
|
android:layout_marginStart="@dimen/dp_14"
|
||||||
app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior"/>
|
app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior" />
|
||||||
|
|
||||||
<View
|
<View
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/dp_60"
|
android:layout_height="@dimen/dp_60"
|
||||||
android:background="@color/color_transparent"/>
|
android:background="@color/color_transparent" />
|
||||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||||
</layout>
|
</layout>
|
||||||
Reference in New Issue
Block a user