Back to project page android-cassowary-layout.
The source code is released under:
Apache License
If you think the Android project android-cassowary-layout listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package no.agens.cassowarylayout.util; /*from w ww.j a v a 2 s. c o m*/ import android.view.View; /** * Created by alex on 14/11/14. */ public class MeasureSpecUtils { public static String getModeAsString(int modeOrSpec) { String modeAsString; int mode = View.MeasureSpec.getMode(modeOrSpec); if (mode == View.MeasureSpec.EXACTLY) { modeAsString = "EXACTLY"; } else if (mode == View.MeasureSpec.AT_MOST) { modeAsString = "AT_MOST"; } else if (mode == View.MeasureSpec.UNSPECIFIED) { modeAsString = "UNSPECIFIED"; } else { modeAsString = "unknown mode " + modeOrSpec; } return modeAsString; } }