diff options
author | Dianne Hackborn <> | 2009-03-27 14:59:22 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-27 14:59:22 -0700 |
commit | 88fb1069bf254dc68c83546496592a9b5e739a07 (patch) | |
tree | 2333fd9e614ad518822ac1458ae2fb8c90db0ad9 /core/java/com/android | |
parent | 7ec434e2e179776d75c8a4da66dcfd2ee630c5d8 (diff) | |
download | frameworks_base-88fb1069bf254dc68c83546496592a9b5e739a07.zip frameworks_base-88fb1069bf254dc68c83546496592a9b5e739a07.tar.gz frameworks_base-88fb1069bf254dc68c83546496592a9b5e739a07.tar.bz2 |
AI 143147: Manual integration
Automated import of CL 143147
Diffstat (limited to 'core/java/com/android')
-rw-r--r-- | core/java/com/android/internal/widget/Smileys.java | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/core/java/com/android/internal/widget/Smileys.java b/core/java/com/android/internal/widget/Smileys.java new file mode 100644 index 0000000..d5e8d03 --- /dev/null +++ b/core/java/com/android/internal/widget/Smileys.java @@ -0,0 +1,66 @@ +/* + * Copyright (C) 2009 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. + */ + +package com.android.internal.widget; + +import com.android.internal.R; + +/** + * Temp stupidity until we have a real emoticon API. + */ +public class Smileys { + private static final int[] sIconIds = { + R.drawable.emo_im_happy, + R.drawable.emo_im_sad, + R.drawable.emo_im_winking, + R.drawable.emo_im_tongue_sticking_out, + R.drawable.emo_im_surprised, + R.drawable.emo_im_kissing, + R.drawable.emo_im_yelling, + R.drawable.emo_im_cool, + R.drawable.emo_im_money_mouth, + R.drawable.emo_im_foot_in_mouth, + R.drawable.emo_im_embarrassed, + R.drawable.emo_im_angel, + R.drawable.emo_im_undecided, + R.drawable.emo_im_crying, + R.drawable.emo_im_lips_are_sealed, + R.drawable.emo_im_laughing, + R.drawable.emo_im_wtf + }; + + public static int HAPPY = 0; + public static int SAD = 1; + public static int WINKING = 2; + public static int TONGUE_STICKING_OUT = 3; + public static int SURPRISED = 4; + public static int KISSING = 5; + public static int YELLING = 6; + public static int COOL = 7; + public static int MONEY_MOUTH = 8; + public static int FOOT_IN_MOUTH = 9; + public static int EMBARRASSED = 10; + public static int ANGEL = 11; + public static int UNDECIDED = 12; + public static int CRYING = 13; + public static int LIPS_ARE_SEALED = 14; + public static int LAUGHING = 15; + public static int WTF = 16; + + public static int getSmileyResource(int which) { + return sIconIds[which]; + } +} |