11111
This commit is contained in:
@@ -18,6 +18,8 @@ import android.view.Display;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.FrameLayout;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.RelativeLayout;
|
||||
import android.widget.TextView;
|
||||
|
||||
@@ -47,6 +49,7 @@ import com.yunbao.common.bean.LiveSvgGiftBean;
|
||||
import com.yunbao.common.bean.UpdataListBean;
|
||||
import com.yunbao.common.custom.TabButtonGroup;
|
||||
import com.yunbao.common.event.MessageIMEvent;
|
||||
import com.yunbao.common.event.NoviceInstructorEvent;
|
||||
import com.yunbao.common.event.RongIMConnectionStatusEvent;
|
||||
import com.yunbao.common.event.UpdateTablePointMe;
|
||||
import com.yunbao.common.http.CommonHttpConsts;
|
||||
@@ -147,6 +150,7 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
|
||||
public static boolean isTabClose = false;
|
||||
private boolean isFirstOpen = true;
|
||||
private int messageNumber = 0, numberMe = 1;
|
||||
private ImageView waitingTip;
|
||||
|
||||
@Override
|
||||
protected int getLayoutId() {
|
||||
@@ -258,6 +262,7 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
|
||||
mRootView = (ViewGroup) findViewById(R.id.rootView);
|
||||
mTabButtonGroup = (TabButtonGroup) findViewById(R.id.tab_group);
|
||||
mViewPager = (ViewPager) findViewById(R.id.viewPager);
|
||||
waitingTip = findViewById(R.id.waiting_tip);
|
||||
mViewPager.setOffscreenPageLimit(4);
|
||||
mViewList = new ArrayList<>();
|
||||
for (int i = 0; i < 4; i++) {
|
||||
@@ -1004,5 +1009,21 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
|
||||
ConversationIMListManager.get(mContext).jumpConversation(mContext, model.getTargetId());
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户被踢下线
|
||||
*
|
||||
* @param event
|
||||
*/
|
||||
@Subscribe(threadMode = ThreadMode.MAIN)
|
||||
public void onNoviceInstructorEvent(NoviceInstructorEvent event) {
|
||||
//是否展示指引弹窗
|
||||
boolean isShowHomeDialoh = event.isShowHomeDialoh();
|
||||
//是否展示指引icon
|
||||
boolean isShowHomeIcon = event.isShowHomeIcon();
|
||||
|
||||
if (isShowHomeIcon) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -17,7 +17,6 @@ import com.opensource.svgaplayer.SVGAParser;
|
||||
import com.opensource.svgaplayer.SVGAVideoEntity;
|
||||
import com.yunbao.common.bean.WeekListBean;
|
||||
import com.yunbao.common.glide.ImgLoader;
|
||||
import com.yunbao.common.utils.ToastUtil;
|
||||
import com.yunbao.live.bean.LiveBean;
|
||||
import com.yunbao.main.R;
|
||||
|
||||
@@ -55,7 +54,7 @@ public class MainHomeLiveWeekItemViewHolder<T> extends RecyclerView.ViewHolder {
|
||||
|
||||
}
|
||||
|
||||
public void upSvga(){
|
||||
public void upSvga() {
|
||||
new SVGAParser(itemView.getContext()).decodeFromAssets("week_bg.svga", new SVGAParser.ParseCompletion() {
|
||||
@Override
|
||||
public void onComplete(SVGAVideoEntity videoItem) {
|
||||
@@ -67,7 +66,7 @@ public class MainHomeLiveWeekItemViewHolder<T> extends RecyclerView.ViewHolder {
|
||||
|
||||
@Override
|
||||
public void onError() {
|
||||
Log.e("errqs","errl");
|
||||
Log.e("errqs", "errl");
|
||||
}
|
||||
});
|
||||
|
||||
@@ -116,6 +115,8 @@ public class MainHomeLiveWeekItemViewHolder<T> extends RecyclerView.ViewHolder {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
if (listener != null) {
|
||||
WeekListBean model = mWeekList.get(viewflipperBanner.getDisplayedChild());
|
||||
bean.setUid(model.getAnchor_id());
|
||||
listener.onItemClick(bean, position);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -144,4 +144,33 @@
|
||||
android:src="@mipmap/icon_main_start" />
|
||||
</RelativeLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginBottom="50dp">
|
||||
|
||||
<View
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="1dp"
|
||||
android:layout_weight="2" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/waiting_tip"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:clickable="true"
|
||||
android:layout_marginStart="57dp"
|
||||
android:src="@mipmap/waiting_tip"
|
||||
android:focusable="true" />
|
||||
|
||||
<View
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="1dp"
|
||||
android:layout_weight="1" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
BIN
main/src/main/res/mipmap-xxhdpi/waiting_tip.png
Normal file
BIN
main/src/main/res/mipmap-xxhdpi/waiting_tip.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 37 KiB |
Reference in New Issue
Block a user