How can I change icons color in button?

Issue I created button with text and icon: <Button android:id=”@+id/btnLinkToProfile” android:layout_width=”fill_parent” android:layout_height=”wrap_content” android:background=”@color/white” android:text=”@string/profile” android:gravity=”left|center_vertical” android:textAllCaps=”false” android:textColor=”@color/text” android:textSize=”15dp” android:drawableLeft=”@drawable/profile”/> And I want to set icon color, how to do this in <Button/> tag or it can be set only in

Continue reading

How to change bottom navigation icons on selection

Issue How to change bottom navigation icons on selection and unselection This was my previous code bottomBar.getBar().setBackgroundColor(getResources().getColor(R.color.bottom_tabs)); bottomBar.setActiveTabColor("#FFFFFE"); Solution First you have to make drawable selectable in your drawable folder <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_selected="true" android:drawable="@drawable/selected_icon"/> <item android:state_selected="false"

Continue reading