I just find the solution, I have to use :
FrameLayout.LayoutParams params_play_btn = new FrameLayout.LayoutParams(
50,50);
as layoutparams because I am using FrameLayout instead of
LinearLayout.LayoutParams
I hope it helps