This Activity already has an action bar supplied by the window decor

Trying to move over my stuff to use Toolbar instead of action bar but I keep getting an error saying java.lang.RuntimeException: Unable to start activity ComponentInfo{com.tyczj.weddingalbum/com.xxx.xxx.MainActivity}: java.lang.IllegalStateException: This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar … Read more

Android changing Floating Action Button color

I have been trying to change Material’s Floating Action Button color, but without success. <android.support.design.widget.FloatingActionButton android:id=”@+id/profile_edit_fab” android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:layout_gravity=”end|bottom” android:layout_margin=”16dp” android:clickable=”true” android:src=”https://stackoverflow.com/questions/30969455/@drawable/ic_mode_edit_white_24dp” /> I have tried to add: android:background=”@color/mycolor” or via code: FloatingActionButton fab = (FloatingActionButton) rootView.findViewById(R.id.profile_edit_fab); fab.setBackgroundColor(Color.parseColor(“#mycolor”)); or fab.setBackgroundDrawable(new ColorDrawable(Color.parseColor(“#mycolor”))); But none of the above worked. I have also tried the solutions in the … Read more