I am creating an extension in which i need to set button width and height
but problem is that it is not working . it is taking full parent in arrangement
i tried by two codes
and other one
android.widget.LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(width , height);
but not working
can anyone give me correct snippet?