Easily add Trapezium view in your layout.
dependencies {
implementation 'com.github.blessedCode07:trapezium-view:1.0'
}
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Easily can use Trapezium-View
with different orientation.
<com.arkapp.trapeziumview.TrapeziumCustomView
android:id="@+id/trapeziumCustomView"
android:layout_width="match_parent"
android:layout_height="350dp"
android:layout_margin="16dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:shapeColor="@color/teal_200"
app:edgeRadius="18"
app:slopeLength="88"
app:slopeType="bottomRight" />
-
Attribute Name Default Value Description app:shapeColor="@color/green" Red Set the bacground color of the trapezium. app:edgeRadius="8" 8dp Radius of the edges of the trapezium. app:slopeLength="88" 58dp The length of the trapezium slope. app:slopeType="bottomRight" bottomRight Orientation of trapezium slope (topRight, topLeft, bottomRight, bottomLeft etc.)