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 712499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T04:51:18+00:00 2026-05-14T04:51:18+00:00

Good advice from CommonWare and Steve H but it’s not as easy to me

  • 0

Good advice from CommonWare and Steve H but it’s not as easy to me as I first thought.

Based on their advice I’m trying to copy android.R.layout to my project to ensure consistency. How do you do this?

I looked in Eclipse’s Package Explorer and under
Android 1.5>android.jar>android>R.class>R>layout and find R$layout.class.

Do I copy the code out of there into my own class? From my very limited knowledge of Java, the following code doesn’t make much sense:

public static final class android.R$layout {

  // Field descriptor #8 I
public static final int activity_list_item = 17367040;

// Field descriptor #8 I
public static final int browser_link_context_header = 17367054;

// Field descriptor #8 I
public static final int expandable_list_content = 17367041;

// Field descriptor #8 I
public static final int preference_category = 17367042;

// Field descriptor #8 I
public static final int select_dialog_item = 17367057;

// Field descriptor #8 I
public static final int select_dialog_multichoice = 17367059;

// Field descriptor #8 I
public static final int select_dialog_singlechoice = 17367058;

// Field descriptor #8 I
public static final int simple_dropdown_item_1line = 17367050;

// Field descriptor #8 I
public static final int simple_expandable_list_item_1 = 17367046;

// Field descriptor #8 I
public static final int simple_expandable_list_item_2 = 17367047;

// Field descriptor #8 I
public static final int simple_gallery_item = 17367051;

// Field descriptor #8 I
public static final int simple_list_item_1 = 17367043;

// Field descriptor #8 I
public static final int simple_list_item_2 = 17367044;

// Field descriptor #8 I
public static final int simple_list_item_checked = 17367045;

// Field descriptor #8 I
public static final int simple_list_item_multiple_choice = 17367056;

// Field descriptor #8 I
public static final int simple_list_item_single_choice = 17367055;

// Field descriptor #8 I
public static final int simple_spinner_dropdown_item = 17367049;

// Field descriptor #8 I
public static final int simple_spinner_item = 17367048;

// Field descriptor #8 I
public static final int test_list_item = 17367052;

// Field descriptor #8 I
public static final int two_line_list_item = 17367053;

// Method descriptor #50 ()V
// Stack: 3, Locals: 1
public R$layout();
 0  aload_0 [this]
 1  invokespecial java.lang.Object() [1]
 4  new java.lang.RuntimeException [2]
 7  dup
 8  ldc <String "Stub!"> [3]
10  invokespecial java.lang.RuntimeException(java.lang.String) [4]
13  athrow
  Line numbers:
    [pc: 0, line: 899]
  Local variable table:
    [pc: 0, pc: 14] local: this index: 0 type: android.R.layout

Inner classes:
 [inner class info: #5 android/R$layout, outer class info: #64 android/R
  inner name: #55 layout, accessflags: 25 public static final]
 }
  • 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-05-14T04:51:18+00:00Added an answer on May 14, 2026 at 4:51 am

    You should copy the layout package/folder with the XML file contents.

    Android 1.5/android.jar/res/layout
    

    R.class is automatically generated for your layout files.

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

Sidebar

Related Questions

I need to access a web service from a J2ME application. Any good advice
I'm building tests for a suite of enterprise-ware. The good advice I had from
Need a big help from you. I need an advice from all you good
A MySQL table has only 5 fields but hundreds of rows. With good advice
I'm looking for some advice from the community about constructing an online store based
Taking advice from this post , I purchased a copy of 'The C Programming
I found good advice how to change system time here . It's ok... But
I am striving to follow Douglas Crockford's advice from JavaScript: The Good Parts and
Does anyone have any good advice or experience on how to create an engine
Can you advice me good free ASP.NET engine for E-commerce?

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.