Just in case I need this
@@ -17,6 +17,7 @@ package com.farmerbb.taskbar.ui;
import android.graphics.PixelFormat;
import android.view.WindowManager;
+import android.widget.FrameLayout;
import com.farmerbb.taskbar.util.U;
@@ -47,4 +48,16 @@ public class ViewParams {
return wmParams;
}
+
+ public FrameLayout.LayoutParams toFrameLayoutParams() {
+ final FrameLayout.LayoutParams flParams = new FrameLayout.LayoutParams(
+ width,
+ height
+ );
+
+ if(gravity > -1)
+ flParams.gravity = gravity;
+
+ return flParams;
+ }
}
\ No newline at end of file
