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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:37:41+00:00 2026-05-27T21:37:41+00:00

host.addTab(host.newTabSpec(Offers) .setIndicator(Offers, getResources().getDrawable(R.drawable.icon_light)) .setContent(new Intent(this, List_Items.class))); List_Items.class public class List_Items extends Activity{ public void

  • 0
  host.addTab(host.newTabSpec("Offers")
            .setIndicator("Offers",      getResources().getDrawable(R.drawable.icon_light))
            .setContent(new Intent(this, List_Items.class)));

List_Items.class

 public class List_Items extends Activity{

 public void onCreate(Bundle savedInstanceState) {
     super.onCreate(savedInstanceState);


       setContentView(R.layout.list_item);


  } //oncreate

list_item.xml

  <?xml version="1.0" encoding="utf-8"?>

 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
 android:layout_width="fill_parent"
 android:layout_height="fill_parent"
 android:orientation="vertical" >
<TextView android:id="@+id/textItem"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:paddingTop="10dp"
android:background="#00000000"
android:textColor="#ffffffff"
android:textSize="22sp" 
android:text="Find Car"
android:enabled="false"  
>
</TextView>
<ListView android:id="@+id/android:list"
android:layout_width="fill_parent" 
android:layout_height="0dp" android:layout_weight="5"></ListView>


<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="0dp" android:layout_weight="1.2">
    <Button android:layout_height="fill_parent"
     android:layout_width="wrap_content"
     android:background="@drawable/btn_sync"
      android:layout_alignParentRight="true" 
      android:layout_alignParentLeft="true">
      </Button>
</RelativeLayout>
 <RelativeLayout
android:layout_width="fill_parent"
android:layout_height="0dp" android:layout_weight="0.8">

</RelativeLayout>

So, now I want to change the public class List_Items extends Activity to extends ListActivity because I don’t see the the scrolling action on output. Once I changed to extends ListAcitivity the program crashed. what’s the reason?

  • 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-27T21:37:42+00:00Added an answer on May 27, 2026 at 9:37 pm

    From the android documentation:

    “ListActivity has a default layout that consists of a single, full-screen list in the center of the screen. However, if you desire, you can customize the screen layout by setting your own view layout with setContentView() in onCreate(). To do this, your own view MUST contain a ListView object with the id “@android:id/list” (or list if it’s in code)”

    You don’t have an item with id “list” in your layout.

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

Sidebar

Related Questions

on MainActivity.java I have host.addTab(host.newTabSpec(Map) .setIndicator(Map, getResources().getDrawable(R.drawable.icon_user)) .setContent(new Intent(this, Map.class))); On Map.Java public class
Server: Host h = new Host(); h.Name = JARR!!; TcpChannel channel = new TcpChannel(8080);
My host only allows medium trusted web applications. I am getting this error: Exception
i host my web site in shared hosting server, this server use the default
models/host.rb class Host < ActiveRecord::Base has_many :report, :dependent => :delete_all end models/report.rb class Report
I have a problem with This code in C# : main class { var
Host : has a function which is : IsOneWay=False this function when called -
We host a svn repository for multiple projects and business files on apache. This
I am passing a parameter to a new activity using tab host in android
Virtual host not working in the NETWORK I just followed this site tutorial, Virtual

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.