Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Artifact bitmap #110

Closed
Igor755 opened this issue Feb 6, 2025 · 1 comment
Closed

Artifact bitmap #110

Igor755 opened this issue Feb 6, 2025 · 1 comment

Comments

@Igor755
Copy link

Igor755 commented Feb 6, 2025

Hello, when i want set marker bitmap i have a problem with line (the line goes to the marker)

Image
Image
Image

holder.timeline.initLine(getItemViewType(position));
holder.timeline.setMarkerInCenter(true);
holder.timeline.setLineStyle(TimelineView.LineStyle.DASHED);
holder.timeline.setLineStyleDashGap(20);
holder.timeline.setLineStyleDashLength(28);

drawable = new BitmapDrawable(context.getResources(), bitmapEnd);
holder.timeline.setMarkerSize(60);
holder.timeline.setMarker(drawable);

@OverRide
public int getItemViewType(int position) {
return TimelineView.getTimeLineViewType(position, getItemCount());
}

@vipulasri
Copy link
Owner

TimelineView acts individually while drawing the line and marker. Based on marker size and remaining space the line is drawn and it may not be perfect every time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants