Material Date Range Picker selection color formatting

Issue When you select two date in the range picker the in-between dates get highlighted. How do i change the color of the in-between dates? Solution You can define a style as: <style name=”MaterialCalendarTheme_RangeFill” parent=”ThemeOverlay.MaterialComponents.MaterialCalendar”> <item name=”materialCalendarStyle”>@style/MyMaterialCalendar</item> </style> <style name=”MyMaterialCalendar”

Continue reading

How count the number of days selected in the daterangepicker materialdesign?

Issue Hello guys I have a DatePickerRange with material design and everything is working perfectly CalendarConstraints.Builder constraitBuilder = new CalendarConstraints.Builder(); constraitBuilder.setStart(mesPresente); constraitBuilder.setEnd(limitDate); // selectedPair = new Pair<>(today,); Selecionar da por default in DateRangePicker //Date Range Picker MaterialDatePicker.Builder<Pair<Long, Long>> builder =

Continue reading

Disable tooltipText in BottomNavigationView

Issue Im using implementation ‘com.google.android.material:material:1.1.0-alpha09’ this is my menu <item android:id=”@+id/llHome” android:icon=”@drawable/selector_menu_home” android:title=”@string/navigation.bottom.home” app:tooltipText=”@null” /> but as much as I write long click or disable it, the tooltip with the name of the menu continues to appear. Any idea how

Continue reading

How to make ClickableSpan links in MaterialAlertDialogBuilder clickable?

Issue I have a SpannableStringBuilder object with a ClickableSpan link like this, SpannableStringBuilder ssb = new SpannableStringBuilder(“Hi StackOverflow!”); ClickableSpan clickableSpan = new ClickableSpan() { @Override public void onClick(@NonNull View widget) { Toast.makeText(MainActivity.this, “Clicked”, Toast.LENGTH_SHORT).show(); } }; ssb.setSpan(clickableSpan, 3, 16, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);

Continue reading

android chips taking extra spaces;unable to wrap

Issue I use chipgroup with dynamic chips. I want the chips to get wrapped in width according to their text. But it takes extra spaces even without padding. Below is my code: xml: <com.google.android.material.chip.ChipGroup android:id=”@+id/cg” android:layout_width=”0dp” android:layout_weight=”75″ android:layout_height=”wrap_content” android:layout_marginTop=”20dp” android:layout_marginBottom=”5dp”

Continue reading