GenAuth DocsDocuments
Concepts
User Guide
Development Integration
AgentAuth
Metadata
Development Integration
Multi-tenant (beta)
Console Documentation
Multi-tenant Console
Tenant Console
Saas Application Demo
Concepts
User Guide
Development Integration
AgentAuth
Metadata
Development Integration
Multi-tenant (beta)
Console Documentation
Multi-tenant Console
Tenant Console
Saas Application Demo
Old version
  • Single Page Web Application

  • Mobile and Client Applications

    • Android

      • Quick Start
      • Hosted Pages
      • Components

        • Tutorial

        • Basic Components

          • App Logo
          • App Name
          • Account Input Box
          • Password Input Box
          • Password Confirmation Input Box
          • Phone Number Input Box
          • Verification Code Input Box
          • Get SMS Code Button
          • Email Input Box
          • Get Email Code Button
          • Login Button
          • Error Text
          • Login Method Tab
          • Login Container
          • Privacy Agreement
          • Register Button
          • Register Method Tab
          • Register Container
          • Go to Register Button
          • Go to Login Button
          • Go to Forgot Password Button
          • Go to Feedback Button
        • Social Components

      • APIs

      • Social Login

      • Typical Scenarios

      • Private Deployment
      • Version History
    • C#

    • Flutter

    • iOS

    • React Native
  • Standard Web Application

  • Framework Integration

  • Others

  1. Development Integration
  2. /
  3. Mobile and Client Applications
  4. /
  5. Android
  6. /
  7. Components
  8. /
  9. Basic Components

  10. /
  11. Login Container

¶ LoginContainer

Update time: 2025-07-23 07:34:21
Edit

此组件为辅助类型控件。我们将一组登录控件放置到 LoginContainer 里面,并设置 LoginContainer 类型,方便 LoginMethodTab 完成登录方式切换。

¶ 属性

属性名类型说明默认值
typeenum登录方式类型:phoneCode 手机号码+验证码;accountPassword 帐号+密码;emailCode:邮箱+验证码phoneCode

¶ 创建

放置一个 LoginContainer

<cn.authing.guard.LoginContainer
    android:id="@+id/account_login"
    app:type="accountPassword"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginStart="24dp"
    android:layout_marginEnd="24dp"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toTopOf="parent"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintBottom_toBottomOf="parent" >
    <cn.authing.guard.AccountEditText
        android:id="@+id/account"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@null"
        app:leftIconDrawable="@drawable/ic_authing_user"
        app:errorEnabled="true" />
    <cn.authing.guard.PasswordEditText
        android:id="@+id/password"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@null"
        android:layout_marginTop="0dp"
        app:leftIconDrawable="@drawable/ic_authing_password"
        app:clearAllEnabled="false"
        app:errorEnabled="false" />
</cn.authing.guard.LoginContainer>

Previous article: Login Method Tab Next article: Privacy Agreement
  • 属性
  • 创建

User identity management

Integrated third-party login
Customized authentication process

Enterprise internal management

Single sign-on
Multi-factor authentication
Permission management

Developer

Development Documentation
GitHub (opens new window)

Company

official@genauth.ai
16th Floor, Building B, Beichen Century Center, Chaoyang District, Beijing (Total)
Room 406, 4th Floor, Block B, No. 200, Tianfu Fifth Street, High-tech Zone, Chengdu (Branch)

© Beijing Steamory Technology Co., Ltd.