Code example for View.OnClickListener

Methods: onClick

0
            final OnClickListener listener) {
        return append(text, new URLSpan(text.toString()) {
 
            @Override 
            public void onClick(View widget) {
                listener.onClick(widget);
            } 
        }); 
    } 
 
    /** 
     * Append text as URL 
     * 
     * @param text 
     * @return this text 
     */ 
    public StyledText url(final CharSequence text) {
        return append(text, new URLSpan(text.toString()));
    } 
 
    /**