i am new in android development. i have some difficulty about android screen size.
1 ) how to get my current application windows size .
ex: height = h px, width = w px
2 ) how to call back when windows size change. like when keyboard open then window size change but how to measure how change where is call back function.
ex: height = ( h - keyboardHeight ) px
height = ( w - keyboardWidth ) px
1 . first image ( find red background size)
2 . second image ( open keyboard find and call back of red background size)