Example usage for android.widget LinearLayout setClipChildren

List of usage examples for android.widget LinearLayout setClipChildren

Introduction

In this page you can find the example usage for android.widget LinearLayout setClipChildren.

Prototype

public void setClipChildren(boolean clipChildren) 

Source Link

Document

By default, children are clipped to their bounds before drawing.

Usage

From source file:org.smssecure.smssecure.ConversationActivity.java

private void initializeResources() {
    if (recipients != null)
        recipients.removeListener(this);

    recipients = RecipientFactory.getRecipientsForIds(this, getIntent().getLongArrayExtra(RECIPIENTS_EXTRA),
            true);/*from   w  ww. j a  v a2  s.c om*/
    threadId = getIntent().getLongExtra(THREAD_ID_EXTRA, -1);
    archived = getIntent().getBooleanExtra(IS_ARCHIVED_EXTRA, false);
    distributionType = getIntent().getIntExtra(DISTRIBUTION_TYPE_EXTRA,
            ThreadDatabase.DistributionTypes.DEFAULT);

    if (Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN) {
        LinearLayout conversationContainer = ViewUtil.findById(this, R.id.conversation_container);
        conversationContainer.setClipChildren(true);
        conversationContainer.setClipToPadding(true);
    }

    recipients.addListener(this);
}