|
Android example source code file (shapes.xml)
The shapes.xml Android example source code<?xml version="1.0" encoding="utf-8"?> <!-- /* * Copyright (C) 4008 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 xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <string-array name="cube2_shapenames"> <item>"Cube" <item>"Dodecahedron" </string-array> <string-array name="cube2_shapeprefix"> <item>"cube" <item>"dodecahedron" </string-array> <!-- x,y,z tuples for the points defining the object --> <!-- stored as strings for easier human readability --> <string-array name="cubepoints"> <item>"-400 -400 -400" <item>"400 -400 -400" <item>"400 400 -400" <item>"-400 400 -400" <item>"-400 -400 400" <item>"400 -400 400" <item>"400 400 400" <item>"-400 400 400" </string-array> <!-- start,end point index tuples of the lines defining the object --> <string-array name="cubelines"> <!-- lines forming one face --> <item>"0 1" <item>"1 2" <item>"2 3" <item>"3 0" <!-- lines forming the opposite face --> <item>"4 5" <item>"5 6" <item>"6 7" <item>"7 4" <!-- lines connecting the two faces --> <item>"0 4" <item>"1 5" <item>"2 6" <item>"3 7" </string-array> <string-array name="dodecahedronpoints"> <item>"333.850000 0.000000 437.250000" <item>"103.400000 317.350000 437.250000" <item>"-270.050000 196.350000 437.250000" <item>"-270.050000 -196.350000 437.250000" <item>"103.400000 -317.350000 437.250000" <item>"540.100000 0.000000 103.400000" <item>"167.200000 513.700000 103.400000" <item>"-437.250000 317.350000 103.400000" <item>"-437.250000 -317.350000 103.400000" <item>"167.200000 -513.700000 103.400000" <item>"437.250000 317.350000 -103.400000" <item>"-167.200000 513.700000 -103.400000" <item>"-540.100000 0.000000 -103.400000" <item>"-167.200000 -513.700000 -103.400000" <item>"437.250000 -317.350000 -103.400000" <item>"270.050000 196.350000 -437.250000" <item>"-103.400000 317.350000 -437.250000" <item>"-333.850000 0.000000 -437.250000" <item>"-103.400000 -317.350000 -437.250000" <item>"270.050000 -196.350000 -437.250000" </string-array> <string-array name="dodecahedronlines"> <item>"0 1" <item>"0 4" <item>"0 5" <item>"1 2" <item>"1 6" <item>"2 3" <item>"2 7" <item>"3 4" <item>"3 8" <item>"4 9" <item>"5 10" <item>"5 14" <item>"6 10" <item>"6 11" <item>"7 11" <item>"7 12" <item>"8 12" <item>"8 13" <item>"9 13" <item>"9 14" <item>"10 15" <item>"11 16" <item>"12 17" <item>"13 18" <item>"14 19" <item>"15 16" <item>"15 19" <item>"16 17" <item>"17 18" <item>"18 19" </string-array> </resources> Other Android examples (source code examples)Here is a short list of links related to this Android shapes.xml source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 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.