I want to create a rectangular shape that will be resized with the touches of the user. Below image is a good example of what i want to do:

Is there any example like that? What do I need to study to implement this?
Thanks in advance,
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To implement a custom view, you derive a class from View 🙂 Override
onDraw()for looks, overrideonTouchEvent()for input processing. Note that in Android, you cannot draw on view outsideonDraw(); if you want to refresh the view, callinvalidate().You can implement draggable corners as separate views. For looks, just use ready-made images (feel free to derive from
ImageView). Dragging is implemented as moving your view in response to touch events.RelativeLayoutis your friend for arbitrary view positining.You can add homemade views to the layout; just go to XML editing and type a
<com.mypackage.MyViewClass>element.