需求:修改登录页面

This commit is contained in:
18401019693
2022-12-15 15:47:39 +08:00
parent 862ec98fa3
commit 325e57d1d5
8 changed files with 100 additions and 33 deletions

View File

@@ -111,9 +111,10 @@ import java.util.TimerTask;
public class EntryActivity extends AppCompatActivity {
private VideoView video_view;
private ImageView btn_phone, btn_line, btn_google, btn_twitter;
private ImageView btn_phone, btn_line, btn_twitter;
private TextView btn_tip, btn_tip1, tv_customer;
private TwitterLoginButton tt_login_button;
private LinearLayout btn_google;
public static Activity activity;
private static String mLoginType = Constants.MOB_PHONE;//登录方式
public String mPromoCode = "";//推广码

View File

@@ -58,46 +58,80 @@
</LinearLayout>
</LinearLayout>
<RelativeLayout
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginBottom="21dp"
android:orientation="vertical">
<com.twitter.sdk.android.core.identity.TwitterLoginButton
android:id="@+id/tt_login_button"
android:layout_width="match_parent"
android:layout_height="54dp"
android:layout_marginLeft="42dp"
android:layout_marginRight="42dp"
android:visibility="invisible" />
android:layout_marginBottom="21dp">
<LinearLayout
android:id="@+id/lt_btn_twitter"
android:id="@+id/btn_google"
android:layout_width="match_parent"
android:layout_height="54dp"
android:layout_marginLeft="42dp"
android:layout_marginRight="42dp"
android:background="@drawable/background_32aae0"
android:background="@drawable/background_fff_d20"
android:gravity="center|left">
<ImageView
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_width="45dp"
android:layout_height="45dp"
android:layout_gravity="center"
android:layout_marginLeft="54dp"
android:src="@mipmap/icon_twitter" />
android:src="@mipmap/login_google" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="21dp"
android:text="@string/user_login_twitter"
android:textColor="@color/white"
android:layout_marginLeft="6dp"
android:text="@string/user_login_google"
android:textColor="@color/black1"
android:textSize="14sp" />
</LinearLayout>
</RelativeLayout>
</LinearLayout>
<!-- <RelativeLayout-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_gravity="center"-->
<!-- android:layout_marginBottom="21dp"-->
<!-- android:orientation="vertical">-->
<!-- <com.twitter.sdk.android.core.identity.TwitterLoginButton-->
<!-- android:id="@+id/tt_login_button"-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="54dp"-->
<!-- android:layout_marginLeft="42dp"-->
<!-- android:layout_marginRight="42dp"-->
<!-- android:visibility="invisible" />-->
<!-- <LinearLayout-->
<!-- android:id="@+id/lt_btn_twitter"-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="54dp"-->
<!-- android:layout_marginLeft="42dp"-->
<!-- android:layout_marginRight="42dp"-->
<!-- android:background="@drawable/background_32aae0"-->
<!-- android:gravity="center|left">-->
<!-- <ImageView-->
<!-- android:layout_width="30dp"-->
<!-- android:layout_height="30dp"-->
<!-- android:layout_gravity="center"-->
<!-- android:layout_marginLeft="54dp"-->
<!-- android:src="@mipmap/icon_twitter" />-->
<!-- <TextView-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_marginLeft="21dp"-->
<!-- android:text="@string/user_login_twitter"-->
<!-- android:textColor="@color/white"-->
<!-- android:textSize="14sp" />-->
<!-- </LinearLayout>-->
<!-- </RelativeLayout>-->
<LinearLayout
android:id="@+id/lt_login_other"
@@ -160,13 +194,33 @@
android:src="@mipmap/login_line"
android:visibility="visible" />
<ImageView
android:id="@+id/btn_google"
android:layout_width="57dp"
android:layout_height="57dp"
android:layout_gravity="center"
android:layout_weight="1"
android:src="@mipmap/login_google" />
<RelativeLayout
android:layout_width="@dimen/sight_record_icon_padding"
android:layout_height="wrap_content"
android:layout_weight="1">
<com.twitter.sdk.android.core.identity.TwitterLoginButton
android:id="@+id/tt_login_button"
android:layout_width="wrap_content"
android:layout_height="54dp"
android:visibility="invisible" />
<LinearLayout
android:id="@+id/lt_btn_twitter"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:layout_width="57dp"
android:layout_height="57dp"
android:layout_gravity="center"
android:layout_weight="1"
android:src="@mipmap/login_twitter"
android:visibility="visible" />
</LinearLayout>
</RelativeLayout>
</LinearLayout>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 8.4 KiB