2 * Copyright (c) 2017 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
22 namespace VisualsUsingCustomView
24 // The collection of contacts
25 static class ContactsList
27 public static readonly ContactItem[] s_contactData = new ContactItem[]
29 new ContactItem ("Emmett Yates", "./images/gallery-small-43.jpg",
30 new Color((73.0f/255.0f),(182.0f/255.0f), (245.0f/255.0f), 1.0f),
31 (int)PrimitiveVisualShapeType.CONE),
32 new ContactItem ("Leslie Wong", "./images/gallery-2.jpg",
33 new Color((51.0f/255.0f), (51.0f/255.0f), (102.0f/255.0f), 1.0f),
34 (int)PrimitiveVisualShapeType.SPHERE),
35 new ContactItem ("Walter Jensen", "./images/gallery-0.jpg",
36 new Color((151.0f/255.0f), (214.0f/255.0f), (240.0f/255.0f), 1.0f),
37 (int)PrimitiveVisualShapeType.CYLINDER),
38 new ContactItem ("Dan Haynes", "./images/gallery-1.jpg",
39 new Color((102.0f/255.0f), (251.0f/255.0f), (102.0f/255.0f), 1.0f),
40 (int)PrimitiveVisualShapeType.CONICAL_FRUSTRUM),
41 new ContactItem ("Mable Hodges", "./images/gallery-3.jpg",
42 new Color((255.0f/255.0f), (102.0f/255.0f), (102.0f/255.0f), 1.0f),
43 (int)PrimitiveVisualShapeType.CUBE)
47 // The information for an individual contact
51 private string _imageURL;
55 public ContactItem (string name, string imageURL, Color color, int shape)
63 public string ImageURL