Keyur Lakhani
Keyur Lakhani

Reputation: 4381

Resize View in WindowManager in android

I would like to re-size my view which is created using service in Windowmanager on touch I have changed height and width it is working properly.

But I have found that params.x and params.y is not changing so it is moving at the time of resizing the view.

And for that I found this values for different situation

I have found the some sort of similar question but answered yet.

Upvotes: 0

Views: 1551

Answers (1)

Keyur Lakhani
Keyur Lakhani

Reputation: 4381

I have set gravity to center so this issue was raised but after seting gravity to top left all working like charm

params.gravity = Gravity.TOP | Gravity.LEFT;

Might be helpful to some one

Upvotes: 1

Related Questions