sudo apt install fonts-noto-color-emoji
- Open
~/.config/fontconfig/conf.d/01-emoji.conffile in an editor. - Copy-paste the lines below:
| #cloud-config | |
| # Option 1 - Full installation using cURL | |
| package_update: true | |
| package_upgrade: true | |
| groups: | |
| - docker | |
| system_info: |
| /* | |
| * The MIT License (MIT) | |
| * | |
| * Copyright (c) 2014 Matthieu Harlé | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights | |
| * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| * copies of the Software, and to permit persons to whom the Software is |
| <?xml version="1.0" encoding="utf-8"?> | |
| <!-- Add this as a debug manifest so the permissions won't be required by your production app --> | |
| <manifest xmlns:android="http://schemas.android.com/apk/res/android"> | |
| <uses-permission android:name="android.permission.WAKE_LOCK" /> | |
| <uses-permission android:name="android.permission.DISABLE_KEYGUARD" /> | |
| </manifest> |
| /* | |
| * Copyright (C) 2014 skyfish.jy@gmail.com | |
| * | |
| * 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 |
| public class DrawerActivity extends ActionBarActivity { | |
| private DrawerLayout mDrawerLayout = null; | |
| private ListView mDrawerList = null; | |
| private String[] mDrawerItems; | |
| private ActionBarDrawerToggle mDrawerToggle = null; | |
| @Override | |
| protected void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| setContentView(R.layout.activity_drawer_layout); |
| /* | |
| * This is a simple and easy approach to reuse the same | |
| * navigation drawer on your other activities. Just create | |
| * a base layout that conains a DrawerLayout, the | |
| * navigation drawer and a FrameLayout to hold your | |
| * content view. All you have to do is to extend your | |
| * activities from this class to set that navigation | |
| * drawer. Happy hacking :) | |
| * P.S: You don't need to declare this Activity in the | |
| * AndroidManifest.xml. This is just a base class. |