AT&T Developer
  • Products
  • Resources
  • Blog
  • Sign In

Technical Library

    Device Technologies
    • Biometrics
    • Device Detection
    • HTML5
    • Mobile Web Fundamentals
    • Mobile Web Standards
    • Multi Core Coding in Dalvik
    • Multi Thread Coding in Android
    • Near Field Communication
    • NFC Forum
    • NFC Use Cases
    • NFC Case Studies
    • NFC Tags
    • GlobalPlatform and NFC
    • User Identification
    • Native Code
    Security and Privacy
    • Application Privacy Guidelines
    • Downloading DRM Content in Android
    • IPv6
    • Likelihood of a Successful Attack
    • Messaging Privacy
    • Mobile Web Security
    • Network Security
    • Security Policy
    • Security at AT&T
    • Types of Security Threats
    • Wireless Application Security
    • Security Policy Enforcement
    UI Elements
    • Slider Controls for Android
    • Check Box for Android
    • Dropdown for Android
    • Image Button for Android
    • Toggle Button for Android
    • Radio Button for Android
    • Segmented Text Toggle Button for Android
    • Static Text Toggle Button for Android
    • Switch for Android
    • Text Fields for Android
    • Getting Started with AT&T UI
    • HTML5 UI Elements
    • HTML5 Checkboxes
    • HTML5 Dropdown
    • HTML5 Image Button
    • HTML5 Image Toggle Button
    • HTML5 Radio Button
    • HTML5 Segmented Toggle Button
    • HTML5 Slider
    • HTML5 Static Text Toggle Button
    • HTML5 Switch Control
    • HTML5 Text Fields
    Network Technologies
    • IP Addresses
    • Long Term Evolution (LTE)
    • Network Timers
    • Wi-Fi
  • Other AT&T Websites
  • Best Practices
    • Hackathon Best Practices
    • Mobile Best Practices
    • Seven Common Errors Around Creating Mobile User Experiences
toggle menu

Check Box for Android™

 

The checkbox UI element is a simple customizable checkbox UI element. The following image shows some examples:

Download UI elements for Android.

 

Creation

 

You need to create a new com.att.widget.Checkbox object and add it to your view or layout.

 

Example

 

Layout

Create a container to hold the checkboxes and then add com.att.widgets.lib.button.CheckBox tags to the layout.

<?xml version="1.0" encoding="UTF-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:att="http://schemas.android.com/apk/res/com.att.checkbox"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
>
<!-- First example of the screenshot -->
<com.att.widgets.lib.button.CheckBox
android:id="@+id/checkbox"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Check Box 1"
/>
<!-- Third example of the screenshot -->
<com.att.widgets.lib.button.CheckBox
android:id="@+id/checkbox3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Check Box 3 disabled"
android:enabled="false"
/>
<!-- Fifth example of the screenshot -->
<com.att.widgets.lib.button.CheckBox
android:id="@+id/checkbox_dash"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Dash Check Box 1"
att:is_dash="true"
/>
</LinearLayout>

 

Configuration

 

There are 2 styles of checkbox (predefined and dashed style ), you can change the predefined style with the is_dash property.

PropertyDefault ValueDescription
is_dash false If this value is set to true, you'll get a look and feel like the 5th thru 8th examples in the screenshot.
If it is not set or set to false, then the 1st thru 4th examples' look and feel will be assigned to your checkbox.

 

 

Text Color

You may change the text color of the checkbox label with the textColor attribute

<com.att.widgets.lib.button.CheckBox
android:id="@+id/checkbox_dash"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Dash Check Box 1"
att:is_dash="true"
android:textColor="#000000"
/>

Android is a trademark of Google Inc.

Back To Top
  • APIS & TOOLS
    • AT&T Video Optimizer
  • APIS & TOOLS
    • Futurist Reports
    • Technical Library
  • SUPPORT
    • Contact Us
    • FAQs
    • Twitter
  • AT&T Developer Program on Github
  • AT&T Developer Program on Facebook
  • AT&T Developer Program on Twitter
AT&T Logo

Terms of Use   Privacy Policy   Your Privacy Choices California Consumer Privacy Act (CCPA) Opt-Out Icon
©2025 AT&T Intellectual Property. All rights reserved

AT&T, the AT&T logo and all other AT&T marks contained herein are trademark of AT&T Intellectual Property and/or AT&T affiliated companies.

14100000
Session Expiring

Your session is about to expire in !

Stay Signed In
Session Expired

Sorry! Your session has expired.

Skip to content