1.动态只留一个发现

2.去掉真爱榜
3.隐藏第三方登录
4.一键登录
5.登陆
This commit is contained in:
2025-09-24 22:10:06 +08:00
parent a79e5268b5
commit aa26d9f9f5
51 changed files with 73 additions and 54 deletions

View File

@@ -15,12 +15,13 @@ import androidx.fragment.app.FragmentPagerAdapter;
*/
public class SectionsPagerAdapter extends FragmentPagerAdapter {
// @StringRes
// private static final int[] TAB_TITLES = new int[]{com.xscm.moduleutil.R.string.room_rank, com.xscm.moduleutil.R.string.wealth_rank,
// com.xscm.moduleutil.R.string.charm_rank, com.xscm.moduleutil.R.string.true_love_rank};
//// com.xscm.moduleutil.R.string.guild_rank, @StringRes
private static final int[] TAB_TITLES = new int[]{com.xscm.moduleutil.R.string.room_rank, com.xscm.moduleutil.R.string.wealth_rank,
com.xscm.moduleutil.R.string.charm_rank};
@StringRes
private static final int[] TAB_TITLES = new int[]{
com.xscm.moduleutil.R.string.room_rank,
com.xscm.moduleutil.R.string.wealth_rank,
com.xscm.moduleutil.R.string.charm_rank,
// com.xscm.moduleutil.R.string.true_love_rank
};
// com.xscm.moduleutil.R.string.guild_rank,
private final Context mContext;
@@ -45,6 +46,6 @@ public class SectionsPagerAdapter extends FragmentPagerAdapter {
@Override
public int getCount() {
// Show 2 total pages.
return 4;
return TAB_TITLES.length;
}
}

View File

@@ -8,6 +8,7 @@ import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.core.content.ContextCompat;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentActivity;
import androidx.viewpager2.adapter.FragmentStateAdapter;
@@ -297,11 +298,11 @@ public class VoiceCategoryFragment extends BaseMvpFragment<VoiceCategoryPresente
// 设置初始状态
if (position == 0) {
textView.setTextSize(TypedValue.COMPLEX_UNIT_SP, 16);
textView.setTextColor(getResources().getColor(android.R.color.white));
textView.setTextColor(Color.parseColor("#333333"));
customView.setBackgroundResource(com.xscm.moduleutil.R.drawable.tab_indicator);
} else {
textView.setTextSize(TypedValue.COMPLEX_UNIT_SP, 12);
textView.setTextColor(Color.parseColor("#F1ECFF"));
textView.setTextColor(Color.parseColor("#666666"));
customView.setBackgroundResource(com.xscm.moduleutil.R.drawable.tab_unselected_background);
}
@@ -321,7 +322,7 @@ public class VoiceCategoryFragment extends BaseMvpFragment<VoiceCategoryPresente
TextView textView = customView.findViewById(R.id.tab_text);
if (textView != null) {
textView.setTextSize(TypedValue.COMPLEX_UNIT_SP, 16);
textView.setTextColor(getResources().getColor(android.R.color.white));
textView.setTextColor(Color.parseColor("#333333"));
}
customView.setBackgroundResource(com.xscm.moduleutil.R.drawable.tab_indicator);
}
@@ -340,7 +341,7 @@ public class VoiceCategoryFragment extends BaseMvpFragment<VoiceCategoryPresente
TextView textView = customView.findViewById(R.id.tab_text);
if (textView != null) {
textView.setTextSize(TypedValue.COMPLEX_UNIT_SP, 12);
textView.setTextColor(Color.parseColor("#F1ECFF"));
textView.setTextColor(Color.parseColor("#333333"));
}
customView.setBackgroundResource(com.xscm.moduleutil.R.drawable.tab_unselected_background);
}

View File

@@ -11,7 +11,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="@mipmap/home_bj">
android:background="@mipmap/log_bj">
<RelativeLayout
android:layout_width="match_parent"

View File

@@ -104,8 +104,8 @@
android:layout_marginTop="@dimen/dp_12"
android:layout_marginRight="@dimen/dp_16"
app:tabIndicatorHeight="0dp"
app:tabSelectedTextColor="@color/white"
app:tabTextColor="#F1ECFF"
app:tabSelectedTextColor="#666666"
app:tabTextColor="#333333"
app:tabTextAppearance="@style/CustomTabTextAppearance"
app:tabIndicatorFullWidth="true"
app:tabMode="scrollable"/>