aaronweihe / monodroid.timessquare Goto Github PK
View Code? Open in Web Editor NEWA port of Android.TimesSquare
License: Apache License 2.0
A port of Android.TimesSquare
License: Apache License 2.0
Except first row of each month, left and right border of each date cell is not shown.
TODO: original implementation's PR #120: Support styling the widget.
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?
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());
}
});
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)
Hello aaron,
thanks to port TimesSquere control to monodroid. I m testing but i have same doubts.
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.
I want add text into a date cell . ¿How can i do it?
Regards
The original android-times-squaire is a couple of commits beyond.
I see that this is supposed to be a component but I can't find it in the component store or nuget.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.