LinearLayout.LayoutParams btParams =  new LinearLayout.LayoutParams (width, height);
btParams.gravity = Gravity.CENTER;