Comments (7)
`public class DateCellView extends BaseCellView {
TextView id_cell_text;
public DateCellView(Context context) {
super(context);
}
public DateCellView(Context context, AttributeSet attrs) {
super(context, attrs);
}
@Override
public void setDisplayText(DayData day) {
id_cell_text= (TextView) this.findViewById(R.id.id_cell_text);
id_cell_text.setText(day.getText());
}
}`
See. I have created the class same as you have created.
---> " use the class created in step one as the root node of it." WHAT YOU MEAN BY THIS. I CAN'T UNDERSTAND. i am an amateaur. please help me out with this.
from mcalendarview.
First create your own view class which extends BaseCellView
, implement required functions.
Then create a layout xml, use the class created in step one as the root node of it.
from mcalendarview.
calendarView.setDateCell(R.layout.layout_date_cell)
I have also done this as you have done in your code
from mcalendarview.
<your.package.DateCellView
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="100dp"
android:layout_height="100dp"
android:background="#00ADA3">
</your.package.DateCellView>
Also, don't shout.
from mcalendarview.
Hehe. thankyou soo much for your help.
from mcalendarview.
Please i need one more help. when i implemented the datecellview as we discussed, all its styling and sizes changed. Now before implementing this thing the calendar was looking pretty attractive but now because i implemented the view all its styling is gone. i just wanted to change the text color of the dates. I was successful in changing the textcolor but then now its looking very ugly. So is there any way i could change only the textcolor of the dates and have the previous calendar with only its textcolor changed????
from mcalendarview.
You should copy or modify my code.
for example.
Or, you should "styling" your own date cell xml.
from mcalendarview.
Related Issues (20)
- How to remove title year and month or center the text?
- Change Calendar Language HOT 2
- How to draw outline circle not fill color inside of circle in current date ?
- MarkStyle is having issue for Android API21 above HOT 1
- OnDateClickListener returning an incorrect date
- How to edit the style of the title ? HOT 2
- The ExpCalendarView cannot be inside a fragment with TabLayout
- Does not expand when inside scrollview HOT 1
- Inflating issues
- Min and max date
- travelTo() does not work in shrink mode
- Change Weekend background color and also title
- CalendarView inside TabLayout stops month change on swipe
- Date Change is not happening.
- How do I implement Customize Date cell ?
- Customize colour
- How clear markDate setOnDateClickListener?
- Crash on dialog Fragment HOT 1
- What is the newest version to write in graddle? Because I doubt it is 1.0.0. HOT 1
- Problem with implementation 'sun.bob:mcalendarview:1.0.0'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mcalendarview.