Code example for View

Methods: findViewById

0
    public WidgetContainer(Context context, AttributeSet attrs, int defStyleAttr) {
        this(context, attrs);
    } 
 
    public void setTitle(CharSequence title) {
        TextView textView = (TextView) titleView
                .findViewById(android.R.id.text1);
        if (textView != null) {
            textView.setText(title);
        } 
    } 
 
    public void setTitle(int title) {
        setTitle(getResources().getText(title));
    } 
}