Giter Club home page Giter Club logo

android-collapse-calendar-view's People

Contributors

blazsolar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

android-collapse-calendar-view's Issues

Need two week collapsing

This is what I need but with 2 collapsing week.Need help please suggest some thing to make this feasible

Problem when add collapse calendar view to scrollview

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.
42b208ea999114963893822dd2f0ccc72d586625fe599b6f50 pimgpsh_fullsize_distr

I don't know why. Please help me! This is my project: https://www.dropbox.com/s/v75zqklgkg3hx1g/collapse_calendar.zip?dl=0

How to set the locale ?

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?

Add mark to dates

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.

how to import it

I can't understand readme, where shoulld i put the initial code?

Exception

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

Make dates before a particular date unclickable

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!

FirstDayOfWeek functionality missing

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.

How can i custumer android-collapse-calendar-view in a fragment??

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);
}

}

calls to selectDate() are not reflected on UI

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.

How can i place some color dot background of a particular date..??

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

hello,when update to 1.0?

I need use horizontal scoll to change month ,but it work bad, So, look forward to writer update to 1.0,thanks!

How to switch calendar to specific month

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

Dependency problem

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?

Localization issues

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?

How can we manually trigger expand or collapse calendarView

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.

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.