CollageEditorActivity.java
The following function generate UI based on existing user selection for different type of photo frames background. It includes generation of two photo selection area which user can choose to put their own photo into the frame.
void GenerateUI() {
}
The following function combine the photo frame and user photos to make into a final perfect photo with beautiful background. The photo will be created and saved into user phone/tablet device
void captureImage() {
}
This is an interesting part of code. The following code handle the touch event of the user photo within the frame define in FrameLayout. User can arrange their photo to fit the square frame exactly for the best view. Besides that, user can zoom in/out also to get the best result on their photo.
public boolean onTouch(View v, MotionEvent event) { }