Skip to content

Snappy1

  • Home
  • Android
  • What
  • How
  • Is
  • Can
  • Does
  • Do
  • Why
  • Are
  • Who
  • Toggle search form

[FIXED] Mesibo – How to change toolbar color in Android

Posted on November 11, 2022 By

Solution 1 :

to change the status bar (the notification bar):

<item name="android:windowLightStatusBar">false</item>
<item name="android:statusBarColor">@color/black</item>

to change the title bar:

enter image description here

change the value of “colorPrimary”

Solution 2 :

Use getConfig() to get the configuration instance and then use Config.mToolbarColor to set the color. You need to use ARGB color.

You can refer to the source code is here for other configurable properties

https://github.com/mesibo/ui-modules-android/blob/master/Messaging/messaging/src/main/java/com/mesibo/messaging/MesiboUI.java

Problem :

I am working with Mesibo SDK for android and I am trying to change the toolbar color without results.

I would to like to change both colors:
https://ibb.co/LrXf4d8

I tried to edit colors.xml and styles.xml but nothing is changing.

Someone has the solution?

I paste part of code.

activity_settings.xml:

 <com.google.android.material.appbar.AppBarLayout
    android_id="@+id/settings_appbar"
    android_layout_width="match_parent"
    android_layout_height="wrap_content"
    android_theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">

    <androidx.appcompat.widget.Toolbar
        android_id="@+id/settings_toolbar"
        android_layout_width="match_parent"
        android_layout_height="?attr/actionBarSize"
        android_background="?attr/colorPrimary"
        app_popupTheme="@style/ThemeOverlay.AppCompat.Light">

    </androidx.appcompat.widget.Toolbar>

In the colors.xml file I changed colorPrimary but nothing happened.

Comments

Comment posted by MrPlunk

yes, I tried to change value on colorPrimary in colors.xml file but nothing happend.

Comment posted by MrPlunk

Hi, thank you for your answer. I am working on android source code, is not possible to change it only editing colors.xml file? Because, on your documents there are not informations to use getConfig() and Config.mToolbarColor

Comment posted by mesibo

If you want it in a particular way, you can download the source code, modify and compile it yourself. It is open-source.

Comment posted by MrPlunk

Hi friend, thank you for your message. I downloaded the code from github. I started the code via android studio and I opened the colors.xml file. In this file I changed #fff222 and #ff00868b. I have installed the app on my phone but nothing has been changed. No way to change the colors editing the colors.xml file

READ  [FIXED] android - How to generate module consisting @ContributesAndroidInjector in dagger with kotlin?
Powered by Inline Related Posts

Comment posted by ibb.co/RHG78fG

please check this image:

Android Tags:android, colors, mesibo

Post navigation

Previous Post: [FIXED] java – is permission needed when choosing image from gallery on android?
Next Post: [FIXED] Android Java: How to get component in a custom view? (Trying to access components via findByViewId and get null)

Related Posts

[FIXED] Microsoft OneDrive File picker sends access Token and fileId to android Android
[FIXED] React Native: How to open OS settings in Android and iOS? Android
[FIXED] Android Studio Edit Text prints wrong input in the Emulator Android
[FIXED] java – Android: FileProvider.getUriForFile “Failed to find configured root” Android
[FIXED] android – Flutter FutureBuilder not continuing / working Android
[FIXED] java – my Random number generator always returning zeros Android

Archives

  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022

Categories

  • ¿Cómo
  • ¿Cuál
  • ¿Cuándo
  • ¿Cuántas
  • ¿Cuánto
  • ¿Qué
  • Android
  • Are
  • At
  • C'est
  • Can
  • Comment
  • Did
  • Do
  • Does
  • Est-ce
  • Est-il
  • For
  • Has
  • Hat
  • How
  • In
  • Is
  • Ist
  • Kann
  • Où
  • Pourquoi
  • Quand
  • Quel
  • Quelle
  • Quelles
  • Quels
  • Qui
  • Should
  • Sind
  • Sollte
  • Uncategorized
  • Wann
  • Warum
  • Was
  • Welche
  • Welchen
  • Welcher
  • Welches
  • Were
  • What
  • What's
  • When
  • Where
  • Which
  • Who
  • Who's
  • Why
  • Wie
  • Will
  • Wird
  • Wo
  • Woher
  • you can create a selvedge edge: You can make the edges of garter stitch more smooth by slipping the first stitch of every row.2022-02-04
  • you really only need to know two patterns: garter stitch

Recent Posts

  • What are the main features of Islamic education?
  • Is the Jeep 4xe worth it?
  • How does the ringer work on cast iron?
  • What is the biggest size interior door?
  • Is blue raspberry an original Jolly Rancher flavor?

Recent Comments

No comments to show.

Copyright © 2023 Snappy1.

Powered by PressBook Grid Dark theme