blazsolar / android-collapse-calendar-view Goto Github PK
View Code? Open in Web Editor NEWAndroid calendar view that can be toggled between week and month view.
License: MIT License
Android calendar view that can be toggled between week and month view.
License: MIT License
How do i disable the collapsible behaviors in the Calender
I need use horizontal scoll to change month ,but it work bad, So, look forward to writer update to 1.0,thanks!
I am trying to change the calendar month from the month selected from the spinner but I am not able to perform same.
Changing month from next and previous button are working properly but if I want to change it directly to specific month (ex. from June to January) is not performing.
Please provide me some solution for same
on motion up event during layout week, than whole collapse calender getting gone
I was wondering if there is any way to force the calendar to use a specific locale, rather than the system's current locale. Is it possible?
Also, I noticed that when the calendar is collapsed to the week view, the header always says "week #". Can this header be localized too? Can we alternatively display the month of the selected date instead of the week number?
import android.app.Activity;
import android.os.Bundle;
import com.wefika.calendar.CollapseCalendarView;
import com.wefika.calendar.manager.CalendarManager;
import org.joda.time.LocalDate;
public class CalendarDemo extends Activity {
private CollapseCalendarView mCalendarView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
CalendarManager manager = new CalendarManager(LocalDate.now(), CalendarManager.State.MONTH, LocalDate.now(), LocalDate.now().plusYears(1));
mCalendarView = (CollapseCalendarView) findViewById(R.id.calendar);
mCalendarView.init(manager);
}
}
while init method called i'm not able to set manager
Is there a way to make dates before a particular date, such as all dates before yesterday unclickable? I know I can use an if condition to check if selected date is before a particular date, but is there a way to change the colour of such dates so that the user explicitly knows they cannot be clicked?
Thanks!
Since I added your library to my gradle file I get the following warning with an error
Warning:Dependency commons-logging:commons-logging:1.1.1 is ignored for release as it may be conflicting with the internal version provided by Android.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/bin/java'' finished with non-zero exit value 2 ```
Does anyone has a solution for that?
It's easy to getting gone after it scrolled,any ideas?
i got error on ''mCalendarView(manager); '': this is my code
@OverRide
public View onCreateView(LayoutInflater inflater, @nullable ViewGroup container, @nullable Bundle savedInstanceState) {
return inflater.inflate(R.layout.activity_main, container, false);
}
@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
initView();
}
private void initView(){
CalendarManager manager = new CalendarManager(LocalDate.now(), CalendarManager.State.MONTH, LocalDate.now(), LocalDate.now().plusYears(1));
mCalendarView = (CollapseCalendarView) getView().findViewById(R.id.calendar);
mCalendarView(manager);
}
}
Hello Dear,
I am developing a calendar view for event management. But I am getting some issue in getting the day of current collapsable week first-day date. Because of I want to take only particular week data of the event so please add any method or interface like monthdate.
Please help me. Thanks in advance.
I can't understand readme, where shoulld i put the initial code?
This is what I need but with 2 collapsing week.Need help please suggest some thing to make this feasible
when user select some date of calendar i am showing some data in recyclerview...
So my problem is i want to notify user by putting some color dots background of particular dates which have the data..suppose some dates doesnt have any data in my database then it will look as normal but some dates have the data then it will look as colored dot at its background
Can you support this?
Hi,
I'm trying to set date next way:
calendar.getManager().selectDay(new LocalDate(y, m, d);
It changes date but changes are not reflected on UI until I start expanding view. It does not update view if I collapse it.
As a workaround I tried to call
calendar.populateLayout();
But it work only in selected week or month. It does not switch to next/perv week/month when selection goes outside.
Anybody know what is last version??
Thanks you guys!
It would be nice if we could add some mark (like a dot) to specific dates, to distinguish which dates have events and which don't.
I found your lib very interesting, but I have not yet been able to change the location of the date, from the default to "(pt_BR)", does it support this change?
Are you guys planning to add this or do you already have something similar to firstDayOfWeek in calendar view. It would be very helpful in week view.
I am unable to find any function which can help me manually trigger expand or collapse view. I looked at the source code. I believe Resize manager is the main class which handles expand or collapse functionality. And it take touch events to trigger the function. Can you by pass the touch function to achieve this functionality.
How can I scroll left to show last week or month?and scroll right to show next week or month?
like this demo: https://github.com/prolificinteractive/material-calendarview
I need to add your collapse calendar view in a scroll view. So i create a custom scrollview like this:
`public class ResizableScrollView extends ScrollView {
private ResizeManager mResizeManager;
public ResizableScrollView(Context context) {
super(context);
}
public ResizableScrollView(Context context, AttributeSet attrs) {
super(context, attrs);
}
public ResizableScrollView(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
}
public void setUpResizeManager(CollapseCalendarView calendarView){
mResizeManager = new ResizeManager(calendarView);
}
@Override
public boolean onInterceptTouchEvent(MotionEvent ev) {
return mResizeManager.onInterceptTouchEvent(ev);
}
@Override
public boolean onTouchEvent(@NonNull MotionEvent event) {
super.onTouchEvent(event);
return mResizeManager.onTouchEvent(event);
}
@Override
protected void dispatchDraw(@NonNull Canvas canvas) {
mResizeManager.onDraw();
super.dispatchDraw(canvas);
}
@Override
protected void onDetachedFromWindow() {
super.onDetachedFromWindow();
mResizeManager.recycle();
}
}`
When i ran and scrolled , it appeared a small space like below picture.
I don't know why. Please help me! This is my project: https://www.dropbox.com/s/v75zqklgkg3hx1g/collapse_calendar.zip?dl=0
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.