Example usage for android.widget LinearLayout setClipToPadding

List of usage examples for android.widget LinearLayout setClipToPadding

Introduction

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

Prototype

public void setClipToPadding(boolean clipToPadding) 

Source Link

Document

Sets whether this ViewGroup will clip its children to its padding and resize (but not clip) any EdgeEffect to the padded region, if padding is present.

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 ww w  .j  av  a  2  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);
}