Java Code Examples for org.telegram.ui.Components.RadialProgressView#setStrokeWidth()
The following examples show how to use
org.telegram.ui.Components.RadialProgressView#setStrokeWidth() .
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: PeopleNearbyActivity.java From Telegram-FOSS with GNU General Public License v2.0 | 5 votes |
public HeaderCellProgress(Context context) { super(context); setClipChildren(false); progressView = new RadialProgressView(context); progressView.setSize(AndroidUtilities.dp(14)); progressView.setStrokeWidth(2); progressView.setAlpha(0.0f); progressView.setProgressColor(Theme.getColor(Theme.key_windowBackgroundWhiteBlueHeader)); addView(progressView, LayoutHelper.createFrame(50, 40, Gravity.TOP | (LocaleController.isRTL ? Gravity.LEFT : Gravity.RIGHT), LocaleController.isRTL ? 2 : 0, 3, LocaleController.isRTL ? 0 : 2, 0)); }
Example 2
Source File: LegendSignatureView.java From Telegram-FOSS with GNU General Public License v2.0 | 5 votes |
public LegendSignatureView(Context context) { super(context); setPadding(AndroidUtilities.dp(8), AndroidUtilities.dp(8), AndroidUtilities.dp(8), AndroidUtilities.dp(8)); content = new LinearLayout(getContext()); content.setOrientation(LinearLayout.VERTICAL); time = new TextView(context); time.setTextSize(14); time.setTypeface(AndroidUtilities.getTypeface("fonts/rmedium.ttf")); hourTime = new TextView(context); hourTime.setTextSize(14); hourTime.setTypeface(AndroidUtilities.getTypeface("fonts/rmedium.ttf")); chevron = new ImageView(context); chevron.setImageResource(R.drawable.ic_chevron_right_black_18dp); progressView = new RadialProgressView(context); progressView.setSize(AndroidUtilities.dp(12)); progressView.setStrokeWidth(AndroidUtilities.dp(0.5f)); progressView.setVisibility(View.GONE); addView(content, LayoutHelper.createFrame(LayoutHelper.WRAP_CONTENT, LayoutHelper.WRAP_CONTENT, Gravity.NO_GRAVITY, 0, 22, 0, 0)); addView(time, LayoutHelper.createFrame(LayoutHelper.WRAP_CONTENT, LayoutHelper.WRAP_CONTENT, Gravity.START, 4, 0, 4, 0)); addView(hourTime, LayoutHelper.createFrame(LayoutHelper.WRAP_CONTENT, LayoutHelper.WRAP_CONTENT, Gravity.END, 4, 0, 4, 0)); addView(chevron, LayoutHelper.createFrame(18, 18, Gravity.END | Gravity.TOP, 0, 2, 0, 0)); addView(progressView, LayoutHelper.createFrame(18, 18, Gravity.END | Gravity.TOP, 0, 2, 0, 0)); recolor(); }
Example 3
Source File: PeopleNearbyActivity.java From Telegram with GNU General Public License v2.0 | 5 votes |
public HeaderCellProgress(Context context) { super(context); setClipChildren(false); progressView = new RadialProgressView(context); progressView.setSize(AndroidUtilities.dp(14)); progressView.setStrokeWidth(2); progressView.setAlpha(0.0f); progressView.setProgressColor(Theme.getColor(Theme.key_windowBackgroundWhiteBlueHeader)); addView(progressView, LayoutHelper.createFrame(50, 40, Gravity.TOP | (LocaleController.isRTL ? Gravity.LEFT : Gravity.RIGHT), LocaleController.isRTL ? 2 : 0, 3, LocaleController.isRTL ? 0 : 2, 0)); }
Example 4
Source File: LegendSignatureView.java From Telegram with GNU General Public License v2.0 | 5 votes |
public LegendSignatureView(Context context) { super(context); setPadding(AndroidUtilities.dp(8), AndroidUtilities.dp(8), AndroidUtilities.dp(8), AndroidUtilities.dp(8)); content = new LinearLayout(getContext()); content.setOrientation(LinearLayout.VERTICAL); time = new TextView(context); time.setTextSize(14); time.setTypeface(AndroidUtilities.getTypeface("fonts/rmedium.ttf")); hourTime = new TextView(context); hourTime.setTextSize(14); hourTime.setTypeface(AndroidUtilities.getTypeface("fonts/rmedium.ttf")); chevron = new ImageView(context); chevron.setImageResource(R.drawable.ic_chevron_right_black_18dp); progressView = new RadialProgressView(context); progressView.setSize(AndroidUtilities.dp(12)); progressView.setStrokeWidth(AndroidUtilities.dp(0.5f)); progressView.setVisibility(View.GONE); addView(content, LayoutHelper.createFrame(LayoutHelper.WRAP_CONTENT, LayoutHelper.WRAP_CONTENT, Gravity.NO_GRAVITY, 0, 22, 0, 0)); addView(time, LayoutHelper.createFrame(LayoutHelper.WRAP_CONTENT, LayoutHelper.WRAP_CONTENT, Gravity.START, 4, 0, 4, 0)); addView(hourTime, LayoutHelper.createFrame(LayoutHelper.WRAP_CONTENT, LayoutHelper.WRAP_CONTENT, Gravity.END, 4, 0, 4, 0)); addView(chevron, LayoutHelper.createFrame(18, 18, Gravity.END | Gravity.TOP, 0, 2, 0, 0)); addView(progressView, LayoutHelper.createFrame(18, 18, Gravity.END | Gravity.TOP, 0, 2, 0, 0)); recolor(); }