Search in sources :

Example 1 with ExpandHelper

use of com.android.systemui.ExpandHelper in project android_frameworks_base by ParanoidAndroid.

the class StatusBarWindowView method onAttachedToWindow.

@Override
protected void onAttachedToWindow() {
    super.onAttachedToWindow();
    latestItems = (NotificationRowLayout) findViewById(R.id.latestItems);
    mScrollView = (ScrollView) findViewById(R.id.scroll);
    mNotificationPanel = (NotificationPanelView) findViewById(R.id.notification_panel);
    int minHeight = getResources().getDimensionPixelSize(R.dimen.notification_row_min_height);
    int maxHeight = getResources().getDimensionPixelSize(R.dimen.notification_row_max_height);
    mExpandHelper = new ExpandHelper(mContext, latestItems, minHeight, maxHeight);
    mExpandHelper.setEventSource(this);
    mExpandHelper.setScrollView(mScrollView);
    // We really need to be able to animate while window animations are going on
    // so that activities may be started asynchronously from panel animations
    final ViewRootImpl root = getViewRootImpl();
    if (root != null) {
        root.setDrawDuringWindowsAnimating(true);
    }
}
Also used : ViewRootImpl(android.view.ViewRootImpl) ExpandHelper(com.android.systemui.ExpandHelper) Paint(android.graphics.Paint)

Example 2 with ExpandHelper

use of com.android.systemui.ExpandHelper in project android_frameworks_base by ParanoidAndroid.

the class PieExpandPanel method init.

public void init(NotificationRowLayout pile, View scrollView) {
    latestItems = pile;
    int minHeight = getResources().getDimensionPixelSize(R.dimen.notification_row_min_height);
    int maxHeight = getResources().getDimensionPixelSize(R.dimen.notification_row_max_height);
    mExpandHelper = new ExpandHelper(mContext, pile, minHeight, maxHeight);
    mExpandHelper.setEventSource(this);
    mExpandHelper.setScrollView(scrollView);
}
Also used : ExpandHelper(com.android.systemui.ExpandHelper)

Example 3 with ExpandHelper

use of com.android.systemui.ExpandHelper in project android_frameworks_base by ParanoidAndroid.

the class NotificationPanel method onAttachedToWindow.

@Override
protected void onAttachedToWindow() {
    super.onAttachedToWindow();
    latestItems = (NotificationRowLayout) findViewById(R.id.content);
    int minHeight = getResources().getDimensionPixelSize(R.dimen.notification_row_min_height);
    int maxHeight = getResources().getDimensionPixelSize(R.dimen.notification_row_max_height);
    mExpandHelper = new ExpandHelper(mContext, latestItems, minHeight, maxHeight);
    mExpandHelper.setEventSource(this);
    mExpandHelper.setGravity(Gravity.BOTTOM);
}
Also used : ExpandHelper(com.android.systemui.ExpandHelper)

Aggregations

ExpandHelper (com.android.systemui.ExpandHelper)3 Paint (android.graphics.Paint)1 ViewRootImpl (android.view.ViewRootImpl)1