1. Check out our companion app, Forums for Android! Download from Google Play

TextSize changing in ListView

Discussion in 'Application Development' started by kiranuday43, Mar 13, 2010.

  1. kiranuday43

    kiranuday43 Member
    Thread Starter
    15

    Mar 3, 2010
    20
    0
    15
    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?,,,,,,,,,,,,,,:thinking:

    Thanks,,,
     

    Advertisement

  2. Zero

    Zero Member
    16

    Oct 23, 2009
    11
    2
    16
    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
    16

    Aug 10, 2008
    23
    7
    16
    Here is sample code that shows to do it.
     

    Attached Files:

    kiranuday43 likes this.
  4. Nithya

    Nithya New Member
    5

    Jun 3, 2010
    1
    0
    5
    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...