1. Download our Official Android App: Forums for Android!

Apps TextSize changing in ListView

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

  1. kiranuday43

    kiranuday43 Newbie
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    20
    Joined:
    Mar 3, 2010

    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 Newbie
    Rank:
    None
    Points:
    16
    Posts:
    11
    Joined:
    Oct 23, 2009

    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 Newbie
    Rank:
    None
    Points:
    16
    Posts:
    23
    Joined:
    Aug 10, 2008

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

    Attached Files:

    kiranuday43 likes this.
  4. Nithya

    Nithya Lurker
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Jun 3, 2010

    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...