Example usage for android.graphics Rect Rect

List of usage examples for android.graphics Rect Rect

Introduction

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

Prototype

public Rect() 

Source Link

Document

Create a new empty Rect.

Usage

From source file:org.getlantern.firetweet.util.Utils.java

public static void makeListFragmentFitsSystemWindows(ListFragment fragment) {
    final FragmentActivity activity = fragment.getActivity();
    if (!(activity instanceof SystemWindowsInsetsCallback))
        return;/*from  w  ww .j av  a  2 s .co m*/
    final SystemWindowsInsetsCallback callback = (SystemWindowsInsetsCallback) activity;
    final Rect insets = new Rect();
    if (callback.getSystemWindowsInsets(insets)) {
        makeListFragmentFitsSystemWindows(fragment, insets);
    }
}