final ActionBar actionBar = getSupportActionBar(); actionBar.setHomeAsUpIndicator(R.drawable.ic_menu_white_24px); actionBar.setDisplayHomeAsUpEnabled(true); // Setting default toolbar title to empty actionBar.setTitle(null);
//set initial title actionBar.setTitle(dateFormatForMonth.format(compactCalendarView.getFirstDayOfCurrentMonth()));
//set title on calendar scroll compactCalendarView.setListener(new CompactCalendarView.CompactCalendarViewListener(){ @Override publicvoidonDayClick(Date dateClicked){
@Override publicvoidonMonthScroll(Date firstDayOfNewMonth){ // Changes toolbar title on monthChange actionBar.setTitle(dateFormatForMonth.format(firstDayOfNewMonth));
}
});
addDummyEvents();
// gotoToday();
}
// Adding dummy events in calendar view for April, may, june 2016 privatevoidaddDummyEvents(){
Android Swipe Layout This will be the most powerful Android swipe UI component In one of my Project, I have a requirement to create a Swiping Layout For RecyclerView. I looked for different Libraries. I found this Great Library Android Swipe Layout. I have tried this Library for RecyclerView. I have done sample Project using this great Library. This Library Supports ListView and GridView also. Thanks to the Author for Creating this useful Library: https://github.com/daimajia/ Library Link : https://github.com/daimajia/AndroidSwipeLayout/ Wiki Page: https://github.com/daimajia/AndroidSwipeLayout/wiki Step: 1 ====== Add dependency to your build.gradle file 1 2 3 4 dependencies { compile 'com.daimajia.swipelayout:library:1.2.0@aar' } Step: 2 ====== Create a row for RecyclerView using SwipeLayout 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60...
Comments
Post a Comment