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

  • Home
  • SEARCH
  • 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 7508069
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T22:36:52+00:00 2026-05-29T22:36:52+00:00

I am looking to create a list view which contains a image and 2

  • 0

I am looking to create a list view which contains a image and 2 textviews and one Button.like in this format

      Textview1   
image Textview2                               Button

in the above format i have created another layout .now i want to inflate this layout onto listview.for images say i have 6 images in the drawable folder named as image_1,image_2,image_3,image_4,image_5,image-6.
i am not able to understand from the examples that i have found in google.

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="wrap_content">
<ImageView android:src="@drawable/stub"
    android:layout_height="50sp" android:layout_width="100sp" android:id="@+id/image"
    android:layout_alignParentTop="true" android:layout_alignParentLeft="true"></ImageView>
<Button android:layout_height="wrap_content"
    android:layout_width="wrap_content" android:text="ADD" android:id="@+id/badd"
    android:layout_alignBottom="@+id/textView2"
    android:layout_alignParentRight="true" android:layout_marginRight="15dp"></Button>
<TextView android:layout_height="wrap_content" android:id="@+id/tvname" android:textAppearance="?android:attr/textAppearanceMedium" android:layout_width="wrap_content" android:text="TextView" android:layout_alignParentTop="true" android:layout_centerHorizontal="true"></TextView>
<TextView android:layout_height="wrap_content" android:id="@+id/tvprice" android:layout_width="wrap_content" android:text="TextView" android:layout_alignBottom="@+id/image" android:layout_centerHorizontal="true"></TextView>

Please provide me some android code to achive this.

  • 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-29T22:36:53+00:00Added an answer on May 29, 2026 at 10:36 pm

    What you want to do can be achieved using CustomAdapter. Its is the most common thing which is used in android application.

    Below links can be useful for you.

    http://saigeethamn.blogspot.in/2010/04/custom-listview-android-developer.html

    http://geekswithblogs.net/bosuch/archive/2011/01/31/android—create-a-custom-multi-line-listview-bound-to-an.aspx

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

Sidebar

Related Questions

I've got a list view in my content area. Looking to create a overlay
The situation is, that i need to create table in grid view looking like
I am looking for a convenient way to create a list of lists for
Im looking to create a control that would look like comic baloon. In WPF
I am looking to create a video training program which records videos - via
I need to create a view or a table valued function that returns one
My model is a simple parent/child representation looking like this public class Parent {
Im tryingh to create a list view but im having issues designing it how
On looking for a solution for a two-domain-classes-in-one-view problem, I ran into the scaffolding
I am looking to use this concept in one of my upcoming project. More

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.