The City Docs
7.2
7.2
  • Welcome
  • ADMIN PANEL
    • Import Project
    • Structure
    • Notification
    • MySQL Database
    • Add New Category
    • News Info
    • Custom Color
    • Change Log
  • ANDROID
    • Getting Started
      • Installation
      • Import Project
    • Structure
    • REST API
      • Configure API Url
      • Validate Your Web
    • Category
      • Integration
      • Add New
    • Firebase [must]
    • Ads
    • Maps & Analytics
    • Sort By Distance
    • Lazy Load
    • SQLite Database
    • Custom Color
    • Change Log
Powered by GitBook
On this page
  1. ANDROID

Custom Color

In Material Design Rule we should define any color that used in app. For All project you can customize your own color by editing res/values/color.xml

<?xml version="1.0" encoding="utf-8"?>
<resources>
 
    <color name="colorPrimary">#568AB7</color>
    <color name="colorPrimaryDark">#4576a1</color>
    <color name="colorPrimaryLight">#709cc2</color>
 
    <color name="colorAccent">#E6C14D</color>
    <color name="colorAccentDark">#C4A035</color>
    <color name="colorAccentLight">#FEEAAB</color>
 
    <color name="grey_hard">#96989A</color>
    <color name="grey_medium">#BDBFC1</color>
    <color name="grey_soft">#F5F5F5</color>
    <color name="grey_dark">#332C2B</color>
 
    <color name="grey_bg">#E6E6E6</color>
    <color name="icon_drawer_color">#727272</color>
    <color name="drawer_header_bg">#568AB7</color>
 
    <color name="marker_primary">#1F59A6</color>
    <color name="marker_secondary">#EE792A</color>
 
    <!-- Two Array bellow use for theme chooser -->
    <string-array name="arr_main_color_name">
        <item >Default</item>
        <item >Red</item>
        <item >Pink</item>
        . . .
    </string-array>
 
    <string-array name="arr_main_color_code">
        <item >#568AB7</item>
        <item >#F44336</item>
        <item >#EC407A</item>
        . . .
    </string-array>
 
</resources>
PreviousSQLite DatabaseNextChange Log

Last updated 2 years ago