Reputation: 8604
I recently started making a month view similar to Android 4.0's Calendar View.
I also recently found a cool eclipse plugin by using which we can step into Android base classes, the plugin can be found here
I am now able to read the class implementation of Calendar View but there are many resources used in it like
mFirstDayOfWeek = attributesArray.getInt(R.styleable.CalendarView_firstDayOfWeek,
LocaleData.get(Locale.getDefault()).firstDayOfWeek);
So I am basically trying to make a custom view by reading Calendar Views class and I am confused of the properties used by it. I know that they are declared in attrs.xml file but I wanted to have a look at the implementation by Google.
My question is can we also have a look at how those styleable attributes are declared?
Upvotes: 0
Views: 72
Reputation: 4446
In the end, the best way is still to download the android source. You'll have access to all source files, resources, drawables, etc.
Upvotes: 2