Example usage for android.graphics Rect set

List of usage examples for android.graphics Rect set

Introduction

In this page you can find the example usage for android.graphics Rect set.

Prototype

public void set(int left, int top, int right, int bottom) 

Source Link

Document

Set the rectangle's coordinates to the specified values.

Usage

From source file:com.google.android.apps.santatracker.map.cardstream.SeparatorDecoration.java

@Override
public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) {
    outRect.set(0, 0, 0, mHeight);
}

From source file:com.raspberry.library.view.RecycleViewDecoration.java

@Override
public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) {
    outRect.set(0, 0, 0, mDrawable.getIntrinsicHeight());
}

From source file:net.simno.klingar.ui.widget.DividerItemDecoration.java

@Override
public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) {
    outRect.set(0, 0, 0, divider.getIntrinsicHeight());
}

From source file:com.rashwan.reactive_popular_movies.common.utilities.DividerItemDecoration.java

@Override
public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) {
    outRect.set(0, 0, 0, mDivider.getIntrinsicHeight());
}

From source file:io.jawg.osmcontributor.ui.utils.views.ItemDividerDecoration.java

@Override
public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) {
    outRect.set(0, 0, 0, LINE_HEIGHT_PX);
}

From source file:com.github.shareme.gwsmaterialuikit.library.advancerv.decoration.ItemShadowDecorator.java

@Override
public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) {
    outRect.set(0, 0, 0, 0);
}

From source file:com.silmood.movieman.ui.util.SimpleOffsetDecorator.java

@Override
public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) {
    super.getItemOffsets(outRect, view, parent, state);
    outRect.set(mItemOffset, mItemOffset, mItemOffset, mItemOffset);
}

From source file:com.maxleap.mall.widget.HorizontalDividerItemDecoration.java

@Override
protected void setItemOffsets(Rect outRect, int position, RecyclerView parent) {
    outRect.set(0, 0, 0, getDividerSize(position, parent));
}

From source file:com.wj.recyclerviewdemo.decorator.DividerItemDecoration.java

@Override
public void getItemOffsets(Rect outRect, int itemPosition, RecyclerView parent) {
    if (mType == TYPE_GRID) {
        outRect.set(0, 0, 0, mDivider.getIntrinsicHeight());
        outRect.set(0, 0, mDivider.getIntrinsicWidth(), 0);
    } else if (mType == TYPE_LIST) {
        outRect.set(0, 0, 0, mDivider.getIntrinsicHeight());
    }//from ww  w .  j  av  a2s .c o m
}

From source file:net.soulwolf.meetrecycle.decoration.VerticalDividerItemDecoration.java

@Override
protected void setItemOffsets(Rect outRect, int position, RecyclerView parent) {
    outRect.set(0, 0, getDividerSize(position, parent), 0);
}