Wednesday 6 March 2013

Android ListView with Alternate list item background and hover.

Now i will show how to make a ListView with Alternate color i.e for odd position having different background and for even position of  List item having different background as well as different hover color.

Screenshots:-
























These are the following steps to do show.

Step1.1) Use two selector for odd and even postion list item

artists_list_backgroundcolor.xml

<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
 <item
 android:state_selected="false"
    android:state_pressed="false"
    android:drawable="@color/grey" />
<item android:state_pressed="true"
    android:drawable="@color/itemselected" />
<item android:state_selected="true"
 android:state_pressed="false"
    android:drawable="@color/itemselected" />
</selector>


Step 1.2)
artists_list_background_alternate.xml

<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
 <item
 android:state_selected="false"
    android:state_pressed="false"
    android:drawable="@color/sign_out_color" />
<item android:state_pressed="true"
    android:drawable="@color/login_hover" />
<item android:state_selected="true"
 android:state_pressed="false"
    android:drawable="@color/login_hover" />
</selector>

Step2)
colors.xml

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

    <color name="survey_toplist_item">#EFEDEC</color>
    <color name="survey_alternate_color">#EBE7E6</color>
    <color name="grey">#ffffff</color>
    <color name="itemselected">#EDEDED</color>
    <color name="login_hover">#E5F5FA</color>
    <color name="sign_out_color">#e84040</color>

</resources>

Step 3.1)
activity_main.xml

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity" >

    <ListView
        android:id="@+id/list"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:cacheColorHint="#00000000"
        android:divider="#b5b5b5"
        android:dividerHeight="1dp" />

</RelativeLayout>

Step3.2) res/layout/listitem,xml

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

    <TextView
        android:id="@+id/heading"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="left"
        android:padding="15dp" />

</LinearLayout>

Step4)
MainActivity.java

package com.amit.listalternate;

import java.util.ArrayList;
import java.util.List;

import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.widget.ListView;

public class MainActivity extends Activity {
    private List<String> data;
    ListAdapter adapter;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        data = new ArrayList<String>();
        fillData();
        adapter = new ListAdapter(this, data);
        ListView lvMain = (ListView) findViewById(R.id.list);
        lvMain.setAdapter(adapter);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;
    }

    void fillData() {
        for (int i = 1; i <= 20; i++) {
            data.add("Heading" + i);
        }
    }

}

Step 5) Adapter
ListAdapter.java



package com.amit.listalternate;

import java.util.List;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;

public class ListAdapter extends BaseAdapter{
    Context ctx;
    LayoutInflater lInflater;
    List<String> data;

    ListAdapter(Context context, List<String> data) {
        ctx = context;
        this.data = data;
        lInflater = (LayoutInflater) ctx
                .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
    }

    @Override
    public int getCount() {
        return data.size();
    }

    @Override
    public Object getItem(int position) {
        return data.get(position);
    }

    @Override
    public long getItemId(int position) {
        return position;
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        View view = convertView;
        if (view == null) {
            view = lInflater.inflate(R.layout.listitem, parent, false);
        }

        if (position % 2 == 0) {
            view.setBackgroundResource(R.drawable.artists_list_backgroundcolor);
        } else {
            view.setBackgroundResource(R.drawable.artists_list_background_alternate);
        }

        ((TextView) view.findViewById(R.id.heading)).setText(data.get(position));
       
        return view;
    }
}

Download full source code click ListViewWithAlternateColor









