java.text.Bidi.getBaseLevel()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(182)

本文整理了Java中java.text.Bidi.getBaseLevel()方法的一些代码示例,展示了Bidi.getBaseLevel()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Bidi.getBaseLevel()方法的具体详情如下:
包路径:java.text.Bidi
类名称:Bidi
方法名:getBaseLevel

Bidi.getBaseLevel介绍

[英]Returns the base level.
[中]返回基本级别。

代码示例

代码示例来源:origin: stackoverflow.com

@Override
  public View getView(final int position, View convertView, ViewGroup parent) {
    ViewHolder holder;

    Bidi bidi = new Bidi(userList.get(position).getName(), Bidi.DIRECTION_DEFAULT_LEFT_TO_RIGHT);
    if(bidi.getBaseLevel() == 0)
      convertView = myInflater.inflate(R.layout.list_add_friends_row, null);
    else
      convertView = myInflater.inflate(R.layout.list_add_friends_row_mirror, null);

...

代码示例来源:origin: apache/pdfbox

if (!bidi.isMixed() && bidi.getBaseLevel() == Bidi.DIRECTION_LEFT_TO_RIGHT)

代码示例来源:origin: at.bestsolution.eclipse/com.ibm.icu.base

/**
 * Return the base level (0 if left-to-right, 1 if right-to-left).
 *
 * @return the base level
 *
 * @throws IllegalStateException if this call is not preceded by a successful
 *         call to <code>setPara</code> or <code>setLine</code>
 *
 * @stable ICU 3.8
 */
public int getBaseLevel()
{
  return bidi.getBaseLevel();
}

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/com.ibm.icu.base

/**
 * Return the base level (0 if left-to-right, 1 if right-to-left).
 *
 * @return the base level
 *
 * @throws IllegalStateException if this call is not preceded by a successful
 *         call to <code>setPara</code> or <code>setLine</code>
 *
 * @stable ICU 3.8
 */
public int getBaseLevel()
{
  return bidi.getBaseLevel();
}

代码示例来源:origin: stackoverflow.com

@Override
 public View getView(final int position, View convertView, ViewGroup parent) {
   ViewHolder holder;
   Bidi bidi = new Bidi(userList.get(position).getName(), Bidi.DIRECTION_DEFAULT_LEFT_TO_RIGHT);
   if(bidi.getBaseLevel() == 0)
     convertView = myInflater.inflate(R.layout.list_add_friends_row, null);
   else
     convertView = myInflater.inflate(R.layout.list_add_friends_row_mirror, null);

代码示例来源:origin: org.apache.pdfbox/pdfbox

if (!bidi.isMixed() && bidi.getBaseLevel() == Bidi.DIRECTION_LEFT_TO_RIGHT)

代码示例来源:origin: com.github.lafa.pdfbox/pdfbox

if (!bidi.isMixed() && bidi.getBaseLevel() == Bidi.DIRECTION_LEFT_TO_RIGHT)

代码示例来源:origin: google/sagetv

textObjs[i] = (levelInfo[i] % 2) == booty.getBaseLevel() ? textObjs[i].toString() :
 new StringBuffer(textObjs[i].toString()).reverse().toString();

相关文章