-1

Good day guys.I want to make the bottom part of my own image an curved line.Not to talk back and forth here is an image which i want to get into the application. Important to notice that i have reached 10th result of the google and everything i came up was only some curved image not in my desired way,the whole image was curved and the lines of 4 parts were connected to single one. So basically i want the image to be as rectangle as it comes from server and only curve the bottom part of a bitmap.Is that even possible?enter image description here

Noticae the bottom line is curved,that what i want to achieve,and rest parts are rectangle.Thank you for your time.

VA Entertaiment
  • 565
  • 2
  • 7
  • 20
  • OK what i understood is you want to curved drawable which will suits to your design am i right? – Milind Vyas Sep 15 '16 at 13:14
  • hey, for bottom curved view, now you have to make an image with gray or white background. And apply this as a background to your bottom views parent. – Rahul Sharma Sep 15 '16 at 13:47

2 Answers2

1

If you are trying to change the image itself, photoshop or any editing tool is the right way to do it. besides if you are getting the image from a server somewhere then getting the image adjusted from the server, instead of modifying it on the client side(o your app) has lot of benefits. But, if want to change the look not the image itself, then that could be achieved by creating a custom image view like answered here. You can also use a card view hold your image view to achieve some curves, although i don't think that would be efficient or satisfactory for your case.

Community
  • 1
  • 1
Yordan
  • 147
  • 5
0

Sometimes, editing the image in Photoshop is the right way. This can save your android app CPU time.

user1506104
  • 4,616
  • 2
  • 49
  • 67
  • your right but sometimes i guess you should read a little carefull to notice that i receive image from backend ,meaning i cant receive image from server,tell user to wait untill i manually edit in photoshop and put back into app -.- this is purely pointless answer – VA Entertaiment Sep 15 '16 at 13:04
  • one solution you can do is override the onDraw of View, then manually create curved mask on top of the image. – user1506104 Sep 15 '16 at 13:55
  • ok i thought about that too,but how then i get the bitmap from canvas? – VA Entertaiment Sep 15 '16 at 14:22
  • i think it is not possible to get the bitmap from the canvas. however, you said it is coming from the server. so you already have the reference to your bitmap before passing it to your canvas. keep the reference maybe? – user1506104 Sep 17 '16 at 14:15