推荐改为热门
This commit is contained in:
BIN
app/src/main/assets/svga/living_white.svga
Normal file
BIN
app/src/main/assets/svga/living_white.svga
Normal file
Binary file not shown.
@@ -122,6 +122,7 @@ import com.nnbc123.core.utils.StringUtils;
|
|||||||
import com.nnbc123.library.base.factory.CreatePresenter;
|
import com.nnbc123.library.base.factory.CreatePresenter;
|
||||||
import com.nnbc123.library.threadmgr.ThreadPoolManager;
|
import com.nnbc123.library.threadmgr.ThreadPoolManager;
|
||||||
import com.nnbc123.library.utils.JavaUtil;
|
import com.nnbc123.library.utils.JavaUtil;
|
||||||
|
import com.opensource.svgaplayer.SVGAImageView;
|
||||||
import com.orhanobut.logger.Logger;
|
import com.orhanobut.logger.Logger;
|
||||||
import com.tencent.bugly.crashreport.CrashReport;
|
import com.tencent.bugly.crashreport.CrashReport;
|
||||||
import com.tongdaxing.erban.upgrade.AppUpgradeHelper;
|
import com.tongdaxing.erban.upgrade.AppUpgradeHelper;
|
||||||
@@ -156,7 +157,7 @@ public class MainActivity extends BaseMvpActivity<IMainView, MainPresenter>
|
|||||||
private TextView tvId;//最小化窗口ID
|
private TextView tvId;//最小化窗口ID
|
||||||
private ImageView avatarImage;
|
private ImageView avatarImage;
|
||||||
private LinearLayout llDragInfo;
|
private LinearLayout llDragInfo;
|
||||||
private LivingIconView userLivingView;
|
private SVGAImageView userLivingView;
|
||||||
private View viewClose;
|
private View viewClose;
|
||||||
private MainTabLayout mMainTabLayout;
|
private MainTabLayout mMainTabLayout;
|
||||||
private AnchorCardView anchorCardView;
|
private AnchorCardView anchorCardView;
|
||||||
@@ -292,6 +293,7 @@ public class MainActivity extends BaseMvpActivity<IMainView, MainPresenter>
|
|||||||
|
|
||||||
private void closeOpenRoomAnimation() {
|
private void closeOpenRoomAnimation() {
|
||||||
avatarLayout.setVisibility(View.GONE);
|
avatarLayout.setVisibility(View.GONE);
|
||||||
|
userLivingView.stopAnimation();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -299,7 +301,7 @@ public class MainActivity extends BaseMvpActivity<IMainView, MainPresenter>
|
|||||||
super.onResume();
|
super.onResume();
|
||||||
mResumed = true;
|
mResumed = true;
|
||||||
if (avatarLayout.getVisibility() == View.VISIBLE) {
|
if (avatarLayout.getVisibility() == View.VISIBLE) {
|
||||||
userLivingView.start();
|
userLivingView.startAnimation();
|
||||||
}
|
}
|
||||||
//这里是为了处理APP后台运行的情况下点击分享房间等LinkedMe链接的情况
|
//这里是为了处理APP后台运行的情况下点击分享房间等LinkedMe链接的情况
|
||||||
UserInfo userInfo = UserModel.get().getCacheLoginUserInfo();
|
UserInfo userInfo = UserModel.get().getCacheLoginUserInfo();
|
||||||
@@ -340,7 +342,7 @@ public class MainActivity extends BaseMvpActivity<IMainView, MainPresenter>
|
|||||||
super.onPause();
|
super.onPause();
|
||||||
mResumed = false;
|
mResumed = false;
|
||||||
if (avatarLayout.getVisibility() == View.VISIBLE) {
|
if (avatarLayout.getVisibility() == View.VISIBLE) {
|
||||||
userLivingView.stop();
|
userLivingView.stopAnimation();
|
||||||
}
|
}
|
||||||
mMainTabLayout.removeCallbacks(touchRunnable);
|
mMainTabLayout.removeCallbacks(touchRunnable);
|
||||||
}
|
}
|
||||||
@@ -369,7 +371,6 @@ public class MainActivity extends BaseMvpActivity<IMainView, MainPresenter>
|
|||||||
userLivingView = findViewById(R.id.liv_user);
|
userLivingView = findViewById(R.id.liv_user);
|
||||||
viewClose = findViewById(R.id.view_close);
|
viewClose = findViewById(R.id.view_close);
|
||||||
llDragInfo = findViewById(R.id.ll_drag_info);
|
llDragInfo = findViewById(R.id.ll_drag_info);
|
||||||
userLivingView.setColor(Color.WHITE);
|
|
||||||
mMainTabLayout.setOnTabClickListener(this);
|
mMainTabLayout.setOnTabClickListener(this);
|
||||||
anchorCardView = findViewById(R.id.vs_anchor_card);
|
anchorCardView = findViewById(R.id.vs_anchor_card);
|
||||||
}
|
}
|
||||||
@@ -586,7 +587,7 @@ public class MainActivity extends BaseMvpActivity<IMainView, MainPresenter>
|
|||||||
avatarLayout.setVisibility(View.VISIBLE);
|
avatarLayout.setVisibility(View.VISIBLE);
|
||||||
tvName.setText(nickName);
|
tvName.setText(nickName);
|
||||||
tvId.setText("ID:" + uid);
|
tvId.setText("ID:" + uid);
|
||||||
userLivingView.start();
|
userLivingView.startAnimation();
|
||||||
ImageLoadUtils.loadAvatar(MainActivity.this, avatar, avatarImage);
|
ImageLoadUtils.loadAvatar(MainActivity.this, avatar, avatarImage);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -82,7 +82,7 @@ class PartyFragment : BaseFragment(), MainMagicIndicatorAdapter.OnItemSelectList
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun onGetHomeTagSuccess(tagInfoList: MutableList<HomeTagInfo>) {
|
private fun onGetHomeTagSuccess(tagInfoList: MutableList<HomeTagInfo>) {
|
||||||
tagInfoList.add(0,HomeTagInfo("推荐"))
|
tagInfoList.add(0,HomeTagInfo("热门"))
|
||||||
var changed = false
|
var changed = false
|
||||||
val oldTabInfoList: List<CharSequence> = ArrayList<CharSequence>(mTabInfoList)
|
val oldTabInfoList: List<CharSequence> = ArrayList<CharSequence>(mTabInfoList)
|
||||||
for (tagInfo in tagInfoList) {
|
for (tagInfo in tagInfoList) {
|
||||||
@@ -108,7 +108,7 @@ class PartyFragment : BaseFragment(), MainMagicIndicatorAdapter.OnItemSelectList
|
|||||||
mTabInfoList.add(title)
|
mTabInfoList.add(title)
|
||||||
val tabId: Int = tagInfoList[i].id
|
val tabId: Int = tagInfoList[i].id
|
||||||
fragment = when (title) {
|
fragment = when (title) {
|
||||||
"推荐" -> {
|
"热门" -> {
|
||||||
PartyRecommendFragment.newInstance()
|
PartyRecommendFragment.newInstance()
|
||||||
}
|
}
|
||||||
"喜欢" -> {
|
"喜欢" -> {
|
||||||
|
@@ -67,16 +67,17 @@
|
|||||||
<com.makeramen.roundedimageview.RoundedImageView
|
<com.makeramen.roundedimageview.RoundedImageView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:alpha="0.1"
|
android:alpha="0.5"
|
||||||
android:src="@color/black"
|
android:src="@color/black"
|
||||||
app:riv_corner_radius="7dp" />
|
app:riv_corner_radius="7dp" />
|
||||||
|
|
||||||
<com.nnbc123.app.ui.widget.LivingIconView
|
<com.opensource.svgaplayer.SVGAImageView
|
||||||
android:id="@+id/liv_user"
|
android:id="@+id/liv_user"
|
||||||
android:layout_width="10dp"
|
android:layout_width="12dp"
|
||||||
android:layout_height="10dp"
|
android:layout_height="15dp"
|
||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
android:background="@color/transparent" />
|
app:source="svga/living_white.svga"
|
||||||
|
/>
|
||||||
|
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
|
||||||
|
@@ -276,7 +276,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="15dp"
|
android:layout_marginStart="15dp"
|
||||||
android:layout_marginTop="15dp"
|
android:layout_marginTop="15dp"
|
||||||
android:text="为你推荐"
|
android:text="热门房间"
|
||||||
android:textColor="@color/color_161958"
|
android:textColor="@color/color_161958"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
@@ -88,7 +88,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="12dp"
|
android:layout_marginStart="12dp"
|
||||||
android:layout_marginTop="252dp"
|
android:layout_marginTop="252dp"
|
||||||
android:text="为你推荐"
|
android:text="热门房间"
|
||||||
android:textColor="@color/white"
|
android:textColor="@color/white"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
@@ -18,7 +18,7 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="20dp"
|
android:layout_marginTop="20dp"
|
||||||
android:text="暂无合适房间,为你推荐其他房间~"
|
android:text="暂无合适房间,看看其他热门房间~"
|
||||||
android:textColor="@color/color_333333"
|
android:textColor="@color/color_333333"
|
||||||
android:textSize="16sp"
|
android:textSize="16sp"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
@@ -881,7 +881,7 @@
|
|||||||
<string name="ranking">榜单</string>
|
<string name="ranking">榜单</string>
|
||||||
<string name="str_send_code_success">验证码已发送至\n+86</string>
|
<string name="str_send_code_success">验证码已发送至\n+86</string>
|
||||||
<string name="str_nick_title">昵称:</string>
|
<string name="str_nick_title">昵称:</string>
|
||||||
<string name="recommend_topic">推荐话题</string>
|
<string name="recommend_topic">热门话题</string>
|
||||||
<string name="join_topic">参与话题</string>
|
<string name="join_topic">参与话题</string>
|
||||||
<string name="collect">收藏</string>
|
<string name="collect">收藏</string>
|
||||||
<string name="diamond">钻石</string>
|
<string name="diamond">钻石</string>
|
||||||
|
@@ -191,7 +191,7 @@ public class SquareDynamicFragment extends BaseFragment {
|
|||||||
if (list.isEmpty()) {
|
if (list.isEmpty()) {
|
||||||
String emptyTips = "暂无动态~";
|
String emptyTips = "暂无动态~";
|
||||||
if (squareType == SquareFragment.TAB_TYPE_ATTENT) {
|
if (squareType == SquareFragment.TAB_TYPE_ATTENT) {
|
||||||
emptyTips = "暂无动态,去推荐看看吧~";
|
emptyTips = "暂无动态,去热门看看吧~";
|
||||||
}
|
}
|
||||||
adapter.setEmptyView(EmptyViewHelper.createEmptyView(getContext(), emptyTips));
|
adapter.setEmptyView(EmptyViewHelper.createEmptyView(getContext(), emptyTips));
|
||||||
}
|
}
|
||||||
|
@@ -26,7 +26,7 @@
|
|||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
android:background="@drawable/shape_dynamic_bottom"
|
android:background="@drawable/shape_dynamic_bottom"
|
||||||
app:layout_constraintBottom_toBottomOf="@id/iv_cover"
|
app:layout_constraintBottom_toBottomOf="@id/iv_cover"
|
||||||
app:layout_constraintDimensionRatio="165:60"
|
app:layout_constraintDimensionRatio="165:79"
|
||||||
app:layout_constraintEnd_toEndOf="@id/iv_cover"
|
app:layout_constraintEnd_toEndOf="@id/iv_cover"
|
||||||
app:layout_constraintStart_toStartOf="@id/iv_cover" />
|
app:layout_constraintStart_toStartOf="@id/iv_cover" />
|
||||||
|
|
||||||
@@ -35,28 +35,27 @@
|
|||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="10dp"
|
android:layout_marginStart="10dp"
|
||||||
android:layout_marginTop="3dp"
|
|
||||||
android:layout_marginEnd="17dp"
|
android:layout_marginEnd="17dp"
|
||||||
|
android:layout_marginBottom="2dp"
|
||||||
android:ellipsize="end"
|
android:ellipsize="end"
|
||||||
android:lines="1"
|
android:lines="1"
|
||||||
android:text="动态文案文案动态文..."
|
android:text="动态文案文案动态文..."
|
||||||
android:textColor="@color/white"
|
android:textColor="@color/white"
|
||||||
android:textSize="14sp"
|
android:textSize="14sp"
|
||||||
android:textStyle="bold"
|
app:layout_constraintBottom_toTopOf="@id/iv_avatar"
|
||||||
app:layout_constraintEnd_toEndOf="@id/iv_cover"
|
app:layout_constraintEnd_toEndOf="@id/iv_cover"
|
||||||
app:layout_constraintStart_toStartOf="@id/iv_cover"
|
app:layout_constraintStart_toStartOf="@id/iv_cover" />
|
||||||
app:layout_constraintTop_toTopOf="@id/view_bg_bottom" />
|
|
||||||
|
|
||||||
<com.nnbc123.app.common.widget.CircleImageView
|
<com.nnbc123.app.common.widget.CircleImageView
|
||||||
android:id="@+id/iv_avatar"
|
android:id="@+id/iv_avatar"
|
||||||
android:layout_width="26dp"
|
android:layout_width="26dp"
|
||||||
android:layout_height="26dp"
|
android:layout_height="26dp"
|
||||||
|
android:layout_marginBottom="10dp"
|
||||||
android:src="@drawable/default_cover"
|
android:src="@drawable/default_cover"
|
||||||
app:cborder_color="@color/white"
|
app:cborder_color="@color/white"
|
||||||
app:cborder_width="1px"
|
app:cborder_width="1px"
|
||||||
app:layout_constraintBottom_toBottomOf="@id/iv_cover"
|
app:layout_constraintBottom_toBottomOf="@id/iv_cover"
|
||||||
app:layout_constraintStart_toStartOf="@id/tv_content"
|
app:layout_constraintStart_toStartOf="@id/tv_content" />
|
||||||
app:layout_constraintTop_toBottomOf="@id/tv_content" />
|
|
||||||
|
|
||||||
<FrameLayout
|
<FrameLayout
|
||||||
android:id="@+id/fl_live"
|
android:id="@+id/fl_live"
|
||||||
|
@@ -12,7 +12,7 @@
|
|||||||
<string name="dy_empty_comment_tips">快来抢占沙发吧~</string>
|
<string name="dy_empty_comment_tips">快来抢占沙发吧~</string>
|
||||||
<string name="dy_open_other_number">展开%s条回复</string>
|
<string name="dy_open_other_number">展开%s条回复</string>
|
||||||
<string name="dy_comment_text">评论</string>
|
<string name="dy_comment_text">评论</string>
|
||||||
<string name="dys_tab_recommend">推荐</string>
|
<string name="dys_tab_recommend">热门</string>
|
||||||
<string name="dys_tab_attent">关注</string>
|
<string name="dys_tab_attent">关注</string>
|
||||||
<string name="dys_tab_new">最新</string>
|
<string name="dys_tab_new">最新</string>
|
||||||
<string name="home_tab_dynamic">动态</string>
|
<string name="home_tab_dynamic">动态</string>
|
||||||
|
Reference in New Issue
Block a user