Cosc 5/4730 EmojiCompat library..

Slides:



Advertisements
Similar presentations
Android Application Development Tutorial. Topics Lecture 6 Overview Programming Tutorial 3: Sending/Receiving SMS Messages.
Advertisements

Chapter 3: Engage! Android User Input, Variables, and Operations
All About Android Introduction to Android 1. Creating a New App “These aren’t the droids we’re looking for.” Obi-wan Kenobi 1. Bring up Eclipse. 2. Click.
Filip Debelić What is it? Android is a mobile operating system (OS) based on the Linux kernel and currently developed by Google Android,
Cosc 5/4730 Game Design. A short game design primer. A game or animation is built on an animation loop. – Instance variables of “objects” are updated.
Android Form Elements. Views Provide common UI functionality Form elements: text area, button, radio button, checkbox, dropdown list, etc. Date and time.
How to make it work? Doncho Minkov Telerik Academy academy.telerik.com Technical Trainer
App Development on Android. Contents  First Milestone  Second Milestone  Third Milestone  Last Milestone 
Presenting Lists of Data. Lists of Data Issues involved – unknown number of elements – allowing the user to scroll Data sources – most common ArrayList.
Introduction to Android Development CS 5115 Fall 2013 September 23.
Cosc 5/4730 Sign, convert, and install Android files on Blackberry Playbook.
 Understanding an activity  Starting an activity  Passing information between activities  Understanding intents  Understanding the activity lifecycle.
1 Mobile Computing Monetizing An App Copyright 2014 by Janson Industries.
Understanding Hello Android 1 CS300. Activity  Similar to a form  Base class for the visual, interactive components of your application  Android API.
DUE Hello World on the Android Platform.
1 Announcements Homework #2 due Feb 7 at 1:30pm Submit the entire Eclipse project in Blackboard Please fill out the when2meets when your Project Manager.
Engage! Android User Input, Variables,
Cosc 5/4730 Dialogs and below 3.0 and above (fragment)
Strategies for GUI Migration.  Have a plan!  Appx allows pull down menus, toolbars, buttons, pictures, sound, animations (limited), colours, fonts,
5-1 More UI CSNB544 Mobile Application Development Thanks to Utexas Austin.
Cosc 4730 Android Fragments. Fragments You can think of a fragment as a modular section of an activity, which has its own lifecycle, receives its own.
First Venture into the Android World Chapter 1 Part 2.
Announcements Homework #2 will be posted after class due Thursday Feb 7, 1:30pm you may work with one other person No office hours tonight (sorry!) I will.
Android Boot Camp Demo Application – Part 1. Development Environment Set Up Download and install Java Development Kit (JDK) Download and unzip Android.
Android Using Menus Notes are based on: The Busy Coder's Guide to Android Development by Mark L. Murphy Copyright © CommonsWare, LLC. ISBN:
HW#9 Clues CSCI 571 Fall, HW#9 Prototype
© 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Android Boot Camp.
Recap of Part 1 Terminology Windows FormsAndroidMVP FormActivityView? ControlViewView? ?ServiceModel? Activities Views / ViewGroups Intents Services.
CS378 - Mobile Computing More UI - Part 2. Special Menus Two special application menus – options menu – context menu Options menu replaced by action bar.
CS378 - Mobile Computing User Interface Basics. User Interface Elements View – Control – ViewGroup Layout Widget (Compound Control) Many pre built Views.
Cosc 5/4735 YouTube API. YouTube The YouTube Android Player API enables you to incorporate video playback functionality into your Android applications.
| Mobile Accessibility Development Making an Accessible App Usable Scott McCormack.
ANDROID LAYOUTS AND WIDGETS. Slide 2 Introduction Parts of the Android screen Sizing widgets and fonts Layouts and their characteristics Buttons, checkboxes.
CMPE419 Mobile Application Development Asst.Prof.Dr.Ahmet Ünveren SPRING Computer Engineering Department Asst.Prof.Dr.Ahmet Ünveren
Cosc 5/4730 Support design library. Support Design library Adds (API 9+) back support to a number of 5.0 lollipop widgets and material design pieces –
Android apps development - Eclipse, Android SDK, and ADT plugin Introduction of.
UI Redux, Navigation Patterns, Tabbed Views, Pagers, Drawers
Siemens TIA Portal Openness Feature Functionality and Possible Use European Spallation Source – Integrated Control System Division Nick Levchenko CERN.
1 I18N testing Netbeans 6.8 beta 1.
Lecture 3 Zablon Ochomo Android Layouts Lecture 3 Zablon Ochomo
Android – Event Handling
Android Boot Camp for Developers Using Java, 3E
Basic Controls and Plugins
Creation of an Android App By Keith Lynn
Mobile Application Development Chapter 4 [Android Navigation and Interface Design] IT448-Fall 2017 IT448- Fall2017.
android architecture components with mvvm
Politeknik Elektronika Negeri Surabaya
Sensors, maps and fragments:
New Feature Highlights (2016)
Android SDK & App Development
Android App Computations
CS323 Android Model-View-Controller Architecture
Android Programming Lecture 6
CIS 470 Mobile App Development
Adding Functionality to the App Tip Calculator App Activity and the Activity Lifecycle onCreate is called by the system when an Activity.
Correcting an Existing Address via Colleague
Android: Preferences and user settings data
BMI Android Application will take weight and height from the users to calculate Body Mass Index (BMI) with the information, whether user is underweight,
Android Developer Fundamentals V2
Android Topics Threads and the MessageQueue
Android Developer Fundamentals V2
CIS 470 Mobile App Development
Android Developer Fundamentals V2
Mobile Programmming Dr. Mohsin Ali Memon.
Cosc 4730 An Introduction.
User Interface Screen Elements
Activities and Fragments
Getting Started With LastPass Enterprise
Android Sensor Programming
11/11/2019 1:15 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Presentation transcript:

Cosc 5/4730 EmojiCompat library.

Emoji Compatibility The EmojiCompat support library aims to keep Android devices up to date with the latest emoji. It prevents your app from showing missing emoji characters in the form of ☐, which indicates that your device does not have a font to display the text. By using the EmojiCompat support library, your app users do not need to wait for Android OS updates to get the latest emoji. Supports API 19+

How it works. It identifies emoji for a given CharSequence, replaces them with EmojiSpans, if required, and finally renders the emoji glyphs. demonstration the process.

implementation First the app need to initial the downloadable font configuration IE get the more current font set that supports the newer emoji. This can be as a download or via bundled font in the app. NOTE, this must come before any setContentView call, otherwise, it will force close. Use the bundled font for EmojiCompat EmojiCompat.Config config; config = new BundledEmojiCompatConfig(getApplicationContext()); EmojiCompat.init(config);

Implementation (2) Use a downloadable font for EmojiCompat EmojiCompat.Config config; final FontRequest fontRequest = new FontRequest( "com.google.android.gms.fonts", "com.google.android.gms", "Noto Color Emoji Compat", R.array.com_google_android_gms_fonts_certs); config = new FontRequestEmojiCompatConfig(getApplicationContext(), fontRequest) .setReplaceAll(true) .registerInitCallback(new EmojiCompat.InitCallback() { @Override public void onInitialized() { … } @Override public void onFailed(@Nullable Throwable throwable) { … } }); } EmojiCompat.init(config);

Use EmojiCompat widgets Instead of a TextView use <android.support.text.emoji.widget.EmojiTextView android:layout_width="wrap_content" android:layout_height="wrap_content"/> Instead of EditText use <android.support.text.emoji.widget.EmojiEditText And instead of Button use <android.support.text.emoji.widget.EmojiButton

For regular textviews and customview You can process the text so it displays correct for the rest of the widgets and customViews as well. Regular TextView without EmojiCompat support; you have to manually process the text TextView regularTextView = findViewById(R.id.regular_text_view); EmojiCompat.get().registerInitCallback(new InitCallback(regularTextView)); The call uses the compat system to process the text into emojispan regularTextView.setText( compat.process( text) );

Keyboard IMEs With the EmojiCompat and font with the app, the keyboard is updated to handle the new emojis as well. So example android 9 added the star-struck emoji and it will show in the keyboard.

Example code In UI advanced, the emoji Compat demo.

References https://developer.android.com/guide/topics/ui/look-and-feel/emoji- compat http://codinginfinite.com/android-emojicompat-library-example- tutorial/ https://medium.com/exploring-android/exploring-the-android-emoji- compatibility-library-1b9f3bb724aa http://www.iemoji.com/view/emoji/2487/smileys-people/star-struck

Q A &