| android Programming Glossary: r.topIs 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  void run final Rect r new Rect delegate.getHitRect r r.top 4 r.bottom 4 parent.setTouchDelegate new TouchDelegate r delegate.. 
 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  activityRootView.getRootView  .getHeight r.bottom r.top  if lastDiff heightDiff  return  lastDiff heightDiff  Log.i.. 
 Curl page from left to right android http://stackoverflow.com/questions/16772734/curl-page-from-left-to-right-android  2 border r.right r.left imageWidth border border r.top r.height imageHeight 2 border r.bottom r.top imageHeight border.. border border r.top r.height imageHeight 2 border r.bottom r.top imageHeight border border Paint p new Paint  p.setColor 0xFFC0C0C0.. 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.. 
 Horizontal scrolling grid view http://stackoverflow.com/questions/5725745/horizontal-scrolling-grid-view  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.. 
 How to crop image in android http://stackoverflow.com/questions/6464123/how-to-crop-image-in-android  0 mRight r.right int panDeltaY1 int Math.max 0 mTop r.top int panDeltaY2 int Math.min 0 mBottom r.bottom int panDeltaX.. 
 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 r new RectF matrix.mapRect r Log.i TAG Rect r.left r.top r.right r.bottom mOverAllScale NEWLY ADDED ANSWER To understand.. 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.. 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.. 
 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 the keyboard.. 
 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   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 100 pixels.. 
 Curl page from left to right android http://stackoverflow.com/questions/16772734/curl-page-from-left-to-right-android  d.getIntrinsicWidth  d.getIntrinsicHeight  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.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.. 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 r.bottom border d.setBounds r d.draw c   if y null return null else return b  @Override public void updatePage CurlPage.. 
 Horizontal scrolling grid view http://stackoverflow.com/questions/5725745/horizontal-scrolling-grid-view  helo  l l 100  r1 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.. 
 How to crop image in android http://stackoverflow.com/questions/6464123/how-to-crop-image-in-android  panDeltaX1 int Math.max 0 mLeft r.left int panDeltaX2 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.. 
 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  of the zoomed 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... do the 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.. 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 pinches in out the bitmap gets Zoomed out Zoomed in... 
 |