diff options
author | Ankush Sachdeva <sankush@yahoo.co.in> | 2015-01-09 20:01:46 +0530 |
---|---|---|
committer | Ankush Sachdeva <sankush@yahoo.co.in> | 2015-01-09 20:01:46 +0530 |
commit | 58545344199e6b291595bbd8fc3ab9169b4fcd62 (patch) | |
tree | 48b2e1bda70f5d681ce69325ae7e3a3a8790bcec /lib/res/layout | |
parent | 0f5fefe35b5b15338034a9f1928680b2d1ac3f66 (diff) |
Added sample project
Diffstat (limited to 'lib/res/layout')
-rw-r--r-- | lib/res/layout/emojicon_grid.xml | 27 | ||||
-rw-r--r-- | lib/res/layout/emojicon_item.xml | 32 | ||||
-rw-r--r-- | lib/res/layout/emojicons.xml | 119 |
3 files changed, 178 insertions, 0 deletions
diff --git a/lib/res/layout/emojicon_grid.xml b/lib/res/layout/emojicon_grid.xml new file mode 100644 index 0000000..457f875 --- /dev/null +++ b/lib/res/layout/emojicon_grid.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2013 Klamr. All rights reserved. + ~ + ~ This software is the confidential and proprietary information of Klamr or one of its + ~ subsidiaries. You shall not disclose this confidential information and shall use it only in + ~ accordance with the terms of the license agreement or other applicable agreement you entered into + ~ with Klamr. + ~ + ~ KLAMR MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE SOFTWARE, EITHER + ~ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, + ~ FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. KLAMR SHALL NOT BE LIABLE FOR ANY LOSSES + ~ OR DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR + ~ ITS DERIVATIVES. + --> + +<GridView xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/Emoji_GridView" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@android:color/transparent" + android:cacheColorHint="@android:color/transparent" + android:columnWidth="40dip" + android:horizontalSpacing="0dip" + android:numColumns="auto_fit" + android:scrollbars="vertical" + android:verticalSpacing="0dip" /> diff --git a/lib/res/layout/emojicon_item.xml b/lib/res/layout/emojicon_item.xml new file mode 100644 index 0000000..ed11041 --- /dev/null +++ b/lib/res/layout/emojicon_item.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright 2014 Ankush Sachdeva + ~ + ~ 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. + --> + +<FrameLayout + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:emojicon="http://schemas.android.com/apk/res-auto" + android:layout_width="wrap_content" + android:layout_height="wrap_content"> + <github.ankushsachdeva.emojicon.EmojiconTextView + android:layout_gravity="center" + android:id="@+id/emojicon_icon" + android:layout_width="36dip" + android:layout_height="36dip" + emojicon:emojiconSize="30dip" + android:focusable="false" + android:focusableInTouchMode="false" + android:gravity="center"/> +</FrameLayout>
\ No newline at end of file diff --git a/lib/res/layout/emojicons.xml b/lib/res/layout/emojicons.xml new file mode 100644 index 0000000..287923d --- /dev/null +++ b/lib/res/layout/emojicons.xml @@ -0,0 +1,119 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright 2014 Ankush Sachdeva + ~ + ~ 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. + --> + +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:background="@drawable/keyboard_background_holo" + android:layout_width="match_parent" + android:layout_height="match_parent"> + <LinearLayout + android:id="@+id/emojis_tab" + android:layout_width="match_parent" + android:layout_height="50dip" + android:layout_alignParentTop="true" + android:orientation="horizontal"> + <ImageButton + android:background="@null" + android:layout_width="0dip" + android:layout_height="match_parent" + android:layout_weight="1" + android:scaleType="center" + android:id="@+id/emojis_tab_0_recents" + android:src="@drawable/ic_emoji_recent_light"/> + <View + android:layout_width="1px" + android:layout_height="match_parent" + android:background="#888888"/> + <ImageButton + android:background="@null" + android:layout_width="0dip" + android:layout_height="match_parent" + android:layout_weight="1" + android:scaleType="center" + android:id="@+id/emojis_tab_1_people" + android:src="@drawable/ic_emoji_people_light"/> + <View + android:layout_width="1px" + android:layout_height="match_parent" + android:background="#888888"/> + <ImageButton + android:background="@null" + android:layout_width="0dip" + android:layout_height="match_parent" + android:layout_weight="1" + android:scaleType="center" + android:id="@+id/emojis_tab_2_nature" + android:src="@drawable/ic_emoji_nature_light"/> + <View + android:layout_width="1px" + android:layout_height="match_parent" + android:background="#888888"/> + <ImageButton + android:background="@null" + android:layout_width="0dip" + android:layout_height="match_parent" + android:layout_weight="1" + android:scaleType="center" + android:id="@+id/emojis_tab_3_objects" + android:src="@drawable/ic_emoji_objects_light"/> + <View + android:layout_width="1px" + android:layout_height="match_parent" + android:background="#888888"/> + <ImageButton + android:background="@null" + android:layout_width="0dip" + android:layout_height="match_parent" + android:layout_weight="1" + android:scaleType="center" + android:id="@+id/emojis_tab_4_cars" + android:src="@drawable/ic_emoji_places_light"/> + <View + android:layout_width="1px" + android:layout_height="match_parent" + android:background="#888888"/> + <ImageButton + android:background="@null" + android:layout_width="0dip" + android:layout_height="match_parent" + android:layout_weight="1" + android:scaleType="center" + android:id="@+id/emojis_tab_5_punctuation" + android:src="@drawable/ic_emoji_symbols_light"/> + <View + android:layout_width="1px" + android:layout_height="match_parent" + android:background="#888888"/> + <ImageButton + android:background="@null" + android:layout_width="0dip" + android:layout_height="match_parent" + android:layout_weight="1" + android:id="@+id/emojis_backspace" + android:src="@drawable/sym_keyboard_delete_holo_dark"/> + </LinearLayout> + <android.support.v4.view.ViewPager + android:layout_below="@id/emojis_tab" + android:id="@+id/emojis_pager" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true"/> + <View + android:layout_width="match_parent" + android:layout_height="1px" + android:layout_below="@id/emojis_tab" + android:background="#8f8f8f"/> +</RelativeLayout> |