Skip to content

Instantly share code, notes, and snippets.

@nurcinozer
Created January 27, 2022 10:40
Show Gist options
  • Save nurcinozer/9343667030011b541e04891e7a196e62 to your computer and use it in GitHub Desktop.
Save nurcinozer/9343667030011b541e04891e7a196e62 to your computer and use it in GitHub Desktop.
P2-Movie-App-Base-Project/main/app/src/main/res/layout/activity_login.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
tools:context=".ui.LoginActivity"
android:background="@color/white"
android:layout_margin="10dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_gravity="center">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:padding="18dp"
android:text="Please sign in with Huawei ID" />
<com.huawei.hms.support.hwid.ui.HuaweiIdAuthButton
android:id="@+id/challenge_silent_signin"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
app:hwid_button_theme="hwid_button_theme_full_title"
app:hwid_color_policy="hwid_color_policy_red"
app:hwid_corner_radius="hwid_corner_radius_large"
android:layout_marginTop="50dp"
/>
</LinearLayout>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment