Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.alihrhera:UiUtilities:0.1.0'
}
<com.hrhera.expandrowview.ExpandRow
app:showDivider="true"
app:dividerColor="@color/black"
app:clickAnyPositionToOpen="true"
app:defaultOpen="true"
app:headerBackground="@color/black"
app:child_id="@layout/row_to_hide"
app:endIconColor="@color/white"
app:startIconColor="@color/white"
app:startIcon="@android:drawable/ic_menu_week"
app:titleTextColor="@color/white"
app:titleTextSize="12sp"
app:title="@string/app_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintTop_toTopOf="parent" />
And it's inherits CardView, so you can use all the properties of the CardView and modify it as you wish.
Like cardElevation, cardCornerRadius, cardBackgroundColor and so on .