Android examples for User Interface:Layout
get View Relative Layout Rules
//package com.java2s; import android.view.View; import android.widget.RelativeLayout; public class Main { public static int[] getRelativeLayoutRules(View view) { return ((RelativeLayout.LayoutParams) view.getLayoutParams()) .getRules();// w ww .j a v a 2 s . c om } }