| android Programming Glossary: r.bottomIs there an example of how to use a TouchDelegate in Android to increase the size of a view's click target? http://stackoverflow.com/questions/1343222/is-there-an-example-of-how-to-use-a-touchdelegate-in-android-to-increase-the-siz  run final Rect r new Rect delegate.getHitRect r r.top 4 r.bottom 4 parent.setTouchDelegate new TouchDelegate r delegate    share.. 
 Getting the dimensions of the soft keyboard http://stackoverflow.com/questions/13534365/getting-the-dimensions-of-the-soft-keyboard  .getHeight  int heightDifference screenHeight r.bottom r.top  Log.d Keyboard Size Size heightDifference  boolean visible.. 
 Maintain keyboard open/closed state for EditText when app comes to foreground http://stackoverflow.com/questions/15202895/maintain-keyboard-open-closed-state-for-edittext-when-app-comes-to-foreground  r  int heightDiff activityRootView.getRootView  .getHeight r.bottom r.top  if lastDiff heightDiff  return  lastDiff heightDiff .. 
 Curl page from left to right android http://stackoverflow.com/questions/16772734/curl-page-from-left-to-right-android  border border r.top r.height imageHeight 2 border r.bottom r.top imageHeight border border Paint p new Paint  p.setColor.. c.drawRect r p r.left border r.right border r.top border r.bottom border d.setBounds r d.draw c   if y null return null else return.. 
 Horizontal scrolling grid view http://stackoverflow.com/questions/5725745/horizontal-scrolling-grid-view  this Rect r mTempRect r.left 10 r.top 10 r.right 10 r.bottom 10 btn i j .getDrawingRect r  btn i j .setId j  Rect r mTempRect.. 
 How to crop image in android http://stackoverflow.com/questions/6464123/how-to-crop-image-in-android  0 mTop r.top int panDeltaY2 int Math.min 0 mBottom r.bottom int panDeltaX panDeltaX1 0 panDeltaX1 panDeltaX2 int panDeltaY.. 
 How to get x and y coordinate of bitmap image in image control? http://stackoverflow.com/questions/6951887/how-to-get-x-and-y-coordinate-of-bitmap-image-in-image-control  RectF matrix.mapRect r Log.i TAG Rect r.left r.top r.right r.bottom mOverAllScale NEWLY ADDED ANSWER To understand the below code.. RectF matrix.mapRect r Log.i TAG Rect r.left r.top r.right r.bottom mOverAllScale float newX x r.left float newY y r.top You use.. 
 Is there an example of how to use a TouchDelegate in Android to increase the size of a view's click target? http://stackoverflow.com/questions/1343222/is-there-an-example-of-how-to-use-a-touchdelegate-in-android-to-increase-the-siz 
 Getting the dimensions of the soft keyboard http://stackoverflow.com/questions/13534365/getting-the-dimensions-of-the-soft-keyboard  r  int screenHeight parent.getRootView .getHeight  int heightDifference screenHeight r.bottom r.top  Log.d Keyboard Size Size heightDifference  boolean visible heightDiff screenHeight 3   We only resize views with.. 
 Maintain keyboard open/closed state for EditText when app comes to foreground http://stackoverflow.com/questions/15202895/maintain-keyboard-open-closed-state-for-edittext-when-app-comes-to-foreground  r new Rect  activityRootView.getWindowVisibleDisplayFrame r  int heightDiff activityRootView.getRootView  .getHeight r.bottom r.top  if lastDiff heightDiff  return  lastDiff heightDiff  Log.i aerfin arefin lastDiff  if heightDiff 100 if more than.. 
 Curl page from left to right android http://stackoverflow.com/questions/16772734/curl-page-from-left-to-right-android   r.left r.width imageWidth 2 border r.right r.left imageWidth border border r.top r.height imageHeight 2 border r.bottom r.top imageHeight border border Paint p new Paint  p.setColor 0xFFC0C0C0 c.drawRect r p r.left border r.right border r.top.. border border Paint p new Paint  p.setColor 0xFFC0C0C0 c.drawRect r p r.left border r.right border r.top border r.bottom border d.setBounds r d.draw c   if y null return null else return b  @Override public void updatePage CurlPage page final.. 
 Horizontal scrolling grid view http://stackoverflow.com/questions/5725745/horizontal-scrolling-grid-view  r1 100  t t 100  b b 100  button ImageButton btn new ImageButton this Rect r mTempRect r.left 10 r.top 10 r.right 10 r.bottom 10 btn i j .getDrawingRect r  btn i j .setId j  Rect r mTempRect  r.set 0 0 0 0  Rect r2 mTempRect  r2.set 0 20 0 20  btn.. 
 How to crop image in android http://stackoverflow.com/questions/6464123/how-to-crop-image-in-android  int Math.min 0 mRight r.right int panDeltaY1 int Math.max 0 mTop r.top int panDeltaY2 int Math.min 0 mBottom r.bottom int panDeltaX panDeltaX1 0 panDeltaX1 panDeltaX2 int panDeltaY panDeltaY1 0 panDeltaY1 panDeltaY2 if panDeltaX 0 panDeltaY.. 
 How to get x and y coordinate of bitmap image in image control? http://stackoverflow.com/questions/6951887/how-to-get-x-and-y-coordinate-of-bitmap-image-in-image-control  panned ImagevIew actually bitmap from matrix. RectF r new RectF matrix.mapRect r Log.i TAG Rect r.left r.top r.right r.bottom mOverAllScale NEWLY ADDED ANSWER To understand the below code you need to go thru this link and understand. Translation.. Let User input co ordinates be x y then RectF r new RectF matrix.mapRect r Log.i TAG Rect r.left r.top r.right r.bottom mOverAllScale float newX x r.left float newY y r.top You use new co ordinates in place of x y . Zooming Scaling When user.. 
 |