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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T17:17:11+00:00 2026-06-02T17:17:11+00:00

I am using Simple Listview to display Email addresses from Contact List. Its working

  • 0

I am using Simple Listview to display Email addresses from Contact List. Its working fine. Now I want to change the color of text displaying email address on each row as I am displaying background for Listview.

Please give me your suggestions or any code. How can I change color?

This is the code:

<ListView
    android:id="@+id/listSendEmailFinal"
     android:layout_below="@+id/btnAddRecepients"
    android:layout_width="fill_parent"
    android:layout_height="250dip"
    android:layout_marginLeft="5dip" 
     android:layout_marginRight="5dip"
    android:background="@drawable/listview_border"
     android:cacheColorHint="#00000000"
     >
</ListView>

Where listview_border.xml is:

<stroke android:width="1dp" android:color="#83F52C" />
<padding android:left="2dp"
    android:top="2dp"
    android:right="2dp"
    android:bottom="2dp" />
<corners android:radius="10dp" />
<solid android:color="#E6E6FA" />

And this the listview coding:

mainListView.setAdapter(new ArrayAdapter<String>(AddReceiverDialog.this,android.R.layout.simple_list_item_multiple_choice, lv_arr));

mainListView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);
  • 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-02T17:17:13+00:00Added an answer on June 2, 2026 at 5:17 pm

    It seems you are using Simple adapter not custom adapter.

    In this case you can create a theme with text desired text color and apply that theme in manifest file to your ListActivity.

    create a xml file in values folder and paste this code.

    <?xml version="1.0" encoding="utf-8"?>
    <resources>
        <style name="mytheme" parent="@android:style/Theme.NoTitleBar">
           <item name="android:textColor">#2A88AA</item>
        </style>
    </resources>
    

    and use attach this theme with activity like

     <activity
         android:theme="@style/mytheme"
        .
        .
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using .NET 2.0 with standard controls. I want to display a simple list
I want to display my arraylist results by using custom list view. for now
I am using an XML (HttpPost) on ListView to display a list of items
I've got a simple ListView which pulls data from an ObservableCollection and I'm using
friends, i am using following code to display list with radio buttons now i
I'm trying to accomplish what should be a very simple task using the ListView
I'm attempting to do something which should be relatively simple. I'm using a ListView
I am using simple PHP query to fetch rows from the database, there are
I have an Android project that displays results, using a simple listview. What I
I have a ListView than contains a list of image created from web link

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.