TextImageView icon indicating copy to clipboard operation
TextImageView copied to clipboard

How to add additional attributes?

Open power7714 opened this issue 8 years ago • 7 comments

I would like the text to be at the bottom of the image with a custom background. How can I go about doing this or can you add it?

power7714 avatar May 26 '16 10:05 power7714

You can add the text you want in code, and set the attributes you need, is that what you need?

anpez avatar May 26 '16 14:05 anpez

I'm able to set the text through code but I can't make the text rest at the bottom of the imageview rather than at the top. I don't want it to be draggable since the user can drag the image. Also, I would like to set a background for the text similar to this:

alt text

So you would have the imageview, then the text with custom background in front of it aligned to the bottom @ANPez

power7714 avatar May 27 '16 06:05 power7714

Ok, I understand. We just need to add methods to add this elements to the view, and some code in onDraw. It should be pretty straightforward, if you feel like making a pull request, I'd be happy to merge it.

anpez avatar May 27 '16 09:05 anpez

I apologize but I don't know how to do a pull request. Also, I wouldn't know how to create a background in onDraw for the canvas to show a custom background for the text rectangle. I'm not that advanced.

power7714 avatar May 29 '16 23:05 power7714

This is the only thing stopping me from releasing my app. I've been struggling with this for days now trying to figure it out. :/

power7714 avatar May 29 '16 23:05 power7714

Ok, I'll add it to the next release, but, unfortunately, I can't promise you any timelines on this.

anpez avatar May 30 '16 10:05 anpez

No worries. I appreciate you adding the features.

On Mon, May 30, 2016 at 3:05 AM Antonio Nicolás Pina < [email protected]> wrote:

Ok, I'll add it to the next release, but, unfortunately, I can't promise you any timelines on this.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ANPez/TextImageView/issues/4#issuecomment-222459194, or mute the thread https://github.com/notifications/unsubscribe/ABtH3aWCghhhkUVudc4ln0Vbzpaj0n8Fks5qGrZvgaJpZM4Inbat .

power7714 avatar May 31 '16 03:05 power7714