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.
20 using Tizen.NUI.Constants;
22 namespace VisualsUsingCustomView
24 // The collection of contacts
25 static class ContactsList
27 private const string resources = "/home/SERILOCAL/david.steele/Git/Tizen/nui/NUISamples/NUISamples/NUISamples.TizenTV/res";
29 public static readonly ContactItem[] s_contactData = new ContactItem[]
31 new ContactItem ("Emmett Yates", resources + "/images/gallery-small-43.jpg",
32 resources + "/images/mask.png",
33 new Color((73.0f/255.0f),(182.0f/255.0f), (245.0f/255.0f), 1.0f),
34 (int)PrimitiveVisualShapeType.Cone),
35 new ContactItem ("Leslie Wong", resources+ "/images/gallery-2.jpg",
36 resources + "/images/mask.png",
37 new Color((51.0f/255.0f), (51.0f/255.0f), (102.0f/255.0f), 1.0f),
38 (int)PrimitiveVisualShapeType.Sphere),
39 new ContactItem ("Walter Jensen", resources+ "/images/gallery-0.jpg",
40 resources + "/images/mask.png",
41 new Color((151.0f/255.0f), (214.0f/255.0f), (240.0f/255.0f), 1.0f),
42 (int)PrimitiveVisualShapeType.Cylinder),
43 new ContactItem ("Dan Haynes", resources+"/images/gallery-1.jpg",
44 resources + "/images/mask.png",
45 new Color((102.0f/255.0f), (251.0f/255.0f), (102.0f/255.0f), 1.0f),
46 (int)PrimitiveVisualShapeType.ConicalFrustrum),
47 new ContactItem ("Mable Hodges", resources+"/images/gallery-3.jpg",
48 resources + "/images/mask.png",
49 new Color((255.0f/255.0f), (102.0f/255.0f), (102.0f/255.0f), 1.0f),
50 (int)PrimitiveVisualShapeType.Cube)
54 // The information for an individual contact
58 private string _imageURL;
61 private string _maskURL;
63 public ContactItem(string name, string imageURL, string maskURL, Color color, int shape)
72 public string ImageURL