Java Code Examples for org.telegram.ui.ActionBar.ThemeDescription#getSetColor()
The following examples show how to use
org.telegram.ui.ActionBar.ThemeDescription#getSetColor() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ThemeEditorView.java From TelePlus-Android with GNU General Public License v2.0 | 5 votes |
@Override public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) { ArrayList<ThemeDescription> arrayList = items.get(position); ThemeDescription description = arrayList.get(0); int color; if (description.getCurrentKey().equals(Theme.key_chat_wallpaper)) { color = 0; } else { color = description.getSetColor(); } ((TextColorThemeCell) holder.itemView).setTextAndColor(description.getTitle(), color); }
Example 2
Source File: ThemeEditorView.java From TelePlus-Android with GNU General Public License v2.0 | 5 votes |
@Override public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) { ArrayList<ThemeDescription> arrayList = items.get(position); ThemeDescription description = arrayList.get(0); int color; if (description.getCurrentKey().equals(Theme.key_chat_wallpaper)) { color = 0; } else { color = description.getSetColor(); } ((TextColorThemeCell) holder.itemView).setTextAndColor(description.getTitle(), color); }
Example 3
Source File: ThemeEditorView.java From Telegram-FOSS with GNU General Public License v2.0 | 5 votes |
@Override public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) { if (holder.getItemViewType() == 0) { ArrayList<ThemeDescription> arrayList = searchResult.get(position - 1); ThemeDescription description = arrayList.get(0); int color; if (description.getCurrentKey().equals(Theme.key_chat_wallpaper)) { color = 0; } else { color = description.getSetColor(); } ((TextColorThemeCell) holder.itemView).setTextAndColor(searchNames.get(position - 1), color); } }
Example 4
Source File: ThemeEditorView.java From Telegram-FOSS with GNU General Public License v2.0 | 5 votes |
@Override public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) { if (holder.getItemViewType() == 0) { ArrayList<ThemeDescription> arrayList = items.get(position - 1); ThemeDescription description = arrayList.get(0); int color; if (description.getCurrentKey().equals(Theme.key_chat_wallpaper)) { color = 0; } else { color = description.getSetColor(); } ((TextColorThemeCell) holder.itemView).setTextAndColor(description.getTitle(), color); } }
Example 5
Source File: ThemeEditorView.java From Telegram with GNU General Public License v2.0 | 5 votes |
@Override public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) { if (holder.getItemViewType() == 0) { ArrayList<ThemeDescription> arrayList = searchResult.get(position - 1); ThemeDescription description = arrayList.get(0); int color; if (description.getCurrentKey().equals(Theme.key_chat_wallpaper)) { color = 0; } else { color = description.getSetColor(); } ((TextColorThemeCell) holder.itemView).setTextAndColor(searchNames.get(position - 1), color); } }
Example 6
Source File: ThemeEditorView.java From Telegram with GNU General Public License v2.0 | 5 votes |
@Override public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) { if (holder.getItemViewType() == 0) { ArrayList<ThemeDescription> arrayList = items.get(position - 1); ThemeDescription description = arrayList.get(0); int color; if (description.getCurrentKey().equals(Theme.key_chat_wallpaper)) { color = 0; } else { color = description.getSetColor(); } ((TextColorThemeCell) holder.itemView).setTextAndColor(description.getTitle(), color); } }