Tabnine Logo
BidiFormatter.unicodeWrap
Code IndexAdd Tabnine to your IDE (free)

How to use
unicodeWrap
method
in
android.text.BidiFormatter

Best Java code snippets using android.text.BidiFormatter.unicodeWrap (Showing top 7 results out of 315)

origin: geniusgithub/AndroidDialer

private Intent getCreateDocIntent() {
  final Intent intent = new Intent(Intent.ACTION_CREATE_DOCUMENT);
  intent.addCategory(Intent.CATEGORY_OPENABLE);
  intent.setType(VCardService.X_VCARD_MIME_TYPE);
  intent.putExtra(Intent.EXTRA_TITLE, mBidiFormatter.unicodeWrap(
      getString(R.string.exporting_vcard_filename), TextDirectionHeuristics.LTR));
  return intent;
}
origin: geniusgithub/AndroidDialer

/**
 * Joins a list of {@link CharSequence} into a single {@link CharSequence} seperated by a
 * localized delimiter such as ", ".
 *
 * @param resources Resources used to get list delimiter.
 * @param list List of char sequences to join.
 * @return Joined char sequences.
 */
public static CharSequence join(Resources resources, Iterable<CharSequence> list) {
  StringBuilder sb = new StringBuilder();
  final BidiFormatter formatter = BidiFormatter.getInstance();
  final CharSequence separator = resources.getString(R.string.list_delimeter);
  Iterator<CharSequence> itr = list.iterator();
  boolean firstTime = true;
  while (itr.hasNext()) {
    if (firstTime) {
      firstTime = false;
    } else {
      sb.append(separator);
    }
    // Unicode wrap the elements of the list to respect RTL for individual strings.
    sb.append(formatter.unicodeWrap(
        itr.next().toString(), TextDirectionHeuristics.FIRSTSTRONG_LTR));
  }
  // Unicode wrap the joined value, to respect locale's RTL ordering for the whole list.
  return formatter.unicodeWrap(sb.toString());
}
origin: geniusgithub/AndroidDialer

final String displayNumberStr = mBidiFormatter.unicodeWrap(displayNumber,
    TextDirectionHeuristics.LTR);
origin: geniusgithub/AndroidDialer

text = ContactDisplayUtils.getTtsSpannedPhoneNumber(resources,
    R.string.search_shortcut_call_number,
    mBidiFormatter.unicodeWrap(number, TextDirectionHeuristics.LTR));
drawableId = R.drawable.ic_search_phone;
break;
origin: geniusgithub/AndroidDialer

final String displayNumberStr = mBidiFormatter.unicodeWrap(
    displayNumber.toString(), TextDirectionHeuristics.LTR);
origin: wasdennnoch/AndroidN-ify

        getContext().getResources().getString(R.string.phone_type_and_phone_number),
        mContact.getPhoneType(),
        BidiFormatter.getInstance().unicodeWrap(mContact.getPhoneNumber(),
            TextDirectionHeuristics.LTR));
setSummary(summary);
origin: geniusgithub/AndroidDialer

} else {
  menu.setHeaderTitle(PhoneNumberUtilsCompat.createTtsSpannable(
      BidiFormatter.getInstance().unicodeWrap(number, TextDirectionHeuristics.LTR)));
android.textBidiFormatterunicodeWrap

Popular methods of BidiFormatter

  • getInstance
  • isRtlContext

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getApplicationContext (Context)
  • onRequestPermissionsResult (Fragment)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now