alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Android example source code file (arrays.xml)

This example Android source code file (arrays.xml) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Android by Example" TM.

Java - Android tags/keywords

android, apache, conditions, copyright, is, item, license, of, option, or, project, source, the, used

The arrays.xml Android example source code

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2007 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at
  
          http://www.apache.org/licenses/LICENSE-2.0
  
     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->

<resources>
    <!-- Used in View/Spinner1.java -->
    <string-array name="colors">
        <item>red
        <item>orange
        <item>yellow
        <item>green
        <item>blue
        <item>violet
    </string-array>
    
    <!-- Used in View/Spinner1.java -->
    <string-array name="planets">
        <item>Mercury
        <item>Venus
        <item>Earth
        <item>Mars
        <item>Jupiter
        <item>Saturn
        <item>Uranus
        <item>Neptune
        <item>Pluto
    </string-array>

    <!-- Used in App/SearchInvoke.java -->
    <string-array name="search_menuModes">
        <item>Search Key
        <item>Menu Item
        <item>Type-To-Search
        <item>Disabled
    </string-array>
    
    <!-- Used in app/dialog examples -->
    <string-array name="select_dialog_items">
        <item>Command one
        <item>Command two
        <item>Command three
        <item>Command four
    </string-array>
    
    <string-array name="select_dialog_items2">
        <item>Map
        <item>Satellite
        <item>Traffic
        <item>Street view
    </string-array>
    
    <string-array name="select_dialog_items3">
        <item>Every Monday
        <item>Every Tuesday
        <item>Every Wednesday
        <item>Every Thursday
        <item>Every Friday
        <item>Every Saturday
        <item>Every Sunday
    </string-array>
    
    <!-- Used in app/menu examples -->
    <string-array name="entries_list_preference">
        <item>Alpha Option 01
        <item>Beta Option 02
        <item>Charlie Option 03  
    </string-array>

    <!-- Used in app/menu examples -->
    <string-array name="entryvalues_list_preference">
        <item>alpha
        <item>beta
        <item>charlie  
    </string-array>
    
</resources>

Other Android examples (source code examples)

Here is a short list of links related to this Android arrays.xml source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.