Code example for View

Methods: getParent

0
 
    private static void removeFromParent(View view) {
        if (view == null) {
            return; 
        } 
        ViewParent parent = view.getParent();
        if (parent != null) {
            ((ViewGroup) parent).removeView(view);
        } 
    } 
 
    public CharSequence getTitle() {
        return mTitle.getText();
    } 
 
    public void setSubtitle(CharSequence text) {
        mSubtitle.setText(text);
        mSubtitle.setVisibility(TextUtils.isEmpty(text) ? GONE : VISIBLE);
    } 
 
    public CharSequence getSubtitle() {