358 comments:

  1. At Webnet, we have impact of a specialist and acclaimed custom android apps development association really. Today, we are satisfied to say that we have shockingly particular satisfied customers who trust us with their work understanding that all they will get from us is yet the best quality android applications.

    ReplyDelete
  2. Hello Nice article. Really helpful.
    My question is can apply 3 different colors instead of two colors in listview alternatively?

    ReplyDelete
  3. Nice source for us and thanks for sharing this code in this blog and i bookmark this blog for future use.

    Enterprise Android apps development

    ReplyDelete
  4. I never knew that the process of developing an android application was very easy until I landed on this page which has explained the step by step procedure of developing the android application. I am very excited to learn this process and I will be teaching it to clients who are majorly students accessing our Personal Statement Writing Help.

    ReplyDelete
  5. Your good knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this.
    full stack developer training in chennai



    ReplyDelete
  6. Inspiring writings and I greatly admired what you have to say , I hope you continue to provide new ideas for us all and greetings success always for you..Keep update more information.
    digital marketing training in online

    ReplyDelete
  7. A universal message I suppose, not giving up is the formula for success I think. Some things take longer than others to accomplish, so people must understand that they should have their eyes on the goal, and that should keep them motivated to see it out til the end.
    AWS Training in chennai

    AWS Training in bangalore

    ReplyDelete
  8. A universal message I suppose, not giving up is the formula for success I think. Some things take longer than others to accomplish, so people must understand that they should have their eyes on the goal, and that should keep them motivated to see it out til the end.
    java training in annanagar | java training in chennai


    java training in marathahalli | java training in btm layout

    ReplyDelete
  9. Thanks a lot for sharing. Keep blogging

    Karina

    ReplyDelete
  10. I was recommended this web site by means of my cousin. I am now not certain whether this post is written through him as nobody else recognise such precise about my difficulty. You're amazing! Thank you!
    angularjs-Training in pune

    angularjs-Training in chennai

    angularjs Training in chennai

    angularjs-Training in tambaram

    angularjs-Training in sholinganallur

    ReplyDelete
  11. I am really enjoying reading your well-written articles. It looks like you spend a lot of effort and time on your blog. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work.
    Hadoop course in Marathahalli Bangalore
    DevOps course in Marathahalli Bangalore
    Blockchain course in Marathahalli Bangalore
    Python course in Marathahalli Bangalore
    Power Bi course in Marathahalli Bangalore

    ReplyDelete
  12. Nice Blog, Thank you so much sharing with us. Visit for
    Bulletproof Hosting

    ReplyDelete
  13. Excellant post!!!. The strategy you have posted on this technology helped me to get into the next level and had lot of information in it.
    python training in pune | python training institute in chennai | python training in Bangalore

    ReplyDelete

  14. When I initially commented, I clicked the “Notify me when new comments are added” checkbox and now each time a comment is added I get several emails with the same comment. Is there any way you can remove people from that service? Thanks.

    Amazon Web Services Training in Pune | Best AWS Training in Pune


    AWS Training in Pune | Best Amazon Web Services Training in Pune

    ReplyDelete
  15. Hey, Wow all the posts are very informative for the people who visit this site. Good work! We also have a Website. Please feel free to visit our site. Thank you for sharing.Well written article Thank You Sharing with Us project management courses in chennai | pmp training class in chennai | pmp training fee | project management training certification | project management training in chennai

    ReplyDelete
  16. Hello! This is my first visit to When I initially commented, I clicked the “Notify me when new comments are added” checkbox and now each time a comment is added I get several your blog!
    iosh course in chennai

    ReplyDelete
  17. It was Informative Post,and Knowledgable also.Good Ones

    Article submission sites
    Technology

    ReplyDelete
  18. The site was so nice, I found out about a lot of great things. I like the way you make your blog posts. Keep up the good work and may you gain success in the long run.

    Microsoft Azure online training
    Selenium online training
    Java online training
    Java Script online training
    Share Point online training

    ReplyDelete
  19. Thank you for an interesting blog well explained.Its very helpful for me.


    One Plus One Service Centre in Chennai


    ReplyDelete
  20. Fantastic blog! Thanks for sharing very interesting post, I appreciate to blogger for amazing post.
    mobile app development services in usa

    ReplyDelete
  21. Attend The Python training in bangalore From ExcelR. Practical Python training in bangalore Sessions With Assured Placement Support From Experienced Faculty. ExcelR Offers The Python training in bangalore.
    python training in bangalore

    ReplyDelete
  22. Really impressive post. I read it whole and going to share it with my social circules. I enjoyed your article and planning to rewrite it on my own blog.
    big data course

    ReplyDelete
  23. I am really thankful for posting such useful information. It really made me understand lot of important concepts in the topic. Keep up the good work!
    Oracle Training in Chennai | Oracle Course in Chennai

    ReplyDelete
  24. Thanks for the good words! Really appreciated.Nice explanation, thanks for sharing, it is very informative. Keep blogging!!

    Machine Learning Course

    ReplyDelete
  25. Visit for Python training in Bangalore:- Python training in Bangalore

    ReplyDelete
  26. Your good knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this.
    Best PHP Training Institute in Chennai|PHP Course in chennai

    Best .Net Training Institute in Chennai
    Oracle DBA Training in Chennai
    RPA Training in Chennai
    UIpath Training in Chennai

    ReplyDelete
  27. Thank you for providing this kind of useful information,I am searching for this kind of useful information; it is very useful to me and some other looking for it. It is very helpful to who are searching python Training.python training in bangalore

    ReplyDelete
  28. I have to voice my passion for your kindness giving support to those people that should have guidance on this important matter.
    AI training chennai | AI training class chennai
    Cloud computing training | cloud computing class chennai



    ReplyDelete
  29. I really enjoy reading this article. Hope that you would do great in upcoming time.A perfect post. Thanks for sharing.aws training in bangalore

    ReplyDelete
  30. hey this one is really a nice article and it's going to help the audience a lot. we are one of the best company in Greater Noida providing Android app development services. Visit our website for more details
    https://www.softgains.com/android-application-development-company-delhi-ncr.php

    ReplyDelete
  31. Thanks for Sharing This Article.It is very so much valuable content. I hope these Commenting lists will help to my website
    best workday online training
    workday studio online training
    top workday studio online training

    ReplyDelete
  32. Thanks for Sharing This Article.It is very so much valuable content. I hope these Commenting lists will help to my website
    top workday online training

    ReplyDelete

  33. Truly, this article is really one of the very best in the history of articles. I am a antique ’Article’ collector and I sometimes read some new articles if I find them interesting. And I found this one pretty fascinating and it should go into my collection. Very good work!
    ExcelR data science training in bangalore

    ReplyDelete
  34. Best data science institute in bangalore wherein we have classroom and online training. Along with Classroom training, we also conduct online training using state-of-the-art technologies to ensure the wonderful experience of online interactive learning. Best data science institute in bangalore

    ReplyDelete
  35. This comment has been removed by the author.

    ReplyDelete
  36. This is a wonderful article, Given so much info in it, These type of articles keeps the users interest in the website, and keep on sharing more ... good luck.
    Digital marketing course mumbai

    ReplyDelete
  37. Pretty article! I found some useful information in your blog, it was awesome to read, thanks for sharing this great content to my vision, keep sharing. sharepoint developer training.

    ReplyDelete
  38. You completed a number of nice points there. I did a search on the issue and found ExcelR Data Analytics Courses In Pune nearly all people will have the same opinion with your blog.

    ReplyDelete
  39. I have to search sites with relevant information on given topic ExcelR Machine Learning Courses In Pune and provide them to teacher our opinion and the article.

    ReplyDelete

  40. Wow. That is so elegant and logical and clearly explained. Brilliantly goes through what could be a complex process and makes it obvious.I want to refer about the tableau training in hyderabad ameerpet and online tableau training

    ReplyDelete
  41. Really awesome blog!!! I finally found great post here.I really enjoyed reading this article. It's really a nice experience to read your post. Thanks for sharing your innovative ideas. Excellent work! I will get back here.

    Data Science Course
    Data Science Course in Marathahalli

    ReplyDelete
  42. This was really one of my favorite website. Please keep on posting. ExcelR Courses In Digital Marketing In Pune

    ReplyDelete
  43. This comment has been removed by the author.

    ReplyDelete
  44. Awesome blog, I enjoyed reading your articles. This is truly a great read for me. I have bookmarked it and I am looking forward to reading new articles. Keep up the
    good work!.business analytics certification

    ReplyDelete
  45. Just saying thanks will not just be sufficient, for the fantasti c lucidity in your writing. I will instantly grab your rss feed to stay informed of any updates.
    data analytics courses

    ReplyDelete
  46. Nice article. For offshore hiring services visit:
    livevictoria

    ReplyDelete
  47. Excellent! I love to post a comment that "The content of your post is awesome" Great work!

    digital marketing course mumbai

    ReplyDelete
  48. Your artwork is very magical and full of whimsy. You definitely caught the Tim Burton look. It's surreal but also dreamlike. Beautiful work
    Home elevators
    Home elevators
    Home elevators Melbourne
    Home lifts

    ReplyDelete

  49. Here is the list of best free and paid Windows 10 apps that you should definitely use,
    especially if you are using Windows 10 laptop or Apps for PC.

    ReplyDelete
  50. More Info
    I have express a few of the articles on your website now, and I really like your style of blogging. I added it to my favorite’s blog site list and will be checking back soon

    ReplyDelete
  51. if you want to learn digital marketing in mumbai. excelr solutions providing best AI course in mumbai.for more details click here

    digital marketing courses mumbai

    ReplyDelete
  52. Thanks for the informative article About Digital Marketing. This is one of the best resources I have found in quite some time. Nicely written and great info. I really cannot thank you enough for sharing.
    Java training in chennai | Java training in annanagar | Java training in omr | Java training in porur | Java training in tambaram | Java training in velachery

    ReplyDelete
  53. I am really enjoying reading your well written articles. It looks like you spend a lot of effort and time on your blog. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work....machine learning courses in bangalore

    ReplyDelete
  54. Thank you so much for sharing this nice informations.
    android training institutes in coimbatore

    data science course in coimbatore

    data science training in coimbatore

    python course in coimbatore

    python training institute in coimbatore

    Software Testing Course in Coimbatore

    CCNA Course in Coimbatore

    ReplyDelete
  55. There are many aspects post is really nice article on which I concur with you. You have generated synapses in my brain not used often. Thank you for getting my neurons jumping.

    AWS Training in Chennair

    ReplyDelete
  56. Study ExcelR PMP Certification where you get a great experience and better knowledge.

    PMP Certification

    We are located at :

    Location 1:
    ExcelR - Data Science, Data Analytics Course Training in Bangalore
    49, 1st Cross, 27th Main BTM Layout stage 1 Behind Tata Motors Bengaluru, Karnataka 560068
    Phone: 096321 56744
    Hours: Sunday - Saturday 7AM - 11PM

    Google Map link : PMP Certification

    ReplyDelete
  57. Just the way I have expected. Your website really is interesting. ExcelR Data Science Course In Pune

    ReplyDelete
  58. This article of android list view will be something that I’ll read again in the coming days. As I currently work on a website that deals with designers of medical billing, this concept is very much an essential part of it. This article will make it easier for me to understand the diversity of android and how it gets implemented.

    ReplyDelete
  59. Thanks For Sharing The Information The Information Shared Is Very Valuable.
    Learn AWS Certification Course in Cognex. Cognex providing good quality in services and development this would take you to next level in IT industry.Nowadays AWS become more popular in IT industry. So study AWS course in Cognex .
    Click Here

    ReplyDelete
  60. https://www.ohay.tv/view/cach-ve-sinh-may-tinh-de-ban-don-gian-nhat/Azyk9mJoJk
    https://maytinhdeban.hatenablog.com/entry/2020/08/06/155815?_ga=2.40445099.848631468.1596697100-664730916.1596697100
    https://medium.com/p/1848973c5d7c/edit?source=your_stories_page---------------------------
    https://maytinhdeban.livejournal.com/2350.html

    ReplyDelete
  61. I am really enjoying reading your well written articles. It’s hard to come by experienced people about this subject, but you seem like you know what you’re talking about! Thanks.
    Java Training in Chennai

    Java Training in Velachery

    Java Training inTambaram

    Java Training in Porur

    Java Training in Omr

    Java Training in Annanagar


    ReplyDelete
  62. This blog is the general information for the feature. You got a good work for this blog.We have a developing our creative content of this mind.Thank you for this blog. This for very interesting and useful.



    Data Science Training in Chennai

    Data Science Training in Velachery

    Data Science Training in Tambaram

    Data Science Training in Porur

    Data Science Training in Omr
    Data Science Training in Annanagar



    ReplyDelete
  63. The blog was absolutely fantastic! Lot of great information which can be helpful in some or the other way. Keep updating the blog, looking forward for more contents...Great job, keep it up..
    DevOps Training in Chennai

    DevOps Course in Chennai

    ReplyDelete
  64. I am really thankful for posting such useful information. It really made me understand lot of important concepts in the topic. Keep up the good work!
    DevOps Training in Chennai

    DevOps Course in Chennai

    ReplyDelete
  65. blue prism training in Chennai - If you choose to learn the blue prism or automation tool you are supposed to have the programming language. start to learn the blue prism training from the Best Blue prism Training Institute in Chennai.

    uipath training in Chennai - UI path technology is one of the fastest developing fields which has a lot of job opportunities such as software developer, Programmer and lot more. Join the Best Uipath Training Institute in Chennai.

    microsoft azure training in chennai -Microsoft azure technology is growing and soon it will be competitive aws. So students who start to learn Microsoft azure now will be well - paid in the future. Start to learn Microsoft azure training in Chennai.

    Chennai IT Training Center

    ReplyDelete
  66. I've read this post and if I could I desire to suggest you some interesting things or suggestions. Perhaps you could write next articles referring to this article. I want to read more things about it!
    data scientist courses

    ReplyDelete
  67. Hi to everybody, here everyone is sharing such knowledge, so it’s fastidious to see this site, and I used to visit this blog daily. ExcelR Data Science Course In Pune

    ReplyDelete
  68. Superb Information, I really appreciated with it, This is fine to read and valuable pro potential, I really bookmark it, pro broaden read. Appreciation pro sharing. I like it. ExcelR Data Analytics Courses

    ReplyDelete
  69. I surely acquiring more difficulties from each surprisingly more little bit of it ExcelR Data Analytics Courses

    ReplyDelete
  70. We are the best SEO services company, we find and fix the errors on your website .As a SEO services company, we tend to facilitate brands reach new customers
    through search optimization and social media organic visibility.

    ReplyDelete
  71. We are the best SEO services company, we find and fix the errors on your website .As a SEO services company, we tend to facilitate brands reach new customers
    through search optimization and social media organic visibility.

    ReplyDelete
  72. The blog is really good. Thanks for sharing it. mi weight machine

    ReplyDelete
  73. I see the greatest contents on your blog and I extremely love reading them. ExcelR Data Analyst Course

    ReplyDelete
  74. This is the best post I have ever seen. Very clear and simple. Mid-portion Is quite interesting though. Keep doing this. I will visit your site again. Knives Out Daniel Craig Coat

    ReplyDelete
  75. ProITacademy is the leading institution offering instructor-led-Job Oriented Courses in Pune. Fresh graduates and working professionals can also enroll in it. ProITacademy offers well-managed Job Oriented Courses in Pune and also provides placement assistance through its industrial training experts the division that interfaces with the global giants hiring Certified Programming Professionals.
    Visit: https://proitacademy.in/
    Java Classes in Pune
    Python Classes in Pune

    ReplyDelete
  76. Really it was an awesome article,very interesting to read.
    You have provided an nice article,Thanks for sharing.
    Data Science Training In Pune

    ReplyDelete
  77. This article discusses the importance of this blog for business promotion. Promoting a blog is just like promoting any other website and can be difficult to do if Buy gmail Accounts you are not sure what needs to be done, but with the right tips and tricks, this doesn't have to be. Hopefully, you find this article on this blog helpful and decide to visit the site below to see just what they aBuy facebook accounts

    ReplyDelete
  78. Writing a great article can help you to establish yourself as an expert in your field. Whether you're writing articles to promote your website or to increase
    Buy youtube accounts your business, it's important to write one that stands out from the rest and gets read. If you have a great article, you'll be able to use it for many things. Some of them include: getting linked back to your site, showing off your knowledge and skills to others, and even earning you more money. If you want to learn how to write a great article, then read on!
    Buy google voice accounts

    ReplyDelete
  79. Hi , Thank you so much for writing such an informational blog. If you are Searching for latest Jackets, Coats and Vests, for more info click on given link-Scarface Jacket

    ReplyDelete
  80. I recently came across your article and have been reading along. I want to express my admiration of your writing skill and ability to make readers read from the beginning to the end.
    Python Training In Pune

    ReplyDelete
  81. Thermoplastic Polyolefin Elastomer market Growth Situation, Share Trend,Applications, Types of product Outlook, Forecast 2022-2028
    Summary

    A New Market Study, Titled “Thermoplastic Polyolefin Elastomer Market Upcoming Trends, Growth Drivers and Challenges” has been featured on fusionmarketresearch.

    This report provides in-depth study of ‘Thermoplastic Polyolefin Elastomer Market ‘using SWOT analysis i.e. strength, weakness, opportunity and threat to Organization. The Thermoplastic Polyolefin Elastomer Market report also provides an in-depth survey of major market players which is based on the various objectives of an organization such as profiling, product outline, production quantity, raw material required, and production. The financial health of the organization.

    Thermoplastic Polyolefin Elastomer

    ReplyDelete
  82. Polyether Imide Market Status (2016-2020) and Forecast (2021E-2028F) by Region, Product Type & End-Use
    Polyether Imide Market

    Overview

    At the beginning of a recently published report on the global Polyether Imide Market, extensive analysis of the industry has been done with an insightful explanation. The overview has explained the potential of the market and the role of key players that have been portrayed in the information that revealed the applications and manufacturing technology required for the growth of the global Polyether Imide Market.

    Polyether Imide Market

    ReplyDelete
  83. Thank you for your post. This is excellent information. It is amazing and wonderful to visit your site.
    Please Keep On Posting Digital Marketing Courses In Pune

    ReplyDelete
  84. Thanks for posting this info. I just want to let you know that I just check out your site. 4th Hokage Cloak

    ReplyDelete
  85. This was really one of my favorite website. Please keep on posting. Digital Marketing Classes In Pune

    ReplyDelete
  86. You can do very creative work in a particular field. Exceptional concept That was incredible share. penelope blossom coat

    ReplyDelete
  87. Steps to Make Yahoo My Homepage on Windows 10

    Check out the steps as mentioned in the guide to know about the steps to make Yahoo my homepage on Windows 10. If you are using Internet Explorer then start by clicking on gear icon. After that, choose internet option. You will see home page under the General option. Here, enter the Yahoo address which you want to open as Yahoo homepage. Lastly, tap to OK and with this, you can successfully set your Yahoo ad homepage for Windows 10 device. These are the steps that users need to follow to smoothly make Yahoo my homepage Windows 10.

    Steps to Turn Off Outlook Notifications on iPhone

    If you have Outlook configured on the system and don’t know how to turn off Outlook notifications iPhone, then check out the steps mentioned below. For this, launch Outlook on the computer and tap on the File menu at the top-left corner of the screen. Choose on options and click on mail at the left-hand panel. After that, scroll down to the page to locate the message arrival. Uncheck the Display a Desktop alert box if it is checked. Lastly, you need to choose to show an envelope icon in the taskbar if you want. Tap to OK to smoothly turn off Outlook notifications or complete the settings.

    Why Outlook Search is Not Working?

    If you are an Outlook user then at any time, you might have faced the issue Outlook search is not working issue. There are several reasons for the issue but you need to troubleshoot the issue to not to encounter with such issues again and again.When you face such issue then the best option available is to restart the device properly. Follow the steps properly to not to encounter with such issues again and again.You can even check out the official website to check out the troubleshooting steps to deal with it.

    ReplyDelete
  88. Great post, Thanks for posting the best information and the blog is very helpful.
    Visit us: First DigiShala

    ReplyDelete
  89. Really nice article , very informative information about the android,thanks for sharing such useful information.

    ReplyDelete
  90. This is a well written article, will be sharing this with friends. refer Digital marketing courses in Delhi for details about Online Digital marketing courses.

    ReplyDelete
  91. Keep Sharing this type of extraordinary articles.

    Financial modeling course

    ReplyDelete
  92. This comment has been removed by the author.

    ReplyDelete
  93. HI, Nice blog! Thanks for sharing on how to make a List View with Alternate color for odd position and even position of List item having different background as well as different hover color.
    If you are interested in learning digital marketing, here is a complete list of the best online digital marketing courses with certifications. In this article, you will learn about digital marketing and its different strategies, the need for doing digital marketing, the scope of digital marketing, career opportunities after doing online digital marketing, and many more.
    Visit-
    Online Digital Marketing Courses


    ReplyDelete
  94. This comment has been removed by the author.

    ReplyDelete
  95. Thank you for sharing the details on how to make a list view with alternative colors. If you are interested in learning digital marketing, here is a list of the top 13 digital marketing courses in Ahmedabad with placements.
    Check out- Digital Marketing Courses in Ahmedabad

    ReplyDelete
  96. very good tech article for android developers with code. Thank you very much for the quality content. Keep sharing. If anyone wants to learn Digital Marketing, please join the world-class curriculum and industry-standard professional skills. For more details, please visit
    Digital marketing courses in france

    ReplyDelete
  97. Great blog. I am really happy to have read such a good article.
    Digital marketing courses in New zealand

    ReplyDelete
  98. The process of developing an Android application can be this easy could not have imagined. Thank you to your blog got to know the step by step process. If anyone was looking for a SEM program could also refer to the below blog. Visit -
    Search Engine Marketing

    ReplyDelete
  99. I am not into IT field but after came here to the london i suddenly have an interest to know each and evry thing about IT. Lookjng forward more such information. Also can have a look on Digital Marketing Courses in Abu Dhabi

    ReplyDelete
  100. wordpress web design company in united states Need professional WordPress Web Design Services? We're experts in developing attractive mobile-friendly WordPress websites for businesses. Contact us today!

    ReplyDelete
  101. Amazing article such detailed and quality information, keep posting more!
    Digital Marketing Courses in Abu Dhabi

    ReplyDelete
  102. Thanks for showing how to make a list view with alternate color. If you are interested in learning digital marketing but don’t know where to start a course, here is a list of the top 10 digital marketing training institutes in India with placements. This article will help you decide which institute is best for you to learn digital marketing and will help you become a successful digital marketer and boost your career.
    Digital marketing courses in India

    ReplyDelete
  103. The ideas shared in this article for making List view with alternate color is what made me read your content. Digital Marketing courses in Bahamas

    ReplyDelete
  104. Hi, I have really enjoyed reading this blog. It was well structured and well explained. It is surely going to help many of the beginners. Looking forward on reading new articles.
    Digital marketing courses in Ghana

    ReplyDelete
  105. Hi, Excellent blog! Thanks for sharing this article. If you are interested in building a medical career but are struggling to clear medical entrance exams, Wisdom Academy is the right place to begin. It is one of Mumbai's best NEET coaching institutes for students preparing for medical and other competitive-level entrance examinations. The academy caters to home and group tuitions for NEET by professionals. It offers comprehensive learning resources, regular tests, mentoring, expert counseling, and much more. Enroll Now!
    NEET Coaching in Mumbai

    ReplyDelete
  106. Very informative on the topic of screen design and content view on Android platform. Thanks for sharing your experience and guiding us with descriptive content. If anyone wants to learn Digital Marketing in Austria, Please join the newly designed curriculum professional course on highly demanded skills required by top corporates globally. For more details, please visit
    Digital Marketing Courses in Austria

    ReplyDelete

  107. Thanks for sharing your knowledge with us. You have provided good content about show how to make a ListView with Alternate color. We can not stop learning. Keep working! We also provide an informational and educational blog about Freelancing. Today, many people want to start a Freelance Career without knowing How and Where to start. People are asking about:
    What is Freelancing and How Does it work
    How to Become a Freelancer?
    Is working as a Freelancer a good Career?
    What is a Freelancer Job Salary?
    Can I live with a Self-Employed Home Loan?
    What Kind of Freelancing jobs?
    How to get Freelance projects?
    How Do companies hire Freelancers?
    In our Blog, you will find a guide with Tips and Steps which will help you to take a good decision. Do visit:
    What is Freelancing

    ReplyDelete
  108. It is great to know about the steps of app development. Appreciate your effort. Learning new skills is always put us ahead in competition, Digital marketing is one of those course. visit Digital Marketing Courses in Dehradun to know more about digital marketing.

    ReplyDelete
  109. Blog is very impressive, looking forward more updates.
    Digital marketing courses in Noida

    ReplyDelete
  110. Enjoyed a lot! https://advisoruncle.com/data-analytics-scope/

    ReplyDelete
  111. Hello, Nicely presented blog on the concept Android ListView with Alternate list item background and hover.
    Digital marketing courses in Germany

    ReplyDelete
  112. it is a really informative article. Really appreciate your efforts. Your article is well articulated and cover each and every depth of the topic. Thanks a lot for sharing your knowledge and expertise. Looking forward for more such articles. Keep writing.
    Digital marketing courses in Trivandrum

    ReplyDelete
  113. India Transform is the leading Website development services in Delhi, India. Our web developers create the unique and offering custom website development services

    ReplyDelete
  114. Nice coding . I really liked your article, helpful for techies
    Digital marketing courses in Raipur

    ReplyDelete
  115. I'm learning programming these days, your blog really helped me learning. I really like the way you have explained the topic. Every step is clear and concise. Keep sharing the good work.
    Digital marketing courses in Nashik

    ReplyDelete
  116. Nice article. Truly a creative effort to produce different view list with background colour schemes. Your expertise is truly appreciable to try on Android platform. Thanks for sharing your great work. If anyone wants to build his carrier in Digital Marketing then you must go through our curriculum which is designed very professionally with cutting edge of the current requirement of the corporates and based on market trends. For more detail Please visit at
    Digital marketing Courses In UAE

    ReplyDelete
  117. Coding shared by you is very helpful, awesome work done by you.
    Data Analytics Courses In Ahmedabad

    ReplyDelete
  118. The technicalities of this article on Android List view with Alternate list item background and hover seems so knowledgeable to read. Data Analytics Courses in Delhi

    ReplyDelete
  119. This is a great blog post on how to create a list view with alternate list items in Android. This can be really useful if you want to create a list with different items for even and odd numbered rows. If you are looking to start your career, our Data Analytics Courses in Coimbatore offers an insight into the field of Data Analytics. You will have an opportunity to learn from experts and industry professionals who offer hands-on training methods to their students.
    Data Analytics Courses In Coimbatore

    ReplyDelete
  120. The technical expertise you are imparting through this blog is really valued. Thank you for explaining in simple way.
    Data Analytics Courses In Kolkata

    ReplyDelete
  121. This is a great post on how to create a List View with alternate list item background and hover effect. The code is well written and easy to follow. I would recommend this post to anyone looking to create a similar effect in their own Android app. Digital Marketing Courses in Australia

    ReplyDelete
  122. This is one of the amazing post that covers how to create a list view with alternate list item background and hover effect. The Blogger provides very well explained instructions. Digital Marketing Courses in Vancouver

    ReplyDelete
  123. Hi, An excellent as well as technically strong content. It has covered a vast area of targeted audiences. The content is to the point with less descriptions.
    Data Analytics Courses In Kochi

    ReplyDelete
  124. Thanks for sharing article on Android application development & how to create list view. It’s really simple to understand Data Analytics Courses In Vadodara

    ReplyDelete
  125. This is an amazing blog about Android ListView with Alternate list item background and hover. This is a great tutorial for creating a ListView with alternate background colors for each list item, and adding a hover effect. Thank you for sharing! Keep Updating! Data Analytics Courses in Gurgaon

    ReplyDelete