LogoActivity - maplesyrup/maple-android GitHub Wiki
Overview
This activity provides an interface to add a logo to the ad.
The user first clicks a button to select a logo to use. This will take them to the LogoPickerActivity where they will have a choice of logos based on the company the ad is tagged with.
Once a logo is selected the user can click on the ad to place it. They can resize the logo and move it around. When they are happy with it they can hit save to save changes and return to the main editor.
There is also a cancel button that simply returns the user to EditorActivity with no changes made.
Features
- The current set up of LogoActivity provides a Select Logo button that takes them to the LogoPickerActivity where they can pick a logo to ad.
- Once a logo is picked they can click on the ad to place it.
- There are two buttons to increase or decrease the size of the logo. 4.Save and cancel buttons are at the bottom of the screen.
Bugs
The ad bitmap is shown scaled. We track the logo's coordinates in relation to the scaled bitmap. When the two views are combined however, the full size bitmap is used, which means the logo coordinates (and size) are different. The resulting product has the logo in a different position then what was placed. A similar problem happens with text placement.
Planned Features
- Gesture recognition for moving and resizing the logo
- Ability to zoom in on the picture
- Rotation of the logo
- Undo functionality