question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Horizontal tile spacing

See original GitHub issue

Hi @dandc87, I just started experimenting with the library (versions 0.8.1 and 1.0.0-beta1) and I think it’s awesome! I’m wondering if it’s possible to set the tile size and still make the view fill all of the horizontal space. Currently, if I set the tile size to something smaller than the default 44dp, the tiles group together in the center, leaving padding on the left and right sides of the calendar. Basically, I’m trying to reduce the overall height of the calendar view, while still making it fill the horizontal space of the screen.

This is what I’m doing in XML:

<com.prolificinteractive.materialcalendarview.MaterialCalendarView
    android:layout_width="match_parent"
    android:layout_height="wrap_content" />

And then in Java:

calendarView.setTileSizeDp(38);

Here’s a screenshot of what the calendar looks like:

screenshot_2015-09-20-17-54-19

And here’s a screenshot of roughly what I’m going for:

screenshot_2015-09-20-18-00-00

Thanks in advance! -Dan

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:25 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
quentin41500commented, May 13, 2016

This issue has been fixed and is available in the 1.3 snapshot. Stay tuned for the next release.You can try the 1.3 snapshot with the instructions in README. Enjoy and report issues!

0reactions
maheshsuthar93commented, Jun 28, 2017

its overlap the decorated date by selected date color

Read more comments on GitHub >

github_iconTop Results From Across the Web

What Size Spacers to Use When Installing Tile - Hunker
Tile spacers typically come in these sizes: 1/16, 1/8, 3/16, 1/4 and 3/8 inches. You can match spacer size to field tile size,...
Read more >
Tile School: Grout Lines and Tile Patterns | Fireclay Tile
If you look closely you can see that the grout line varies between roughly a 3/16 and 1/8 grout line to adjust to...
Read more >
Choosing the Right Tile Spacers for Your Bathroom
On the other hand, some tile designers prefer a thin line between large tiles—think 18 by 18 inches—to give the appearance of one...
Read more >
Pick Your Pattern: A Visual Guide to Tile Layouts
Don't know where to start with those new tiles? Here is an explainer on 1/3 staggered tile pattern plus 4 other basic patterns....
Read more >
Which Direction Should You Run Your Tile Flooring? Well...
12 x 24 tile floor being laid across the narrow width of the room to ... run the length of the space keeps...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found