[Feature] Color selection based on user input
mutairibassam opened this issue · comments
Bassam A. commented
Noticed colors are fixed and not based on user input which limits developers to follow their application theme. I recommend to allow developers to specify the colors.
Qamar A. Safadi commented
Colors are not fixed,
You can pass them from your colors.xml file
or pass the hex code as the following :
<com.qamar.curvedbottomnaviagtion.CurvedBottomNavigation
android:id="@+id/bottomNavigation"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:cbn_background="#888787"
app:cbn_fabColor="#FF0A0A"
app:cbn_iconColor="#FF0A0A"
app:cbn_height="76dp"
app:cbn_icon_size="14dp"
app:cbn_selected_icon_size="48dp"
app:cbn_selectedIconColor="@color/purple_200"
app:cbn_titleColor="@color/purple_500"/>
Bassam A. commented
@qamarelsafadi Sorry, I am trying to educate myself to the code. Can you explain the use of hardcoded color values?
For example:
Qamar A. Safadi commented
@mutairibassam Yup no problem dear,
Its just for default value.