How to get android studio Component(Button, text,etc...) size (Width, height or default size)


now i'm developing android studio plugin using intellij 

and i want get Component size(button or textview's width,height ) in intellij plugin!

look at the top picture,

i write th code height="wrap_content"

and width also "wrap_content"

so i want know that button size!( dp or px number!)

also when textview or another component are defined wrap_content, i don't know width and height size!

Just i Think, android studio components has default width and height. but i don't know where defined!

Thank you!

1 comment
Comment actions Permalink

Hi, IMHO you should ask Android Studio developers about that.


Please sign in to leave a comment.