Integration

Integration with category.xml

This important thing must to know. At resource value, at file category.xml you will see integer array, That array contains id_category value and must be same with the table category at the server database. This three array size must be the SAME. So when you change category (order, size. etc) you must change this value too.

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <integer-array name="id_category">
        <item>1</item> <!--TOURIST_DESTINATION-->
        <item>2</item> <!--FOOD_DRINK-->
        <item>3</item> <!--HOTELS-->
        <item>4</item> <!--ENTERTAINMENT-->
        <item>5</item> <!--SPORT-->
 
        <item>6</item> <!--SHOPPING-->
        <item>7</item> <!--TRANSPORTATION-->
        <item>8</item> <!--RELIGION-->
        <item>9</item> <!--PUBLIC_SERVICES-->
        <item>10</item> <!--MONEY-->
 
        <item>11</item> <!--FEATURED PLACES-->
    </integer-array>
 
    <string-array name="category_name">
        <item>Tourist Destination</item>
        <item>Food & Drink</item>
        <item>Hotels</item>
        <item>Entertainment</item>
        <item>Sport</item>
 
        <item>Shopping</item>
        <item>Transportation</item>
        <item>Religion</item>
        <item>Public Services</item>
        <item>Money</item>
 
        <item>Featured Places</item>
    </string-array>
 
    <!--this icon array used for android only-->
    <integer-array name="category_icon">
        <item>@drawable/ic_nav_tour</item>
        <item>@drawable/ic_nav_food</item>
        <item>@drawable/ic_nav_hotels</item>
        <item>@drawable/ic_nav_ent</item>
        <item>@drawable/ic_nav_sport</item>
 
        <item>@drawable/ic_nav_shop</item>
        <item>@drawable/ic_nav_transport</item>
        <item>@drawable/ic_nav_religion</item>
        <item>@drawable/ic_nav_public</item>
        <item>@drawable/ic_nav_money</item>
 
        <item>@drawable/ic_nav_featured</item>
    </integer-array>
</resources>