Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Background with a cut in on edge / Custom background shape

Tags:

android

I have to create ViewPager with Fragments, and the main problem is that, each Fragment's background needs to have a cut in on edge in background. The cut in should expand while dragging. Do you have any ideas how to do it?

It should look like that:

enter image description here enter image description here

like image 799
RediOne1 Avatar asked Sep 21 '16 13:09

RediOne1


People also ask

How do I cut a Shape out of a photo?

Crop your picture to fit a shape Select a picture. Select the Picture Tools > Format tab, and then select Crop > Crop to Shape. From the shapes gallery, select the shape you want to crop to.


1 Answers

U can refer the Flowing Drawer in the git

Link :https://github.com/mxn21/FlowingDrawer

In this sample they are using a "LeftDrawerLayout" a custom class to handle this effect and its property is set by FlowingView.

Use this to create a custom class.

like image 81
Leons Avatar answered Oct 15 '22 06:10

Leons