// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.geocities.com/kpdus/jad.html // Decompiler options: braces fieldsfirst space lnc package com.idunnololz.widgets; import android.content.Context; import android.graphics.Canvas; import android.graphics.drawable.Drawable; import android.view.View; import java.util.ArrayList; import java.util.List; // Referenced classes of package com.idunnololz.widgets: // AnimatedExpandableListView private static class views extends View { private Drawable divider; private int dividerHeight; private int dividerWidth; private List views; public void addFakeView(View view) { view.layout(0, 0, getWidth(), view.getMeasuredHeight()); views.add(view); } public void clearViews() { views.clear(); } public void dispatchDraw(Canvas canvas) { canvas.save(); if (divider != null) { divider.setBounds(0, 0, dividerWidth, dividerHeight); } int j = views.size(); for (int i = 0; i < j; i++) { View view = (View)views.get(i); canvas.saveLayer(0.0F, 0.0F, getWidth(), view.getMeasuredHeight(), null, 16); view.draw(canvas); canvas.restore(); canvas.translate(0.0F, view.getMeasuredHeight()); if (divider != null) { canvas.saveLayer(0.0F, view.getMeasuredHeight(), getWidth(), dividerHeight, null, 16); divider.draw(canvas); canvas.restore(); canvas.translate(0.0F, dividerHeight); } } canvas.restore(); } protected void onLayout(boolean flag, int i, int j, int k, int l) { super.onLayout(flag, i, j, k, l); l = views.size(); for (k = 0; k < l; k++) { View view = (View)views.get(k); view.layout(i, j, view.getMeasuredWidth() + i, view.getMeasuredHeight() + j); } } public void setDivider(Drawable drawable, int i, int j) { if (drawable != null) { divider = drawable; dividerWidth = i; dividerHeight = j; drawable.setBounds(0, 0, i, j); } } public A(Context context) { super(context); views = new ArrayList(); } }