本文整理汇总了Java中org.telegram.messenger.LocaleController.LocaleInfo方法的典型用法代码示例。如果您正苦于以下问题:Java LocaleController.LocaleInfo方法的具体用法?Java LocaleController.LocaleInfo怎么用?Java LocaleController.LocaleInfo使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.telegram.messenger.LocaleController
的用法示例。
在下文中一共展示了LocaleController.LocaleInfo方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: updateSearchResults
import org.telegram.messenger.LocaleController; //导入方法依赖的package包/类
private void updateSearchResults(final ArrayList<LocaleController.LocaleInfo> arrCounties) {
AndroidUtilities.runOnUIThread(new Runnable() {
@Override
public void run() {
searchResult = arrCounties;
searchListViewAdapter.notifyDataSetChanged();
}
});
}
示例2: getView
import org.telegram.messenger.LocaleController; //导入方法依赖的package包/类
@Override
public View getView(int i, View convertView, ViewGroup parent) {
View row = convertView;
ItemHolder holder = null;
if (row == null) {
LayoutInflater inflater = ((Activity) mContext).getLayoutInflater();
row = inflater.inflate(R.layout.item_language, parent, false);
holder = new ItemHolder();
holder.imgIcon = (ImageView) row.findViewById(R.id.ivCircle);
holder.txtLanguage = (TextView) row.findViewById(R.id.tvLanguage);
row.setTag(holder);
} else {
holder = (ItemHolder) row.getTag();
}
LocaleController.LocaleInfo localeInfo = LocaleController.getInstance().sortedLanguages.get(i);
if(i == 0)
{
localeInfo = LocaleController.getInstance().sortedLanguages.get(i);
}
if(i == 1)
{
localeInfo = LocaleController.getInstance().sortedLanguages.get(21);
}
else if(i == 2)
{
localeInfo = LocaleController.getInstance().sortedLanguages.get(3);
}
else if(i == 3)
{
localeInfo = LocaleController.getInstance().sortedLanguages.get(2);
}
else if(i == 21)
{
localeInfo = LocaleController.getInstance().sortedLanguages.get(1);
}
holder.txtLanguage.setText(localeInfo.name);
holder.txtLanguage.setTextColor(Theme.ACTION_BAR_COLOR2);
holder.imgIcon.setColorFilter(Theme.ACTION_BAR_COLOR2);
return row;
}