TextSize changing in ListView


Last Updated:

  1. kiranuday43

    kiranuday43 Member This Topic's Starter

    Joined:
    Mar 3, 2010
    Messages:
    20
    Likes Received:
    0
    How to change Size of the text size and style of text in list items of listview.?,,
    Can we set a image for each listitem in listview?,,,,,,,,,,,,,,:confused:

    Thanks,,,
     

    Advertisement
  2. Zero

    Zero Member

    Joined:
    Oct 23, 2009
    Messages:
    11
    Likes Received:
    2
    Use a custom row layout and adapter, e.g. one which extends ArrayAdapter. You would return your row in getView
     
    kiranuday43 likes this.
  3. jon21569

    jon21569 Member

    Joined:
    Aug 10, 2008
    Messages:
    23
    Likes Received:
    7
    Here is sample code that shows to do it.
     

    Attached Files:

    kiranuday43 likes this.
  4. Nithya

    Nithya New Member

    Joined:
    Jun 3, 2010
    Messages:
    1
    Likes Received:
    0
    hey that post was very usefull thanks....
    I have an another issue !!!!!!
    In my ListView i need to have a radiobutton for which textsize needs to be changed....

    For radioButton in listview , i have used android.R.layout.simple_list_item_single_choice in arrayadapter to have radiobutton but then i wasnt able to change the size.......

    I also tried changing the getview() of arrayadapter ,but i wasnt able to toggle radiobuttons in the list.......

    any help regarding this issue ???????????
     

Share This Page

Loading...