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. Phone Number Input Box

¶ PhoneNumberEditText

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

此组件将用户输入作为电话号码字段传给服务端,errorEnabled 属性控制是否显示错误信息。

¶ 示例

drawing

¶ 创建

放置一个 PhoneNumberEditText

<cn.authing.guard.PhoneNumberEditText
    android:id="@+id/phone_number"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginStart="24dp"
    android:layout_marginEnd="24dp"
    app:errorEnabled="true"
    android:background="@drawable/authing_edit_text_layout_background"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toTopOf="parent"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintEnd_toEndOf="parent">
</cn.authing.guard.PhoneNumberEditText>

Previous article: Password Confirmation Input Box Next article: Verification Code Input Box
  • 示例
  • 创建

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.