×

Discussion Board

Results 1 to 2 of 2

Hybrid View

  1. #1
    Registered User
    Join Date
    Jul 2012
    Location
    India
    Posts
    103

    How to Decrease the Font of a Text on LCDUI List and Form

    I have a LCDUI List Screen Contains Title and Image from Rss File

    myList.append(Rss.getTitle(),Rss.getImage());


    I have one Detail Form n which i am able to display publish date and one hyperlink form Rss File

    m_itemForm.append(new StringItem("Pub Date:",videoItem.getPubDate()));
    final String URL = videoItem.getLink();
    stringItem = new StringItem("Link: ", "Set", Item.HYPERLINK);
    stringItem.setText(URL);
    m_itemForm.append(stringItem);

    Now i want to decrease the font of a text on both the Screens(List and Form)?

  2. #2
    Nokia Developer Expert
    Join Date
    Oct 2007
    Posts
    441

    Re: How to Decrease the Font of a Text on LCDUI List and Form

    Hi

    It appears , you cannot change font size in List. This code is correct but it does not effect :
    Code:
                Font font = DirectUtils.getFont(Font.FACE_SYSTEM, Font.STYLE_ITALIC, Font.SIZE_SMALL);
                for(int i = 0; i < list.size(); i++){
                    list.setFont(i, font);
                }
    perhaps you should check javax.microedition.lcdui.CustomItem

Similar Threads

  1. Translate from LCDUI form to LWUIT UI Form
    By debasish_cse05 in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2011-02-02, 11:37
  2. LCDUI Alert on an LWUIT Form
    By slugger_2003 in forum Mobile Java General
    Replies: 0
    Last Post: 2010-04-18, 13:01
  3. Series 40: lcdui.List like a settings-list?
    By traud in forum Mobile Java General
    Replies: 0
    Last Post: 2008-08-27, 15:25
  4. Text wrapping in javax.microedition.lcdui.List
    By DrChandra in forum Mobile Java General
    Replies: 4
    Last Post: 2006-04-15, 01:21
  5. Replies: 2
    Last Post: 2005-06-22, 17:06

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×