IBM Support

Change the Color of the Labels on the Maximo Mobile Android Worklist

Question & Answer


Question

Can I change the color of the labels on the worklist for my Android device running Maximo Mobile?

Answer

In Maximo Mobile there is a file called Mobilestyles.xml located in the following directory

maximo_home\mobileapplications\framework\mobile-base-android-resources\res\values

This files is where you can change the color of the test, in my example I will use red. This is a color predefined in the colors.xml located in the same directory

Open the mobilestyles.xml using a text editor and look for the following section,


<style name="startctrfgcolor" parent="@style/label">
<item name="android:textColor">@color/startcenter_default_label</item>
</style>

<!-- This is the base font style for Login and Start Center -->
<style name="startctr_font" parent="@style/startctrfgcolor">
<item name="android:textColor">@color/startctr_font_text_selector</item>
</style>

Change @color section to the color you want. Here I am using red,

<style name="startctrfgcolor" parent="@style/label"> 
       <item name="android:textColor">@color/red</item> 
   </style> 

       <!-- This is the base font style for Login and Start Center --> 
   <style name="startctr_font" parent="@style/startctrfgcolor"> 
       <item name="android:textColor">@color/red</item> 
   </style> 

You could also use #FF0000 instead of the word red. Since this is already defined in the colors.xml we can simply enter red.

save this file and run packagemobileandroid.cmd

The result will be red labels.









______________________________________________

[{"Product":{"code":"SSMAZG","label":"Maximo Mobile Suite"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Not Applicable","Platform":[{"code":"PF003","label":"Android"}],"Version":"7.5.1","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
17 June 2018

UID

swg21678927