Trapezium View for Android…!!!

Abdul Rehman
2 min readNov 29, 2020

--

UI examples of trapezium-view

Have you ever stuck when you need a view with a slope in your app? 😞

Never again. Now you can easily add trapezium-view into your layout and make complex UI effortlessly!😍

How to use trapezium-view

Add it in your root build.gradle at the end of repositories:

Add trapezium-view into your layout

Customizations

slopeLength parameter description

app:shapeColor

This will change the background color of the trapezium-view

app:edgeRadius

This will set the radius of the trapezium-view edges. Set the value in dp

app:slopeLength

This will set the length of the trapezium-view slope. Set the value in dp

app:slopeType

This will set orientation of trapezium-view. Their are total 8 orientation of trapezium-view.

(bottomRight, bottomLeft, topRight, topLeft, rightTop, rightBottom, leftTop, leftBottom)

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Abdul Rehman
Abdul Rehman

Written by Abdul Rehman

Mobile developer in love with Flutter and Android ♥️

No responses yet

Write a response