Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7925449
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T18:17:58+00:00 2026-06-03T18:17:58+00:00

I am trying to form a simple animation (At the moment nothing more than

  • 0

I am trying to form a simple animation (At the moment nothing more than drawing some lines) in a View using mono for android.

Here is my code:

public class DemoView : View
{
    public DemoView(Context context, IAttributeSet attrs) :
        base(context, attrs)
    {
        Initialize();
    }

    public DemoView(Context context, IAttributeSet attrs, int defStyle) :
        base(context, attrs, defStyle)
    {
        Initialize();
    }

    private void Initialize()
    {
    }

    protected override void OnDraw(Android.Graphics.Canvas canvas)
    {
        base.OnDraw(canvas);

        canvas.DrawColor(Color.Blue);

        Paint pen = new Paint();

        pen.Color = Color.Red;
        pen.StrokeWidth = 2;
        pen.SetStyle(Paint.Style.Stroke);

        canvas.DrawLine(0, 0, 25, 25, pen);
    }

    //How to add other lines to form an animation?
}

The code above just renders background in blue color and draws a line. I am looking for methods ( I beleive something like OnPaint so that I can draw some lines while the application is open. I really do not know what too look for.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T18:18:00+00:00Added an answer on June 3, 2026 at 6:18 pm

    Have a look at the MonoDroid samples project on github. It’s a comprehensive resource for how to implement different Android solutions with MonoDroid.

    It contains several example apps that use drawing of animations including a Snake game and a Live Wallpaper.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to do some simple form validation using javascript object values. I
I'm trying to validate a simple form in JSP with Spring and Hibernate using
I'm trying to save a data in a simple form through Hibernate using struts
I'm using RoR trying to search a simple form at my college using mechanize
I am trying to setup a simple form using formtastic but running into a
Im using Struts2 and Hibernate, trying to create a simple form to edit an
I have a simple form with fields that I am trying to validate using
i am trying to do a simple form that adds a new comment using
I'm trying to reset data in my object bound to a simple form (some
I am trying to do some very simple form validation checking for null or

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.