Home | History | Annotate | Download | only in widget
      1 /*
      2  * Copyright (C) 2009 The Android Open Source Project
      3  *
      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
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     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.
     15  */
     16 
     17 package com.android.internal.widget;
     18 
     19 import com.android.internal.R;
     20 
     21 /**
     22  * Temp stupidity until we have a real emoticon API.
     23  */
     24 public class Smileys {
     25     private static final int[] sIconIds = {
     26         R.drawable.emo_im_happy,
     27         R.drawable.emo_im_sad,
     28         R.drawable.emo_im_winking,
     29         R.drawable.emo_im_tongue_sticking_out,
     30         R.drawable.emo_im_surprised,
     31         R.drawable.emo_im_kissing,
     32         R.drawable.emo_im_yelling,
     33         R.drawable.emo_im_cool,
     34         R.drawable.emo_im_money_mouth,
     35         R.drawable.emo_im_foot_in_mouth,
     36         R.drawable.emo_im_embarrassed,
     37         R.drawable.emo_im_angel,
     38         R.drawable.emo_im_undecided,
     39         R.drawable.emo_im_crying,
     40         R.drawable.emo_im_lips_are_sealed,
     41         R.drawable.emo_im_laughing,
     42         R.drawable.emo_im_wtf
     43     };
     44 
     45     public static int HAPPY = 0;
     46     public static int SAD = 1;
     47     public static int WINKING = 2;
     48     public static int TONGUE_STICKING_OUT = 3;
     49     public static int SURPRISED = 4;
     50     public static int KISSING = 5;
     51     public static int YELLING = 6;
     52     public static int COOL = 7;
     53     public static int MONEY_MOUTH = 8;
     54     public static int FOOT_IN_MOUTH = 9;
     55     public static int EMBARRASSED = 10;
     56     public static int ANGEL = 11;
     57     public static int UNDECIDED = 12;
     58     public static int CRYING = 13;
     59     public static int LIPS_ARE_SEALED = 14;
     60     public static int LAUGHING = 15;
     61     public static int WTF = 16;
     62 
     63     public static int getSmileyResource(int which) {
     64         return sIconIds[which];
     65     }
     66 }
     67