Change Toast Font
        Posted  
        
            by mgpyone
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by mgpyone
        
        
        
        Published on 2010-05-30T21:43:59Z
        Indexed on 
            2010/05/30
            21:52 UTC
        
        
        Read the original article
        Hit count: 428
        
Currently, I'm trying to develop an app. and I don't know how to change the Toast font. .
 final OnClickListener clickListener = new OnClickListener() {
    public void onClick(View v) {
            try {
                Toast.makeText(nova.this,"Hello", 500000).show();
            }
            catch (Exception e) {
                Toast.makeText(nova.this,"Exception:" +e, 500000);
            }
        }
    };
I want to change the text "Hello" with custom font I've tried with TypeFace.
and Then, I want to set a variable at the place "TextClicked" .. I've tried with a local variable .. but it doesn't work
any help with example source code will be really great for me.
© Stack Overflow or respective owner