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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T14:21:19+00:00 2026-05-22T14:21:19+00:00

That will be listview row. Orange background is btn_default_small_selected: android:background=@drawable/btn_default_small_selected

  • 0

enter image description here

That will be listview row.
Orange background is btn_default_small_selected:

android:background="@drawable/btn_default_small_selected" 
  • 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-22T14:21:19+00:00Added an answer on May 22, 2026 at 2:21 pm

    Something like this should get you close. Basically, you’ll define the orange box first. You just need a NinePatch for the orange gradient to set as the TextView background. Give it some margins (to keep the orange away from the edges), and some padding (to keep the text away from the edge of the orange box). Then add the TextView for “Palace”, and align it to the left, and set the right edge “toLeftOf” the first TextView.

    <RelativeLayout
        xmlns:android="http://schemas.android.com/apk/res/android
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:background="@drawable/gray_background_ninepatch"
        >
        <TextView
            android:id="@+id/timetext"
            android:layout_alignParentRight="true"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_margin="5dp"
            android:padding="8dp"
            android:background="@drawable/orange_background_ninepatch"
            android:text="1:25 - 4:50"
            />
        <TextView
            android:id="@+id/nametext"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_toLeftOf="@id/timetext"
            android:layout_alignParentLeft="true"
            android:text="Palace"
            />
    </RelativeLayout>
    

    EDIT:

    <?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="50dp"
        android:gravity="center"
        android:background="@drawable/gray_background_ninepatch"
        >
        <TextView
            android:id="@+id/timetext"
            android:layout_alignParentRight="true"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_margin="5dp"
            android:padding="8dp"
            android:background="@drawable/orange_background_ninepatch"
            android:text="1:25 - 4:50"
            android:textStyle="bold"
            android:textColor="@android:color/white"
            />
        <ImageView
            android:id="@+id/imageview"
            android:layout_width="40dp"
            android:layout_height="40dp"
            android:layout_margin="5dp"
            android:alignParentLeft="true"
            android:src="@drawable/icon"
            android:scaleType="fitCenter"
            />
        <TextView
            android:id="@+id/nametext"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:gravity="center_vertical"
            android:layout_toLeftOf="@id/timetext"
            android:layout_toRightOf="@id/imageview"
            android:text="Palace"
            android:textColor="@android:color/white"
            />
    </RelativeLayout>
    

    enter image description here

    NinePatch:
    enter image description here

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

Sidebar

Related Questions

I'm trying to have a ListView that will display each row in a given
I'd like to implement a ListView that will have a list of SelectedItems as
I'm using the new ASP.Net ListView control to list database items that will be
I'm trying to make a custom listview that will hold views of custom objects,
We will develop a web site that will have some free services and we
I need a Regex that will match a java method declaration. I have come
I have a CollapsiblePanelExtender that will not collapse. I have collapsed set to true
Is there a tool that will find for me all the css classes that
Are there any tools that will spider an asp.net website and create a static
I want an expression that will fail when it encounters words such as boon.ini

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.