TIM v2.3.1版本的 MD5 值为:d6957e3ee7ce901ccc491cefdea0da8c
以下内容为反编译后的 RegisterGuideActivity.java 源代码,内容仅作参考
package com.tencent.mobileqq.activity;
import android.animation.AnimatorSet;
import android.animation.Keyframe;
import android.animation.ObjectAnimator;
import android.animation.PropertyValuesHolder;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.os.Bundle;
import android.util.DisplayMetrics;
import android.view.View;
import android.widget.Button;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.tencent.biz.pubaccount.PublicAccountBrowser;
import com.tencent.common.config.AppSetting;
import com.tencent.mobileqq.activity.aio.AIOUtils;
import com.tencent.mobileqq.activity.login.view.BezierInterpolator;
import com.tencent.mobileqq.activity.login.view.BlueBgView;
import com.tencent.mobileqq.activity.login.view.WhiteBgView;
import com.tencent.mobileqq.app.AppConstants;
import com.tencent.mobileqq.app.BaseActivity;
import com.tencent.mobileqq.app.QQAppInterface;
import com.tencent.mobileqq.app.ThreadExcutor;
import com.tencent.mobileqq.app.ThreadManager;
import com.tencent.mobileqq.service.report.ReportConstants;
import com.tencent.mobileqq.statistics.ReportUtils;
import com.tencent.mobileqq.widget.CustomSafeEditText;
import com.tencent.mobileqq.widget.QQProgressDialog;
import com.tencent.mobileqq.widget.QQToast;
import com.tencent.open.business.base.AppUtil;
import com.tencent.smtt.sdk.TbsConfig;
import com.tencent.tim.R;
import com.tencent.widget.immersive.ImmersiveUtils;
import java.util.ArrayList;
import java.util.List;
import mqq.app.Constants;
import mqq.observer.AccountObserver;
import oicq.wlogin_sdk.request.WUserSigInfo;
import oicq.wlogin_sdk.request.WtloginHelper;
public class RegisterGuideActivity extends BaseActivity implements View.OnClickListener {
public static final int f85329a = 111;
public static final String f11001a = "RegisterGuideActivity";
AnimatorSet f11002a;
private View f11003a;
private Button f11004a;
private FrameLayout f11005a;
private ImageView f11006a;
private LinearLayout f11007a;
private RelativeLayout f11008a;
private TextView f11009a;
private BlueBgView f11010a;
private WhiteBgView f11011a;
private CustomSafeEditText f11012a;
private QQProgressDialog f11013a;
private AccountObserver f11014a = new ldn(this);
private WtloginHelper f11015a;
private int f85330b;
private View f11016b;
private ImageView f11017b;
private LinearLayout f11018b;
private RelativeLayout f11019b;
private TextView f11020b;
private CustomSafeEditText f11021b;
private int f85331c;
private View f11022c;
private ImageView f11023c;
private TextView f11024c;
private ImageView d;
private ImageView e;
@Override
public boolean doOnCreate(Bundle bundle) {
this.mActNeedImmersive = false;
super.doOnCreate(bundle);
if (this.mNeedStatusTrans && ImmersiveUtils.isSupporImmersive() == 1) {
ImmersiveUtils.a(getWindow(), false);
}
super.setContentView(R.layout.f58139name_res_0x7f030702);
m2817a();
m2818b();
return true;
}
public void m2817a() {
this.f11002a = new AnimatorSet();
this.f11015a = new WtloginHelper(this.app.getApplication().getApplicationContext());
WtloginHelper.setProductType(2);
this.app.registObserver(this.f11014a);
}
public void m2818b() {
this.f85330b = b();
this.f85331c = m2816a();
this.f11008a = (RelativeLayout) findViewById(R.id.f47813name_res_0x7f0902e1);
this.f11011a = (WhiteBgView) findViewById(R.id.f49526name_res_0x7f090992);
this.f11011a.a(this.f85331c * 3, this.f85331c * 4);
this.f11011a.setTranslationX(-this.f85331c);
this.f11011a.setTranslationY(-(((this.f85331c * 4) / 2) - (this.f85330b / 4)));
this.f11011a.setRotation(-20.0f);
this.f11010a = (BlueBgView) findViewById(R.id.f49525name_res_0x7f090991);
this.f11010a.a(AIOUtils.a(879.5f, getResources()), AIOUtils.a(908.0f, getResources()));
this.f11010a.setTranslationX(AIOUtils.a(-133.75f, getResources()));
this.f11010a.setTranslationY(AIOUtils.a(-380.0f, getResources()));
this.f11017b = (ImageView) findViewById(R.id.f55588name_res_0x7f092141);
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) this.f11017b.getLayoutParams();
layoutParams.addRule(14);
layoutParams.topMargin = (this.f85330b / 4) + AIOUtils.a(103.5f, getResources());
this.f11017b.setLayoutParams(layoutParams);
this.f11023c = (ImageView) findViewById(R.id.f55589name_res_0x7f092142);
this.f11003a = findViewById(R.id.f55590name_res_0x7f092143);
this.f11016b = findViewById(R.id.f55591name_res_0x7f092144);
this.f11004a = (Button) findViewById(R.id.f55592name_res_0x7f092145);
this.f11009a = (TextView) findViewById(R.id.f55593name_res_0x7f092146);
this.f11020b = (TextView) findViewById(R.id.f53488btn_register);
this.f11024c = (TextView) findViewById(R.id.f53195about);
this.f11005a = (FrameLayout) findViewById(R.id.f49527name_res_0x7f090993);
this.d = (ImageView) findViewById(R.id.f47694name_res_0x7f09026a);
this.e = (ImageView) findViewById(R.id.f49528name_res_0x7f090994);
RelativeLayout.LayoutParams layoutParams2 = (RelativeLayout.LayoutParams) this.f11005a.getLayoutParams();
layoutParams2.topMargin = (this.f85330b / 4) - AIOUtils.a(66.5f, getResources());
layoutParams2.leftMargin = (this.f85331c / 2) - AIOUtils.a(66.5f, getResources());
this.f11005a.setLayoutParams(layoutParams2);
this.d.setTranslationY(AIOUtils.a(-3.0f, getResources()));
this.f11019b = (RelativeLayout) findViewById(R.id.f55594name_res_0x7f092147);
RelativeLayout.LayoutParams layoutParams3 = (RelativeLayout.LayoutParams) this.f11019b.getLayoutParams();
layoutParams3.topMargin = (this.f85330b / 4) + AIOUtils.a(105.0f, getResources());
layoutParams3.addRule(14);
this.f11019b.setLayoutParams(layoutParams3);
this.f11012a = (CustomSafeEditText) findViewById(R.id.f55595name_res_0x7f092148);
LoginActivity.a(this.f11012a, getResources().getString(R.string.f63363name_res_0x7f0a1362), 18);
this.f11021b = (CustomSafeEditText) findViewById(R.id.f47858password);
LoginActivity.a(this.f11021b, getResources().getString(R.string.f63364password), 18);
this.f11012a.clearFocus();
this.f11021b.clearFocus();
this.f11022c = findViewById(R.id.f47857name_res_0x7f09030d);
this.f11018b = (LinearLayout) findViewById(R.id.f47861name_res_0x7f090311);
}
@Override
public void doOnResume() {
super.doOnResume();
if (a()) {
this.f11009a.setVisibility(0);
} else {
this.f11009a.setVisibility(8);
}
c();
}
public void c() {
AnimatorSet animatorSet = new AnimatorSet();
ArrayList arrayList = new ArrayList();
ObjectAnimator ofFloat = ObjectAnimator.ofFloat(this.f11017b, "translationY", -20.0f, 0.0f);
ObjectAnimator ofFloat2 = ObjectAnimator.ofFloat(this.f11017b, "alpha", 0.0f, 1.0f);
arrayList.add(ofFloat);
arrayList.add(ofFloat2);
ObjectAnimator ofFloat3 = ObjectAnimator.ofFloat(this.f11023c, "translationY", -20.0f, 0.0f);
ObjectAnimator ofFloat4 = ObjectAnimator.ofFloat(this.f11023c, "alpha", 0.0f, 1.0f);
ofFloat4.addListener(new ldm(this));
ofFloat3.setStartDelay(33L);
ofFloat4.setStartDelay(33L);
arrayList.add(ofFloat3);
arrayList.add(ofFloat4);
ObjectAnimator ofFloat5 = ObjectAnimator.ofFloat(this.f11003a, "scaleX", 0.0f, 1.0f);
ObjectAnimator ofFloat6 = ObjectAnimator.ofFloat(this.f11003a, "alpha", 0.0f, 1.0f);
ofFloat5.addListener(new ldo(this));
arrayList.add(ofFloat5);
arrayList.add(ofFloat6);
ObjectAnimator ofFloat7 = ObjectAnimator.ofFloat(this.f11016b, "translationY", 20.0f, 0.0f);
ObjectAnimator ofFloat8 = ObjectAnimator.ofFloat(this.f11016b, "alpha", 0.0f, 1.0f);
arrayList.add(ofFloat7);
arrayList.add(ofFloat8);
ObjectAnimator ofFloat9 = ObjectAnimator.ofFloat(this.f11020b, "alpha", 0.0f, 1.0f);
ObjectAnimator ofFloat10 = ObjectAnimator.ofFloat(this.f11024c, "alpha", 0.0f, 1.0f);
arrayList.add(ofFloat9);
arrayList.add(ofFloat10);
animatorSet.setDuration(500L);
animatorSet.playTogether(arrayList);
animatorSet.start();
}
public int m2816a() {
DisplayMetrics displayMetrics = new DisplayMetrics();
getWindowManager().getDefaultDisplay().getMetrics(displayMetrics);
return displayMetrics.widthPixels;
}
public int b() {
DisplayMetrics displayMetrics = new DisplayMetrics();
getWindowManager().getDefaultDisplay().getMetrics(displayMetrics);
return displayMetrics.heightPixels;
}
public void d() {
AnimatorSet animatorSet = new AnimatorSet();
ArrayList arrayList = new ArrayList();
PropertyValuesHolder ofKeyframe = PropertyValuesHolder.ofKeyframe("translationY", Keyframe.ofFloat(0.0f, 0.0f), Keyframe.ofFloat(0.5f, AIOUtils.a(-4.5f, getResources())), Keyframe.ofFloat(1.0f, AIOUtils.a(-10.0f, getResources())));
ObjectAnimator ofFloat = ObjectAnimator.ofFloat(this.f11017b, "translationY", 0.0f, AIOUtils.a(-10.0f, getResources()));
ofFloat.setInterpolator(new BezierInterpolator(0.2f, 0.0f, 0.8f, 1.0f));
ObjectAnimator ofFloat2 = ObjectAnimator.ofFloat(this.f11017b, "alpha", 1.0f, 0.0f);
ofFloat2.setInterpolator(new BezierInterpolator(0.2f, 0.0f, 0.8f, 1.0f));
ofFloat.setDuration(500L);
ofFloat2.setDuration(500L);
arrayList.add(ofFloat);
arrayList.add(ofFloat2);
ObjectAnimator ofPropertyValuesHolder = ObjectAnimator.ofPropertyValuesHolder(this.f11023c, ofKeyframe);
ObjectAnimator ofFloat3 = ObjectAnimator.ofFloat(this.f11023c, "alpha", 1.0f, 0.0f);
ofPropertyValuesHolder.setDuration(500L);
ofFloat3.setDuration(500L);
ofPropertyValuesHolder.setStartDelay(33L);
ofFloat3.setStartDelay(33L);
arrayList.add(ofPropertyValuesHolder);
arrayList.add(ofFloat3);
ObjectAnimator ofPropertyValuesHolder2 = ObjectAnimator.ofPropertyValuesHolder(this.f11003a, PropertyValuesHolder.ofKeyframe("scaleX", Keyframe.ofFloat(0.0f, 1.0f), Keyframe.ofFloat(0.12f, 3.06f), Keyframe.ofFloat(1.0f, 3.607f)));
ObjectAnimator ofFloat4 = ObjectAnimator.ofFloat(this.f11003a, "alpha", 1.0f, 0.2f);
ofPropertyValuesHolder2.setDuration(567L);
ofFloat4.setDuration(567L);
ofPropertyValuesHolder2.setStartDelay(233L);
ofFloat4.setStartDelay(233L);
arrayList.add(ofPropertyValuesHolder2);
arrayList.add(ofFloat4);
ObjectAnimator ofFloat5 = ObjectAnimator.ofFloat(this.f11011a, "rotation", -20.0f, 20.0f);
ofFloat5.setInterpolator(new BezierInterpolator(0.0f, 0.0f, 0.0f, 1.0f));
ofFloat5.setDuration(967L);
arrayList.add(ofFloat5);
PropertyValuesHolder ofKeyframe2 = PropertyValuesHolder.ofKeyframe("translationY", Keyframe.ofFloat(0.0f, AIOUtils.a(-10.0f, getResources())), Keyframe.ofFloat(0.3f, AIOUtils.a(-3.5f, getResources())), Keyframe.ofFloat(1.0f, 0.0f));
ObjectAnimator ofPropertyValuesHolder3 = ObjectAnimator.ofPropertyValuesHolder(this.f11012a, ofKeyframe2);
ObjectAnimator ofFloat6 = ObjectAnimator.ofFloat(this.f11012a, "alpha", 0.0f, 1.0f);
ofPropertyValuesHolder3.setDuration(567L);
ofFloat6.setDuration(567L);
ofPropertyValuesHolder3.setStartDelay(300L);
ofFloat6.setStartDelay(300L);
ofPropertyValuesHolder3.addListener(new ldp(this));
arrayList.add(ofPropertyValuesHolder3);
arrayList.add(ofFloat6);
ObjectAnimator ofPropertyValuesHolder4 = ObjectAnimator.ofPropertyValuesHolder(this.f11021b, ofKeyframe2);
ObjectAnimator ofFloat7 = ObjectAnimator.ofFloat(this.f11021b, "alpha", 0.0f, 1.0f);
ofPropertyValuesHolder4.setDuration(567L);
ofFloat7.setDuration(567L);
ofPropertyValuesHolder4.setStartDelay(300L);
ofFloat7.setStartDelay(300L);
ofPropertyValuesHolder4.addListener(new ldq(this));
arrayList.add(ofPropertyValuesHolder4);
arrayList.add(ofFloat7);
ObjectAnimator ofPropertyValuesHolder5 = ObjectAnimator.ofPropertyValuesHolder(this.f11022c, PropertyValuesHolder.ofKeyframe("scaleX", Keyframe.ofFloat(0.0f, 0.0f), Keyframe.ofFloat(0.06f, 0.05f), Keyframe.ofFloat(1.0f, 1.0f)));
ObjectAnimator ofFloat8 = ObjectAnimator.ofFloat(this.f11022c, "alpha", 0.0f, 0.2f);
ofPropertyValuesHolder5.setDuration(567L);
ofFloat8.setDuration(567L);
ofPropertyValuesHolder5.setStartDelay(266L);
ofFloat8.setStartDelay(266L);
ofPropertyValuesHolder5.addListener(new ldr(this));
arrayList.add(ofPropertyValuesHolder5);
arrayList.add(ofFloat8);
ObjectAnimator ofFloat9 = ObjectAnimator.ofFloat(this.f11016b, "alpha", 1.0f, 0.0f);
ofFloat9.setDuration(250L);
ofFloat9.addListener(new lds(this));
ObjectAnimator ofFloat10 = ObjectAnimator.ofFloat(this.f11016b, "alpha", 0.0f, 1.0f);
ofFloat10.setDuration(250L);
ofFloat10.setStartDelay(250L);
arrayList.add(ofFloat9);
arrayList.add(ofFloat10);
ObjectAnimator ofFloat11 = ObjectAnimator.ofFloat(this.f11010a, "translationX", AIOUtils.a(-133.75f, getResources()), AIOUtils.a(-418.75f, getResources()));
BezierInterpolator bezierInterpolator = new BezierInterpolator(0.0f, 0.0f, 0.0f, 1.0f);
ofFloat11.setInterpolator(bezierInterpolator);
ofFloat11.setDuration(967L);
ObjectAnimator ofFloat12 = ObjectAnimator.ofFloat(this.f11010a, "translationY", AIOUtils.a(-380.0f, getResources()), AIOUtils.a(-454.5f, getResources()));
ofFloat12.setInterpolator(bezierInterpolator);
ofFloat12.setDuration(967L);
ObjectAnimator ofFloat13 = ObjectAnimator.ofFloat(this.f11010a, "rotation", 0.0f, 102.0f);
ofFloat13.setInterpolator(new BezierInterpolator(0.64827585f, 0.0f, 0.29310346f, 1.0f));
ofFloat13.setDuration(967L);
ObjectAnimator ofFloat14 = ObjectAnimator.ofFloat(this.f11010a, "scaleX", 1.0f, 1.6f);
BezierInterpolator bezierInterpolator2 = new BezierInterpolator(1.0f, 0.0f, 0.6647059f, 1.0f);
ofFloat14.setInterpolator(bezierInterpolator2);
ofFloat14.setDuration(567L);
ObjectAnimator ofFloat15 = ObjectAnimator.ofFloat(this.f11010a, "scaleY", 1.0f, 1.6f);
ofFloat15.setInterpolator(bezierInterpolator2);
ofFloat15.setDuration(567L);
arrayList.add(ofFloat11);
arrayList.add(ofFloat12);
arrayList.add(ofFloat13);
arrayList.add(ofFloat14);
arrayList.add(ofFloat15);
ObjectAnimator ofFloat16 = ObjectAnimator.ofFloat(this.f11005a, "alpha", 0.0f, 1.0f);
ofFloat16.setDuration(733L);
ofFloat16.setStartDelay(267L);
ObjectAnimator ofFloat17 = ObjectAnimator.ofFloat(this.f11005a, "translationY", AIOUtils.a(-14.0f, getResources()), 0.0f);
ofFloat17.setDuration(733L);
ofFloat17.setStartDelay(267L);
ofFloat16.addListener(new ldt(this));
arrayList.add(ofFloat17);
arrayList.add(ofFloat16);
ObjectAnimator ofFloat18 = ObjectAnimator.ofFloat(this.f11018b, "alpha", 0.0f, 1.0f);
ofFloat18.setDuration(250L);
ofFloat18.setStartDelay(250L);
ofFloat18.addListener(new ldu(this));
arrayList.add(ofFloat18);
animatorSet.playTogether(arrayList);
animatorSet.start();
}
@Override
public void onClick(View view) {
switch (view.getId()) {
case R.id.f53195about:
Intent intent = new Intent(this, QQBrowserActivity.class);
intent.putExtra("hide_more_button", true);
intent.putExtra(PublicAccountBrowser.h, true);
intent.putExtra("url", "https://kf.qq.com/touch/wxappfaq/161103qiMFFv16110377RV3a.html?platform=14");
startActivity(intent);
return;
case R.id.f53488btn_register:
Intent intent2 = new Intent(this, RegisterPhoneNumActivity.class);
intent2.putExtra(AppConstants.leftViewText.f87222a, super.getString(R.string.f63667button_back));
intent2.addFlags(67108864);
super.startActivity(intent2);
ReportUtils.a(this.app, ReportConstants.j, ReportConstants.r, ReportConstants.t, "0X8006E54");
return;
case R.id.f55592name_res_0x7f092145:
d();
return;
case R.id.f55593name_res_0x7f092146:
if (a()) {
Intent PrepareQloginIntent = this.f11015a.PrepareQloginIntent(16L, 16L, AppSetting.j);
if (PrepareQloginIntent != null) {
this.f11013a = new QQProgressDialog(this, getTitleBarHeight());
this.f11013a.a("正在加载,请稍候...");
this.f11013a.show();
startActivityForResult(PrepareQloginIntent, 111);
} else {
QQToast.a(this, 2, (int) R.string.f63376name_res_0x7f0a136f, 0).b(getTitleBarHeight());
}
} else {
QQToast.a(this, 2, (int) R.string.f63375name_res_0x7f0a136e, 0).b(getTitleBarHeight());
}
ReportUtils.a(this.app, ReportConstants.j, ReportConstants.r, ReportConstants.t, "0X8008BFA");
return;
default:
return;
}
}
@Override
public void doOnActivityResult(int i, int i2, Intent intent) {
super.doOnActivityResult(i, i2, intent);
if (i2 == -1 && i == 111) {
WUserSigInfo ResolveQloginIntentReserved = this.f11015a.ResolveQloginIntentReserved(intent);
if (ResolveQloginIntentReserved != null) {
Bundle bundle = new Bundle();
bundle.putBoolean("timQuickLogin", true);
bundle.putParcelable("sigInfo", ResolveQloginIntentReserved);
getAppRuntime().login(ResolveQloginIntentReserved.uin, new byte[0], bundle, null);
return;
}
QQToast.a(this, 2, (int) R.string.f63376name_res_0x7f0a136f, 0).b(getTitleBarHeight());
return;
}
if (this.f11013a != null && this.f11013a.isShowing()) {
this.f11013a.dismiss();
}
QQToast.a(this, 2, (int) R.string.f63376name_res_0x7f0a136f, 0).b(getTitleBarHeight());
}
@Override
public void doOnDestroy() {
super.doOnDestroy();
this.app.unRegistObserver(this.f11014a);
if (this.f11013a != null && this.f11013a.isShowing()) {
this.f11013a.dismiss();
}
}
private boolean a() {
List<PackageInfo> m10051a = AppUtil.m10051a((Context) this.app.getApp());
if (m10051a != null) {
for (PackageInfo packageInfo : m10051a) {
if (TbsConfig.APP_QQ.equals(packageInfo.packageName)) {
return true;
}
}
}
return false;
}
@Override
public void doOnBackPressed() {
finish();
if (getAppRuntime() instanceof QQAppInterface) {
((QQAppInterface) super.getAppRuntime()).b(false);
}
}
@Override
public void onAccountChanged() {
super.onAccountChanged();
if (this.f11013a != null && this.f11013a.isShowing()) {
this.f11013a.dismiss();
}
ThreadManager.a((Runnable) new ldv(this), (ThreadExcutor.IThreadListener) null, false);
Intent intent = new Intent(this, SplashActivity.class);
intent.addFlags(67108864);
intent.putExtra(UserguideActivity.f85526b, true);
startActivity(intent);
overridePendingTransition(R.anim.f37606name_res_0x7f04004c, 0);
}
@Override
public void onLogout(Constants.LogoutReason logoutReason) {
}
}