登录界面修改完成
This commit is contained in:
parent
aca96cf800
commit
e2c4a0e2ae
@ -132,6 +132,7 @@
|
|||||||
android:name="com.shayu.phonelive.activity.LauncherActivity"
|
android:name="com.shayu.phonelive.activity.LauncherActivity"
|
||||||
android:exported="true"
|
android:exported="true"
|
||||||
android:screenOrientation="portrait"
|
android:screenOrientation="portrait"
|
||||||
|
android:theme="@style/AppLunTheme.Theme"
|
||||||
tools:ignore="LockedOrientationActivity">
|
tools:ignore="LockedOrientationActivity">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MAIN" />
|
<action android:name="android.intent.action.MAIN" />
|
||||||
|
@ -131,7 +131,7 @@ public class LauncherActivity extends AppCompatActivity implements View.OnClickL
|
|||||||
mBtnSkipVideo = findViewById(R.id.btn_skip_video);
|
mBtnSkipVideo = findViewById(R.id.btn_skip_video);
|
||||||
mBtnSkipImage.setOnClickListener(this);
|
mBtnSkipImage.setOnClickListener(this);
|
||||||
mBtnSkipVideo.setOnClickListener(this);
|
mBtnSkipVideo.setOnClickListener(this);
|
||||||
ImgLoader.display(mContext, R.mipmap.screen, mCover);
|
// ImgLoader.display(mContext, R.mipmap.screen, mCover);
|
||||||
mHandler = new Handler() {
|
mHandler = new Handler() {
|
||||||
@Override
|
@Override
|
||||||
public void handleMessage(Message msg) {
|
public void handleMessage(Message msg) {
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
android:id="@+id/container"
|
android:id="@+id/container"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:background="#000" />
|
/>
|
||||||
|
|
||||||
<FrameLayout
|
<FrameLayout
|
||||||
android:id="@+id/btn_skip_img"
|
android:id="@+id/btn_skip_img"
|
||||||
@ -53,12 +53,32 @@
|
|||||||
android:textColor="@color/white"
|
android:textColor="@color/white"
|
||||||
android:textSize="11sp"
|
android:textSize="11sp"
|
||||||
android:visibility="invisible" />
|
android:visibility="invisible" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/cover"
|
android:id="@+id/cover"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:scaleType="centerCrop" />
|
android:scaleType="centerCrop" />
|
||||||
|
|
||||||
|
|
||||||
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:background="@drawable/bg_yola_splash_log">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="0dp"
|
||||||
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
android:src="@drawable/ic_yola_splash_log"
|
||||||
|
app:layout_constraintWidth_percent="0.34" />
|
||||||
|
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
|
||||||
|
BIN
common/src/main/res/drawable/bg_yola_splash_log.png
Normal file
BIN
common/src/main/res/drawable/bg_yola_splash_log.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.4 MiB |
BIN
common/src/main/res/drawable/ic_yola_splash_log.png
Normal file
BIN
common/src/main/res/drawable/ic_yola_splash_log.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 77 KiB |
@ -1078,9 +1078,9 @@
|
|||||||
<string name="confirm_pick_up">確認領取</string>
|
<string name="confirm_pick_up">確認領取</string>
|
||||||
<string name="customer_service2">無法登陸?點此聯繫客服</string>
|
<string name="customer_service2">無法登陸?點此聯繫客服</string>
|
||||||
<string name="next_step_is_consent">進入下一步即代表同意</string>
|
<string name="next_step_is_consent">進入下一步即代表同意</string>
|
||||||
<string name="user_protocol2">用戶協議</string>
|
<string name="user_protocol2">《用戶協議》</string>
|
||||||
<string name="and">和</string>
|
<string name="and">和</string>
|
||||||
<string name="privacy_terms">隱私條款</string>
|
<string name="privacy_terms">《隱私條款》</string>
|
||||||
<string name="terms_and_policies">條款和政策</string>
|
<string name="terms_and_policies">條款和政策</string>
|
||||||
<string name="treat_and_protect">歡迎來到PandoraLive,對於您的個人信息及隱私,我們將採用最高標準對待和保護。</string>
|
<string name="treat_and_protect">歡迎來到PandoraLive,對於您的個人信息及隱私,我們將採用最高標準對待和保護。</string>
|
||||||
<string name="install_the_application">詳情請您閱讀以下安裝應用程序的消息:</string>
|
<string name="install_the_application">詳情請您閱讀以下安裝應用程序的消息:</string>
|
||||||
|
@ -11,6 +11,18 @@
|
|||||||
<item name="android:statusBarColor">@color/colorPrimary</item>
|
<item name="android:statusBarColor">@color/colorPrimary</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
<style name="AppLunTheme.Theme" parent="Base.Theme.NoActionBar">
|
||||||
|
<item name="colorPrimary">@color/colorPrimary</item>
|
||||||
|
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
|
||||||
|
<item name="colorAccent">@color/colorAccent</item>
|
||||||
|
<item name="android:windowNoTitle">true</item>
|
||||||
|
<item name="android:windowBackground">@drawable/bg_yola_splash_log</item>
|
||||||
|
<item name="android:windowAnimationStyle">@style/AnimationActivity</item>
|
||||||
|
<!-- Status bar color. -->
|
||||||
|
<item name="android:statusBarColor">@color/colorPrimary</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
<style name="dialog" parent="AppTheme">
|
<style name="dialog" parent="AppTheme">
|
||||||
<item name="android:windowFrame">@null</item>
|
<item name="android:windowFrame">@null</item>
|
||||||
<item name="android:windowNoTitle">true</item>
|
<item name="android:windowNoTitle">true</item>
|
||||||
|
9
live/src/main/res/drawable/background_080221_d28.xml
Normal file
9
live/src/main/res/drawable/background_080221_d28.xml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item>
|
||||||
|
<shape android:shape="rectangle">
|
||||||
|
<corners android:radius="28dp" />
|
||||||
|
<solid android:color="#080221" />
|
||||||
|
</shape>
|
||||||
|
</item>
|
||||||
|
</selector>
|
9
live/src/main/res/drawable/background_fff2f2f2_d28.xml
Normal file
9
live/src/main/res/drawable/background_fff2f2f2_d28.xml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item>
|
||||||
|
<shape android:shape="rectangle">
|
||||||
|
<corners android:radius="28dp" />
|
||||||
|
<solid android:color="#F2F2F2" />
|
||||||
|
</shape>
|
||||||
|
</item>
|
||||||
|
</selector>
|
@ -40,6 +40,7 @@ import android.widget.VideoView;
|
|||||||
|
|
||||||
import androidx.annotation.Nullable;
|
import androidx.annotation.Nullable;
|
||||||
import androidx.appcompat.app.AppCompatActivity;
|
import androidx.appcompat.app.AppCompatActivity;
|
||||||
|
import androidx.constraintlayout.widget.Group;
|
||||||
|
|
||||||
import com.alibaba.android.arouter.facade.annotation.Route;
|
import com.alibaba.android.arouter.facade.annotation.Route;
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
@ -117,11 +118,12 @@ import java.util.TimerTask;
|
|||||||
@Route(path = RouteUtil.PATH_ENTRY)
|
@Route(path = RouteUtil.PATH_ENTRY)
|
||||||
public class EntryActivity extends AppCompatActivity {
|
public class EntryActivity extends AppCompatActivity {
|
||||||
|
|
||||||
private VideoView video_view;
|
// private VideoView video_view;
|
||||||
private ImageView btn_phone, btn_line, btn_twitter;
|
private View btn_phone, btn_line;
|
||||||
private TextView btn_tip, btn_tip1, tv_customer;
|
private TextView btn_tip, btn_tip1, tv_customer;
|
||||||
private TwitterLoginButton tt_login_button;
|
// private TwitterLoginButton tt_login_button;
|
||||||
private LinearLayout btn_google, googleLayout;
|
private View btn_google;
|
||||||
|
private Group googleLayout,webViewLayout;
|
||||||
public static Activity activity;
|
public static Activity activity;
|
||||||
private static String mLoginType = Constants.MOB_PHONE;//登录方式
|
private static String mLoginType = Constants.MOB_PHONE;//登录方式
|
||||||
public String mPromoCode = "", UserID = "";//推广码
|
public String mPromoCode = "", UserID = "";//推广码
|
||||||
@ -130,8 +132,8 @@ public class EntryActivity extends AppCompatActivity {
|
|||||||
private static boolean mFirstLogin;//是否是第一次登录
|
private static boolean mFirstLogin;//是否是第一次登录
|
||||||
private static boolean mShowInvite;//显示邀请码弹窗
|
private static boolean mShowInvite;//显示邀请码弹窗
|
||||||
private static Context Contexts;
|
private static Context Contexts;
|
||||||
private ImageView img_view;
|
// private ImageView img_view;
|
||||||
private LinearLayout lt_btn_twitter, lt_btn_facebook, lt_customer;
|
private View lt_btn_facebook;
|
||||||
private String kefuUrl = "";
|
private String kefuUrl = "";
|
||||||
private boolean mBtnClick = false;
|
private boolean mBtnClick = false;
|
||||||
private Dialog loginLoadingDialog;
|
private Dialog loginLoadingDialog;
|
||||||
@ -140,7 +142,6 @@ public class EntryActivity extends AppCompatActivity {
|
|||||||
|
|
||||||
private WebView webview;
|
private WebView webview;
|
||||||
private WebSettings webSettings;
|
private WebSettings webSettings;
|
||||||
private View webViewLayout;
|
|
||||||
private View webBack;
|
private View webBack;
|
||||||
|
|
||||||
|
|
||||||
@ -201,7 +202,7 @@ public class EntryActivity extends AppCompatActivity {
|
|||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
setContentView(R.layout.activity_entry);
|
setContentView(R.layout.activity_entry2);
|
||||||
if (getIntent().getBooleanExtra("forwardEntry", false)) {
|
if (getIntent().getBooleanExtra("forwardEntry", false)) {
|
||||||
IMLoginManager.get(this).logout(this);
|
IMLoginManager.get(this).logout(this);
|
||||||
ToastUtil.show(R.string.login_invalid);
|
ToastUtil.show(R.string.login_invalid);
|
||||||
@ -221,20 +222,20 @@ public class EntryActivity extends AppCompatActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
lt_btn_facebook = findViewById(R.id.lt_btn_facebook);
|
lt_btn_facebook = findViewById(R.id.lt_btn_facebook);
|
||||||
lt_btn_twitter = findViewById(R.id.lt_btn_twitter);
|
// lt_btn_twitter = findViewById(R.id.lt_btn_twitter);
|
||||||
btn_tip = findViewById(R.id.btn_tip);
|
btn_tip = findViewById(R.id.btn_tip);
|
||||||
btn_tip1 = findViewById(R.id.btn_tip1);
|
btn_tip1 = findViewById(R.id.btn_tip1);
|
||||||
|
|
||||||
img_view = findViewById(R.id.img_view);
|
// img_view = findViewById(R.id.img_view);
|
||||||
|
|
||||||
btn_google = findViewById(R.id.btn_google);
|
btn_google = findViewById(R.id.btn_google);
|
||||||
btn_twitter = findViewById(R.id.btn_twitter);
|
// btn_twitter = findViewById(R.id.btn_twitter);
|
||||||
tt_login_button = findViewById(R.id.tt_login_button);
|
// tt_login_button = findViewById(R.id.tt_login_button);
|
||||||
|
|
||||||
tv_customer = findViewById(R.id.tv_customer);
|
tv_customer = findViewById(R.id.tv_customer);
|
||||||
btn_phone = findViewById(R.id.btn_phone);
|
btn_phone = findViewById(R.id.btn_phone);
|
||||||
btn_line = findViewById(R.id.btn_line);
|
// btn_line = findViewById(R.id.btn_line);
|
||||||
lt_customer = findViewById(R.id.lt_customer);
|
|
||||||
|
|
||||||
btn_tip.getPaint().setFlags(Paint.UNDERLINE_TEXT_FLAG);
|
btn_tip.getPaint().setFlags(Paint.UNDERLINE_TEXT_FLAG);
|
||||||
btn_tip.getPaint().setAntiAlias(true);
|
btn_tip.getPaint().setAntiAlias(true);
|
||||||
@ -274,26 +275,26 @@ public class EntryActivity extends AppCompatActivity {
|
|||||||
|
|
||||||
getPromoCode();
|
getPromoCode();
|
||||||
getUuidDevice();
|
getUuidDevice();
|
||||||
video_view = findViewById(R.id.video_view);
|
// video_view = findViewById(R.id.video_view);
|
||||||
video_view.setVideoPath(Uri.parse("android.resource://" + getPackageName() + "/" + R.raw.login_video) + "");
|
// video_view.setVideoPath(Uri.parse("android.resource://" + getPackageName() + "/" + R.raw.login_video) + "");
|
||||||
video_view.start();
|
// video_view.start();
|
||||||
video_view.setOnCompletionListener(new MediaPlayer.OnCompletionListener() {
|
// video_view.setOnCompletionListener(new MediaPlayer.OnCompletionListener() {
|
||||||
|
//
|
||||||
@Override
|
// @Override
|
||||||
public void onCompletion(MediaPlayer mp) {
|
// public void onCompletion(MediaPlayer mp) {
|
||||||
video_view.setVideoPath(Uri.parse("android.resource://" + getPackageName() + "/" + R.raw.login_video) + "");
|
// video_view.setVideoPath(Uri.parse("android.resource://" + getPackageName() + "/" + R.raw.login_video) + "");
|
||||||
video_view.start();
|
// video_view.start();
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
video_view.setOnErrorListener(new MediaPlayer.OnErrorListener() {
|
// video_view.setOnErrorListener(new MediaPlayer.OnErrorListener() {
|
||||||
@Override
|
// @Override
|
||||||
public boolean onError(MediaPlayer mp, int what, int extra) {
|
// public boolean onError(MediaPlayer mp, int what, int extra) {
|
||||||
video_view.stopPlayback(); //播放异常,则停止播放,防止弹窗使界面阻塞
|
// video_view.stopPlayback(); //播放异常,则停止播放,防止弹窗使界面阻塞
|
||||||
img_view.setVisibility(View.VISIBLE);
|
// img_view.setVisibility(View.VISIBLE);
|
||||||
video_view.setVisibility(View.GONE);
|
// video_view.setVisibility(View.GONE);
|
||||||
return false;
|
// return false;
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
|
|
||||||
lt_btn_facebook.setOnClickListener(new View.OnClickListener() {
|
lt_btn_facebook.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
@ -334,59 +335,58 @@ public class EntryActivity extends AppCompatActivity {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
lt_btn_twitter.setOnClickListener(new View.OnClickListener() {
|
// lt_btn_twitter.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
// @Override
|
||||||
public void onClick(View v) {
|
// public void onClick(View v) {
|
||||||
if (isBtnClick()) {
|
// if (isBtnClick()) {
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
verfiy(3);
|
// verfiy(3);
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
|
|
||||||
tt_login_button.setCallback(new Callback<TwitterSession>() {
|
// tt_login_button.setCallback(new Callback<TwitterSession>() {
|
||||||
@Override
|
// @Override
|
||||||
public void success(Result<TwitterSession> result) {
|
// public void success(Result<TwitterSession> result) {
|
||||||
// Do something with result, which provides a TwitterSession for making API calls
|
// // Do something with result, which provides a TwitterSession for making API calls
|
||||||
//result里面包含了用户的信息,我们可以从中取出token,tokenSecret
|
// //result里面包含了用户的信息,我们可以从中取出token,tokenSecret
|
||||||
//(如果我们有自己的后台服务器,发送这两个到我们自己的后台,后台再去验证)
|
// //(如果我们有自己的后台服务器,发送这两个到我们自己的后台,后台再去验证)
|
||||||
TwitterAuthToken authToken = result.data.getAuthToken();
|
// TwitterAuthToken authToken = result.data.getAuthToken();
|
||||||
String token = authToken.token;
|
// String token = authToken.token;
|
||||||
String appId = "24315541";
|
// String appId = "24315541";
|
||||||
String tokenSecret = authToken.secret;
|
// String tokenSecret = authToken.secret;
|
||||||
|
//
|
||||||
final String userName = result.data.getUserName();
|
// final String userName = result.data.getUserName();
|
||||||
|
//
|
||||||
LoginData data = new LoginData();
|
// LoginData data = new LoginData();
|
||||||
data.setAvatar("");
|
// data.setAvatar("");
|
||||||
data.setNickName(userName);
|
// data.setNickName(userName);
|
||||||
data.setOpenID(token);
|
// data.setOpenID(token);
|
||||||
data.setType("twitter");
|
// data.setType("twitter");
|
||||||
|
//
|
||||||
loginBuyThird(data);
|
// loginBuyThird(data);
|
||||||
|
//
|
||||||
|
// }
|
||||||
}
|
//
|
||||||
|
// @Override
|
||||||
@Override
|
// public void failure(TwitterException exception) {
|
||||||
public void failure(TwitterException exception) {
|
// Log.i("Log", "TwitterException = " + exception);
|
||||||
Log.i("Log", "TwitterException = " + exception);
|
// ToastUtil.show(getResources().getString(R.string.user_login_outtime));
|
||||||
ToastUtil.show(getResources().getString(R.string.user_login_outtime));
|
// }
|
||||||
}
|
// });
|
||||||
});
|
// findViewById(R.id.btn_line).setOnClickListener(new View.OnClickListener() {
|
||||||
findViewById(R.id.btn_line).setOnClickListener(new View.OnClickListener() {
|
// @Override
|
||||||
@Override
|
// public void onClick(View view) {
|
||||||
public void onClick(View view) {
|
// if (isBtnClick()) {
|
||||||
if (isBtnClick()) {
|
// return;
|
||||||
return;
|
// }
|
||||||
}
|
// verfiy(4);
|
||||||
verfiy(4);
|
// }
|
||||||
}
|
// });
|
||||||
});
|
|
||||||
|
|
||||||
getUrl();
|
getUrl();
|
||||||
|
|
||||||
lt_customer.setOnClickListener(new View.OnClickListener() {
|
tv_customer.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
if (!"".equals(kefuUrl)) {
|
if (!"".equals(kefuUrl)) {
|
||||||
@ -437,18 +437,18 @@ public class EntryActivity extends AppCompatActivity {
|
|||||||
} else if (loginType == 2) {
|
} else if (loginType == 2) {
|
||||||
startActivityForResult(googleUtils.getIntent(), 1002);
|
startActivityForResult(googleUtils.getIntent(), 1002);
|
||||||
} else if (loginType == 3) {
|
} else if (loginType == 3) {
|
||||||
tt_login_button.performClick();
|
// tt_login_button.performClick();
|
||||||
} else if (loginType == 4) {
|
} else if (loginType == 4) {
|
||||||
try {
|
// try {
|
||||||
// App-to-app login
|
// // App-to-app login
|
||||||
Intent loginIntent = LineLoginApi.getLoginIntent(findViewById(R.id.btn_line).getContext(), "2006124380", new LineAuthenticationParams.Builder().scopes(Arrays.asList(Scope.PROFILE))
|
// Intent loginIntent = LineLoginApi.getLoginIntent(findViewById(R.id.btn_line).getContext(), "2006124380", new LineAuthenticationParams.Builder().scopes(Arrays.asList(Scope.PROFILE))
|
||||||
// .nonce("<a randomly-generated string>") // nonce can be used to improve security
|
// // .nonce("<a randomly-generated string>") // nonce can be used to improve security
|
||||||
.build());
|
// .build());
|
||||||
startActivityForResult(loginIntent, 1001);
|
// startActivityForResult(loginIntent, 1001);
|
||||||
} catch (Exception e) {
|
// } catch (Exception e) {
|
||||||
Log.e("ERROR", e.toString());
|
// Log.e("ERROR", e.toString());
|
||||||
ToastUtil.show(getResources().getString(R.string.user_login_outtime));
|
// ToastUtil.show(getResources().getString(R.string.user_login_outtime));
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -564,7 +564,7 @@ public class EntryActivity extends AppCompatActivity {
|
|||||||
} else if (requestCode == 1002) {//google登录
|
} else if (requestCode == 1002) {//google登录
|
||||||
handleSignInResult(data);
|
handleSignInResult(data);
|
||||||
} else {
|
} else {
|
||||||
tt_login_button.onActivityResult(requestCode, resultCode, data);//twitter登录回调
|
// tt_login_button.onActivityResult(requestCode, resultCode, data);//twitter登录回调
|
||||||
callbackManager.onActivityResult(requestCode, resultCode, data);//facebook登录回调
|
callbackManager.onActivityResult(requestCode, resultCode, data);//facebook登录回调
|
||||||
}
|
}
|
||||||
super.onActivityResult(requestCode, resultCode, data);
|
super.onActivityResult(requestCode, resultCode, data);
|
||||||
@ -656,7 +656,7 @@ public class EntryActivity extends AppCompatActivity {
|
|||||||
@Override
|
@Override
|
||||||
protected void onResume() {
|
protected void onResume() {
|
||||||
super.onResume();
|
super.onResume();
|
||||||
video_view.start();
|
// video_view.start();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -66,6 +66,7 @@ import com.yunbao.common.interfaces.CommonCallback;
|
|||||||
import com.yunbao.common.manager.IMLoginManager;
|
import com.yunbao.common.manager.IMLoginManager;
|
||||||
import com.yunbao.common.manager.imrongcloud.MessageIMManager;
|
import com.yunbao.common.manager.imrongcloud.MessageIMManager;
|
||||||
import com.yunbao.common.utils.AppManager;
|
import com.yunbao.common.utils.AppManager;
|
||||||
|
import com.yunbao.common.utils.DateFormatUtil;
|
||||||
import com.yunbao.common.utils.DebugUtils;
|
import com.yunbao.common.utils.DebugUtils;
|
||||||
import com.yunbao.common.utils.DeviceUtils;
|
import com.yunbao.common.utils.DeviceUtils;
|
||||||
import com.yunbao.common.utils.DpUtil;
|
import com.yunbao.common.utils.DpUtil;
|
||||||
@ -109,8 +110,13 @@ import org.greenrobot.eventbus.ThreadMode;
|
|||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import io.rong.imlib.RongIMClient;
|
||||||
|
import io.rong.imlib.model.Conversation;
|
||||||
|
import io.rong.imlib.model.Message;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 消息中心
|
* 消息中心
|
||||||
@ -588,10 +594,10 @@ public class MainMessageViewHolder2 extends AbsMainHomeChildViewHolder {
|
|||||||
if (TextUtils.isEmpty(userBean.getNum()) || TextUtils.equals("0", userBean.getNum())) {
|
if (TextUtils.isEmpty(userBean.getNum()) || TextUtils.equals("0", userBean.getNum())) {
|
||||||
textNewsNotice.setVisibility(View.GONE);
|
textNewsNotice.setVisibility(View.GONE);
|
||||||
} else {
|
} else {
|
||||||
Log.i("官方通知", "请求消息:" + SudJsonUtils.toJson(userBean));
|
|
||||||
textNewsNotice.setVisibility(View.VISIBLE);
|
textNewsNotice.setVisibility(View.VISIBLE);
|
||||||
officialDate.setText(userBean.getLastDate());
|
setChatApt(userBean.getType(),officialDate,officialContent);
|
||||||
officialContent.setText(userBean.getContent());
|
// officialDate.setText(userBean.getLastDate());
|
||||||
|
// officialContent.setText(userBean.getContent());
|
||||||
// int numberInt = Integer.parseInt(userBean.getNum());
|
// int numberInt = Integer.parseInt(userBean.getNum());
|
||||||
// if (numberInt > 99) {
|
// if (numberInt > 99) {
|
||||||
// textNewsNotice.setTextSize(TypedValue.COMPLEX_UNIT_SP, 9);
|
// textNewsNotice.setTextSize(TypedValue.COMPLEX_UNIT_SP, 9);
|
||||||
@ -683,6 +689,12 @@ public class MainMessageViewHolder2 extends AbsMainHomeChildViewHolder {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//不是IM消息
|
||||||
|
private void setChatApt(String type,TextView timeTV,TextView contentTv) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 系統消息獲取
|
* 系統消息獲取
|
||||||
*/
|
*/
|
||||||
@ -777,11 +789,9 @@ public class MainMessageViewHolder2 extends AbsMainHomeChildViewHolder {
|
|||||||
textNewsNotice.setText("");
|
textNewsNotice.setText("");
|
||||||
} else {
|
} else {
|
||||||
// String number = textNewsNotice.getText().toString().trim();
|
// String number = textNewsNotice.getText().toString().trim();
|
||||||
Log.i("官方通知", "官方通知:" + model.toString());
|
|
||||||
textNewsNotice.setVisibility(View.VISIBLE);
|
|
||||||
officialDate.setText(model.getAddtime());
|
|
||||||
officialContent.setText(model.getContent());
|
|
||||||
|
|
||||||
|
textNewsNotice.setVisibility(View.VISIBLE);
|
||||||
|
setChatApt(model.getType(),officialDate,officialContent);
|
||||||
// int numberInt = Integer.parseInt(number) + 1;
|
// int numberInt = Integer.parseInt(number) + 1;
|
||||||
// if (numberInt > 99) {
|
// if (numberInt > 99) {
|
||||||
// textNewsNotice.setTextSize(TypedValue.COMPLEX_UNIT_SP, 9);
|
// textNewsNotice.setTextSize(TypedValue.COMPLEX_UNIT_SP, 9);
|
||||||
|
BIN
main/src/main/res/mipmap-xxxhdpi/bg_yola_login.png
Normal file
BIN
main/src/main/res/mipmap-xxxhdpi/bg_yola_login.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.7 MiB |
BIN
main/src/main/res/mipmap-xxxhdpi/bg_yola_login_count.png
Normal file
BIN
main/src/main/res/mipmap-xxxhdpi/bg_yola_login_count.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.8 KiB |
BIN
main/src/main/res/mipmap-xxxhdpi/bg_yola_login_face.png
Normal file
BIN
main/src/main/res/mipmap-xxxhdpi/bg_yola_login_face.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.2 KiB |
BIN
main/src/main/res/mipmap-xxxhdpi/bg_yola_login_google.png
Normal file
BIN
main/src/main/res/mipmap-xxxhdpi/bg_yola_login_google.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.5 KiB |
Loading…
Reference in New Issue
Block a user