How to show bullets in ListView | TextView in Android using android Studio

0 1,073

Bullets in ListView  TextView

In this tutorial I will show you how you can add bullets in listview , There are many ways to show  indentation in ListView/TextView here I will use drawableLeft attribute to show bullets left side of each item of listview Let’s start 🙂

  • Create a new project and in activity_main.xml we will define a listView to show our list items.Check below code

  • Right click on activity_main.xml then select new and click Layout resource file enter layout name and do changes same like below code.

list_row.xml

  • Next step we add all our functionality to our MainActivity.java check code below.

MainActivity.java

Comments

comments

Leave A Reply

Your email address will not be published.