IBM Support

Maximo Mobile change the color of the start center labels.

Technical Blog Post


Abstract

Maximo Mobile change the color of the start center labels.

Body

 

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 text, 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.
 
  image

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSLKT6","label":"IBM Maximo Asset Management"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

UID

ibm11132275