Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9296207
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T21:47:00+00:00 2026-06-18T21:47:00+00:00

In some android classes you can set a custom layout. As far as my

  • 0

In some android classes you can set a custom layout. As far as my understanding goes, these custom layouts need certain android:ids to work.

For example, for the ListActivity a ListView with @android:id/list has to be provided and this is specified in the documentation.

What about other views? For example, I was checking the API Demos and came across

<CheckBoxPreference
                android:key="child_checkbox_preference"
                android:dependency="parent_checkbox_preference"
                android:layout="?android:attr/preferenceLayoutChild"
                android:title="@string/title_child_preference"
                android:summary="@string/summary_child_preference" />

There’s a layout specified for the preference. That layout seems to be preference_child.xml, in which there’s @+android:id/title and @+android:id/summary, which I assume the view will use to provide the title and the summary, but is this documented anywhere?

How do I know what resource IDs I have to use so that everything automagically works?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T21:47:01+00:00Added an answer on June 18, 2026 at 9:47 pm

    AFAIK, there’s no trick to find out but to know the documentation or open the android’s id.xml and look for references.

    P.S.
    Your code demonstrates how to use a specific attribute out of an entire style (the use of “?”), it has nothing to do with ID’s

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I use an Android Library Project, and overwrite certain classes in the
I am new to android and i want to import some classes to my
From my reading of some android forensic articles i understand that sqlite records can
Sometimes I see the description of some classes in Android API aren't quite comprehensive
I have an android project and I want to use some classes from another
I have a (somewhat) simple question about android. I have some classes that contain
I have a Android project with some classes that I would like to compress
I need to check the name of some Spanish locations according to android.location.Address to
I'm working through some android tutorials right now in preparation for a two week
I do some android work on my desktop and I am starting to do

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.