This commit is contained in:
Martin
2024-10-07 09:55:48 +08:00
parent 380381c3fe
commit 0445ab4132
29 changed files with 92 additions and 3340 deletions

View File

@@ -118,10 +118,10 @@ import java.util.TimerTask;
public class EntryActivity extends AppCompatActivity {
private VideoView video_view;
private ImageView btn_phone, btn_line, btn_twitter;
private ImageView btn_line, btn_twitter;
private TextView btn_tip, btn_tip1, tv_customer;
private TwitterLoginButton tt_login_button;
private LinearLayout btn_google, googleLayout;
private LinearLayout btn_google, googleLayout,btn_phone;
public static Activity activity;
private static String mLoginType = Constants.MOB_PHONE;//登录方式
public String mPromoCode = "", UserID = "";//推广码
@@ -221,19 +221,19 @@ public class EntryActivity extends AppCompatActivity {
}
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_tip1 = findViewById(R.id.btn_tip1);
img_view = findViewById(R.id.img_view);
btn_google = findViewById(R.id.btn_google);
btn_twitter = findViewById(R.id.btn_twitter);
tt_login_button = findViewById(R.id.tt_login_button);
//btn_twitter = findViewById(R.id.btn_twitter);
//tt_login_button = findViewById(R.id.tt_login_button);
tv_customer = findViewById(R.id.tv_customer);
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);
@@ -334,7 +334,7 @@ public class EntryActivity extends AppCompatActivity {
}
});
lt_btn_twitter.setOnClickListener(new View.OnClickListener() {
/*lt_btn_twitter.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if (isBtnClick()) {
@@ -342,9 +342,9 @@ public class EntryActivity extends AppCompatActivity {
}
verfiy(3);
}
});
});*/
tt_login_button.setCallback(new Callback<TwitterSession>() {
/*tt_login_button.setCallback(new Callback<TwitterSession>() {
@Override
public void success(Result<TwitterSession> result) {
// Do something with result, which provides a TwitterSession for making API calls
@@ -373,8 +373,8 @@ public class EntryActivity extends AppCompatActivity {
Log.i("Log", "TwitterException = " + exception);
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
public void onClick(View view) {
if (isBtnClick()) {
@@ -382,7 +382,7 @@ public class EntryActivity extends AppCompatActivity {
}
verfiy(4);
}
});
});*/
getUrl();
@@ -441,10 +441,10 @@ public class EntryActivity extends AppCompatActivity {
} else if (loginType == 4) {
try {
// 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
.build());
startActivityForResult(loginIntent, 1001);
startActivityForResult(loginIntent, 1001);*/
} catch (Exception e) {
Log.e("ERROR", e.toString());
ToastUtil.show(getResources().getString(R.string.user_login_outtime));

View File

@@ -338,7 +338,7 @@ public class MainHttpUtil {
public static void getSettingList(HttpCallback callback) {
HttpClient.getInstance().get("User.getPerSetting", MainHttpConsts.GET_SETTING_LIST)
.params("version", VersionUtil.getVersion())
.params("package_name","panduo")
.params("package_name","feelWe")
.execute(callback);
}

View File

@@ -4,12 +4,14 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
tools:context=".activity.EntryActivity">
<com.yunbao.main.views.CustomVideoView
android:id="@+id/video_view"
android:layout_width="match_parent"
android:visibility="gone"
android:layout_height="match_parent"
android:layout_gravity="center" />
@@ -34,25 +36,26 @@
android:layout_marginBottom="21dp">
<LinearLayout
android:visibility="gone"
android:id="@+id/lt_btn_facebook"
android:layout_width="match_parent"
android:layout_height="54dp"
android:layout_marginLeft="42dp"
android:layout_marginRight="42dp"
android:layout_height="56dp"
android:layout_marginLeft="48dp"
android:layout_marginRight="48dp"
android:background="@drawable/background_227bef"
android:gravity="center|left">
android:gravity="center_vertical">
<ImageView
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_gravity="center"
android:layout_marginLeft="54dp"
android:layout_marginLeft="20dp"
android:src="@mipmap/icon_facebook" />
<TextView
android:layout_width="wrap_content"
android:layout_marginStart="30dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="21dp"
android:text="@string/user_login_facebook"
android:textColor="@color/white"
android:textSize="14sp" />
@@ -69,29 +72,62 @@
<LinearLayout
android:id="@+id/btn_google"
android:layout_width="match_parent"
android:layout_height="54dp"
android:layout_marginLeft="42dp"
android:layout_marginRight="42dp"
android:layout_height="56dp"
android:layout_marginLeft="48dp"
android:layout_marginRight="48dp"
android:background="@drawable/background_fff_d20"
android:gravity="center|left">
android:gravity="center_vertical">
<ImageView
android:layout_width="45dp"
android:layout_height="45dp"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_gravity="center"
android:layout_marginLeft="54dp"
android:layout_marginLeft="20dp"
android:src="@mipmap/login_google" />
<TextView
android:layout_width="wrap_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="6dp"
android:layout_marginLeft="35dp"
android:text="@string/user_login_google"
android:textColor="@color/black1"
android:textSize="14sp" />
</LinearLayout>
</LinearLayout>
<LinearLayout
android:id="@+id/phonelayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginBottom="21dp">
<LinearLayout
android:id="@+id/btn_phone"
android:layout_width="match_parent"
android:layout_height="54dp"
android:layout_marginLeft="48dp"
android:layout_marginRight="48dp"
android:background="@drawable/background_fff_d20"
android:gravity="center_vertical">
<ImageView
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_gravity="center"
android:layout_marginLeft="20dp"
android:src="@mipmap/entry_phone" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/login_use_phone"
android:layout_marginLeft="35dp"
android:textColor="@color/black1"
android:textSize="14sp" />
</LinearLayout>
</LinearLayout>
<!-- <RelativeLayout-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="wrap_content"-->
@@ -141,7 +177,7 @@
android:layout_marginRight="25dp"
android:orientation="vertical">
<LinearLayout
<!--<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="12dp"
@@ -221,7 +257,7 @@
</RelativeLayout>
</LinearLayout>
</LinearLayout>-->
<LinearLayout
@@ -246,14 +282,14 @@
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginTop="22dp"
android:layout_marginBottom="22dp"
android:layout_marginBottom="40dp"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:text="@string/next_step_is_consent"
android:textColor="#ffb1b1b1"
android:textColor="#FF999999"
android:textSize="10sp" />
@@ -263,7 +299,7 @@
android:layout_height="match_parent"
android:layout_marginLeft="1dp"
android:text="@string/user_protocol2"
android:textColor="#ffb1b1b1"
android:textColor="#FF000000"
android:textSize="10sp" />
<TextView
@@ -271,7 +307,7 @@
android:layout_height="match_parent"
android:layout_marginLeft="1dp"
android:text="@string/and"
android:textColor="#ffb1b1b1"
android:textColor="#FF999999"
android:textSize="10sp" />
<TextView
@@ -280,7 +316,7 @@
android:layout_height="match_parent"
android:layout_marginLeft="1dp"
android:text="@string/privacy_terms"
android:textColor="#ffb1b1b1"
android:textColor="#FF000000"
android:textSize="10sp" />
</LinearLayout>
@@ -292,8 +328,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="80dp"
android:visibility="gone"
android:layout_marginTop="125dp"
android:src="@mipmap/white_logo" />
<androidx.constraintlayout.widget.ConstraintLayout
@@ -301,7 +336,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone"
tools:visibility="visible">
tools:visibility="gone">
<View
android:id="@+id/view2"

Binary file not shown.

After

Width:  |  Height:  |  Size: 530 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.7 KiB

After

Width:  |  Height:  |  Size: 74 KiB

View File

@@ -156,4 +156,5 @@
<string name="live_prank_gift_tips">You can add up to 6, and it is recommended to add 4.</string>
<string name="live_prank_dialog_gift_type_achieved">Quantity achieved</string>
<string name="login_use_phone">Sign in with Phone Number</string>
</resources>

View File

@@ -106,5 +106,5 @@
<string name="activity_feedback_edit_img_select">從相冊選取</string>
<string name="activity_feedback_edit_img_camera">拍照</string>
<string name="activity_battle_pass_all_get">一鍵領取</string>
<string name="login_use_phone">使用手機號登錄</string>
</resources>

View File

@@ -107,4 +107,5 @@
<string name="activity_battle_pass_all_get">Receive all</string>
<string name="live_room_sud_hint_join">Join</string>
<string name="live_dialog_top_guardian_tasks">Guard tasks</string>
<string name="login_use_phone">Sign in with Phone Number</string>
</resources>