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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T03:56:52+00:00 2026-06-12T03:56:52+00:00

I have created a custom xml file that contains some elements that make up

  • 0

I have created a custom xml file that contains some elements that make up the rows in a ListView. I’ve set the preview of the ListView to be this xml file. I can’t figure out how to get rid of the default “Item 1”, “Item 2”, “Item 3” … however.

Does anyone have an idea on what could be causing this?

Here’s the code as well as a screenshot:

my_custom_list.xml

 <?xml version="1.0" encoding="utf-8"?>
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
         android:orientation="vertical"
         android:layout_width="match_parent"
         android:layout_height="match_parent"
         android:paddingLeft="8dp"
         android:paddingRight="8dp">


     <ListView android:id="@android:id/list"
               android:layout_width="match_parent"
               android:layout_height="match_parent"
               android:layout_weight="1"
               android:drawSelectorOnTop="false">
         <!-- Preview: listitem=@layout/my_custom_list_row -->
     </ListView>
 </LinearLayout>

my_custom_list_row.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="wrap_content"
    android:padding="6dip"
    android:orientation="horizontal">

    <CheckBox
        android:id="@+id/icon"
        android:layout_width="wrap_content"
        android:layout_height="fill_parent"
        android:layout_marginRight="6dip"
         />

    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:padding="6dip"
        android:orientation="vertical" >

        <TextView  
            android:id="@+id/secondLine"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content" 
            android:singleLine="true"
            android:ellipsize="marquee"
            android:text="Senders Name"
            android:textStyle="bold" />

        <TextView
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"   
            android:gravity="center_vertical"
            android:text="Subject"

            android:textStyle="italic" />

        <TextView
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:lines="3"
            android:gravity="center_vertical"
            android:text="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla viverra mattis nulla nec sollicitudin." />

      </LinearLayout>

</LinearLayout>

Screenshot of list

  • 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-12T03:56:54+00:00Added an answer on June 12, 2026 at 3:56 am

    No, it does not seem possible or this is a bug in the ADT plugin that I keep running into. I get by by just previewing the row to make sure it looks ok. If you need to render UI images you can use something like Pencil and import Android Stencils to it.

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

Sidebar

Related Questions

I have created a custom listview that is populated using a row.xml file. Each
friends, i have created custom title bar using following titlebar.xml file with code <?xml
I have created some xml layouts. Now I am creating a custom layout (in
I have created a custom xml file which I use as a config for
I have created a custom method that will return unique items, together with the
I have created a custom view with a XIB file and are loading the
I have created a custom module that creates a custom Database table. I have
I have a custom UserControl that I created as a navigation menu that parses
I have created a Custom List Template and wrote the Schema.xml,feature to deploy it,Installed
I have created one gridview and use custom adapter for that. I added two

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.