Android Open Source - no-cloud-share Measuring Relative Layout






From Project

Back to project page no-cloud-share.

License

The source code is released under:

GNU General Public License

If you think the Android project no-cloud-share listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package de.ub0r.android.nocloudshare.views;
// www .  ja  v a2 s . c o  m
import android.content.Context;
import android.util.AttributeSet;
import android.widget.RelativeLayout;

/**
 * @author flx
 */
public class MeasuringRelativeLayout extends RelativeLayout {

    private Runnable mRunnable;

    @SuppressWarnings("UnusedDeclaration")
    public MeasuringRelativeLayout(final Context context) {
        super(context);
    }

    @SuppressWarnings("UnusedDeclaration")
    public MeasuringRelativeLayout(final Context context, final AttributeSet attrs) {
        super(context, attrs);
    }

    @SuppressWarnings("UnusedDeclaration")
    public MeasuringRelativeLayout(final Context context, final AttributeSet attrs,
            final int defStyle) {
        super(context, attrs, defStyle);
    }

    @Override
    protected void onMeasure(final int widthMeasureSpec, final int heightMeasureSpec) {
        super.onMeasure(widthMeasureSpec, heightMeasureSpec);
        if (mRunnable != null) {
            mRunnable.run();
            mRunnable = null;
        }
    }

    public void registerOnMeasureListener(final Runnable r) {
        mRunnable = r;
    }
}




Java Source Code List

de.ub0r.android.nocloudshare.AboutActivity.java
de.ub0r.android.nocloudshare.HttpService.java
de.ub0r.android.nocloudshare.IntroActivity.java
de.ub0r.android.nocloudshare.SettingsActivity.java
de.ub0r.android.nocloudshare.ShareActivity.java
de.ub0r.android.nocloudshare.ShareFragment.java
de.ub0r.android.nocloudshare.ShareListActivity.java
de.ub0r.android.nocloudshare.http.BitmapLruCache.java
de.ub0r.android.nocloudshare.http.Httpd.java
de.ub0r.android.nocloudshare.model.GsonFactory.java
de.ub0r.android.nocloudshare.model.ShareItemContainer.java
de.ub0r.android.nocloudshare.model.ShareItem.java
de.ub0r.android.nocloudshare.views.CheckableRelativeLayout.java
de.ub0r.android.nocloudshare.views.MeasuringRelativeLayout.java
fi.iki.elonen.NanoHTTPD.java