Giter Club home page Giter Club logo

monodroid.timessquare's People

Contributors

aaronweihe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

monodroid.timessquare's Issues

Updates?

Hi Aaron,

Do you have updates on this library? The original library has been updated recently.

Is this available on Xamarin Component Store already or are you planning on adding it soon?

CellDecorators customize

  IList<ICalendarCellDecorator> decorator = (IList<ICalendarCellDecorator>) Arrays.AsList(new SampleDecorator());
 
 calendarpicker.Decorators = decorator;

doesn't work

any solution of this??

this option is on SampleTimeSquare

this is the code in java

 decorator.setOnClickListener(new OnClickListener() {
      @Override public void onClick(View v) {
        setButtonsEnabled(decorator);

        calendar.setCustomDayView(new DefaultDayViewAdapter());
        calendar.setDecorators(Arrays.<CalendarCellDecorator>asList(new SampleDecorator()));
        calendar.init(lastYear.getTime(), nextYear.getTime()) //
            .inMode(SelectionMode.SINGLE) //
            .withSelectedDate(new Date());
      }
    });

Error building on Api level 16

Hi
Im trying to build the library on api level 16 , but I get this errors :

Error: No resource found that matches the given name: attr 'android:textAlignment'

Full description :

C:\Users\Gregory\Downloads\MonoDroid.TimesSquare-master\MonoDroid.TimesSquare\Resources\values\styles.xml(0,0): Error: No resource found that matches the given name: attr 'android:textAlignment'. (MonoDroid.TimesSquare)

Select Date and customize view row?

Hello aaron,

thanks to port TimesSquere control to monodroid. I m testing but i have same doubts.

  1. I call a "click" event of calendar but visual return error "Java.Lang.RuntimeException: Don't call setOnClickListener for an AdapterView. You probably want setOnItemClickListener instead" . I wish that user select a date , open a custom activity.

  2. I want add text into a date cell . ¿How can i do it?

Regards

Performance

If the calendar is initialized with a big range of time, say 20 years, it will cost 3+ seconds to finish rendering. However, it only takes 1+ seconds to load in original implementation.

So far, I found out that OnMeasure method in CalendarRowView, CalendarGridView is actually the performance hit compared to its original works.

I thought the slowness would be related to that I was using objects under Java.Util.* package. However, after I have converted all those objects to C# flavored DateTime type, the problem still exists.

Any suggestions are welcome. OnMeasure is part of Mono for Android framework. I am not sure if the problem is related to the framework.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.