how set emoji by unicode in a textview? - SemicolonWorld

文章推薦指數: 80 %
投票人數:10人

??? unicode = U+1F60A String emoji ... AskQuestion ProgrammingTutorials All PHP Wordpress Codeigniter Laravel .Net Drupal CSS JavaScript jQuery Python AngularJS Android Node.js SEO Joomla D3.js iOS BackboneJS CakePHP JasmineJS ReactJS Bootstrap Facebook GoogleAPI GoogleMap .htaccess LinkedIn Magento MySQL PayPal Twitter Ubuntu WebDesign WebDevelopment Ajax HTML Java howsetemojibyunicodeinatextview? HiI'dliketodothefollowing: ???unicode=U+1F60A Stringemoji=getEmijoByUnicode(unicode) Stringtext="Sohappy" textview.setText(text+emoji); togetthisinmytextview: Sohappy???? Howtoimplement'getEmijoByUnicode(unicode)'? Whatshouldbethetypeof'unicode'?(String/char/int??!) PleasenotethatIdoNOTwanttouseDrawables! android unicode textview encode emoji Rakesh 3Yearsago Answers2 Subscribe SubmitAnswer kishanpatel 3Yearsago YoucandirectlyuseEmojisinstringresourcesbyusingthedecimalcodelikethis: forexample: Iamhappy> NOTE:ThexisrequiredinandroidvsstandardXMLescapesequences. sagar 3Yearsago Foundasolution: InmyunicodeIreplaced'U+'by'0x' Example:replace'U+1F60A'by'0x1F60A' ThiswayIgotan'int'like intunicode=0x1F60A; Whichcanbeusedwith publicStringgetEmojiByUnicode(intunicode){ returnnewString(Character.toChars(unicode)); } SoTextviewdisplays????withoutDrawable Tryitwithhttp://apps.timwhitlock.info/emoji/tables/unicode RelatedArticles MobileNumberVerificationviaOTPSMSusingPHP 0 PHP June19,2019 PayPalProPaymentGatewayIntegrationinPHP 0 PayPal May23,2019 Multi-selectDropdownListwithCheckboxusingjQuery 0 jQuery May23,2019 HowtoAddDaystoDateinPHP 0 PHP May23,2019 BootstrapDatetimepicker–AddDate-TimePickertoInputField 0 Bootstrap May23,2019 AcceptingPaymentsforMultipleItemswithPayPalinPHP 0 PHP May23,2019 HowtoEmbedPDFDocumentinHTMLWebPage 0 HTML May23,2019 CreateTopNotificationBarwithHTMLandCSS 0 HTML May23,2019 LoginwithGoogleAccountinCodeIgniter 0 CodeIgniter May23,2019 Byusingoursite,youacknowledgethatyouhavereadandunderstandourPrivacyPolicy&CookiePolicyandTermsandConditions Iagree SubmitPaidRequest × Oops!Somethingwentwrong:(Tryagain... OK × SubmitYourRequirement(pricestartsfrom$10) × YourPaidServiceRequestSentSuccessfully!WeWillContactSoon PleaseFillRecaptcha. Name* Email* Description* Sendrequest



請為這篇文章評分?