WindowManager.LayoutParams()
WindowManager.LayoutParams(int _type)
WindowManager.LayoutParams(int _type, int _flags)
WindowManager.LayoutParams(int _type, int _flags, int _format)
WindowManager.LayoutParams(int w, int h, int _type, int _flags, int _format)
WindowManager.LayoutParams(int w, int h, int xpos, int ypos, int _type, int _flags, int _format)
WindowManager的LayoutParams没有gravity这个值吧,他有几个构造,默认是左上
你既然都知道方法了,自己写下代码测试下看看不就行了,比到这里来提问更有效率。