material-design

MaterialComponents AlertDialog text color

安稳与你 提交于 2020-07-07 06:53:49
问题 Reading MaterialComponents theme alert dialog buttons and https://medium.com/@lcdsmao/material-design-custom-alert-dialog-5a9cab3ade11 I set AlertDialog buttons and text colors of new Material Theme. <!-- Base application theme. --> <style name="AppTheme" parent="Theme.MaterialComponents.Light.DarkActionBar"> <!-- Customize your theme here. --> <item name="colorPrimary">@color/colorPrimary</item> <item name="colorPrimaryDark">@color/colorPrimaryDark</item> <item name="colorAccent">@color

Material Date Picker Custom Styling

孤人 提交于 2020-07-06 16:08:32
问题 i have used range date picker from google material with this library implementation 'com.google.android.material:material:1.2.0-alpha02' this is my code MaterialDatePicker.Builder<Pair<Long, Long>> builder = MaterialDatePicker.Builder.dateRangePicker(); CalendarConstraints.Builder constraintsBuilder = new CalendarConstraints.Builder(); builder.setCalendarConstraints(constraintsBuilder.build()); MaterialDatePicker<Pair<Long,Long>> picker = builder.build(); assert getFragmentManager() != null;

md-datepicker shows error when date entered manually

怎甘沉沦 提交于 2020-07-06 12:31:32
问题 I am using md-datepicker, when i put date manually it is showing invalid date but if i select date from this control then it is validated. for this i have used following code <md-datepicker name="FromDate" ng-model="vm.user.FromDate" ng-required="true" id="FromDate" md-is-error="login.ToDate.$invalid && login..$submitted" md-placeholder="FromDate"></md-datepicker> <div ng-messages="login.FromDate.$error" md-auto-hide="false" ng-show="login.FromDate.$touched ||login.FromDate.$submitted"> <div

Bottom Sheet Above Bottom Navigation

蓝咒 提交于 2020-07-05 10:28:19
问题 My goal is to place a "bottom sheet" on top of a BottomNavigationView like this: But it stays the following way. Both views collapse: This is the xml of my main activity: <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android

How to make the whole Card component clickable in Material UI using React JS?

佐手、 提交于 2020-07-04 06:11:10
问题 Im using Material UI Next in a React project. I have the Card component which has an image(Card Media) and text(Card Text) inside it. I also have a button underneath the text. My question is..how to make the whole card clickable? ie. Whether a user presses on the card text, or the card image or the button, it should trigger the onClick event which I call on the button. 回答1: Update for v3 — 29 of August 2018 A specific CardActionArea component has been added to cover specifically this case in

How to remove white box from TextInputLayout

时间秒杀一切 提交于 2020-07-02 13:47:47
问题 Today I have just updated my dependencies of material design from 1.0.0 to 1.1.0-alpha09 implementation 'com.google.android.material:material:1.1.0-alpha09' Now i"m getting strange issue in com.google.android.material.textfield.TextInputLayout Here is my Code <com.google.android.material.textfield.TextInputLayout android:id="@+id/emailTextInputLayout" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="@dimen/_10sdp"> <com.google.android.material

Eye indicator overlaps Hint error icon in AutoCompleteTextView

五迷三道 提交于 2020-06-27 11:55:28
问题 Code: <android.support.design.widget.TextInputLayout android:id="@+id/textInputLayout" android:layout_width="match_parent" android:layout_height="52dp" android:background="@android:color/white" android:hint="@string/current_password" android:paddingEnd="14dp" android:paddingLeft="14dp" android:paddingRight="14dp" android:paddingStart="14dp" android:paddingTop="4dp" android:scrollbarAlwaysDrawHorizontalTrack="true" android:textColorHint="@color/darkBlue" app:layout_constraintTop_toBottomOf="@

How to change Theme of “MaterialDatePicker” in Android?

北慕城南 提交于 2020-06-26 14:38:53
问题 I've used MaterialDatePicker for the purpose of selecting a single date & also I had achieved that task but I cannot change the theme of the header & button. MaterialDatePicker.Builder builder; MaterialDatePicker materialDatePicker; long today = MaterialDatePicker.todayInUtcMilliseconds(); CalendarConstraints.Builder con = new CalendarConstraints.Builder(); con.setValidator(DateValidatorPointForward.now()); builder.setSelection(today); builder.setCalendarConstraints(con.build());

Is there a plugins for right-to-left of MDB (Material Design Bootstrap)

别说谁变了你拦得住时间么 提交于 2020-06-25 21:33:49
问题 I'm working on Material Design for angular js. I want to use in right-to-left mode for persian language. 回答1: Currently, MDB does not support RTL. I can confirm that RTL is planned in the future. The issue Is That the Bootstrap does not support RTL itself 回答2: you can try using the materials and not bootstrap. it support rtl by adding to css: * { direction: rtl; } regards, Yehuda. 来源: https://stackoverflow.com/questions/41588009/is-there-a-plugins-for-right-to-left-of-mdb-material-design

Can't change cursor and bubble color for Material TextInputEditText

谁说我不能喝 提交于 2020-06-25 06:53:05
问题 I want to change Material TextInputEditText's bubble and cursor color. I tried colorAccent, android:textCursorDrawable these are not working correctly. Files in here 回答1: You have to use following attributes: <style name="AppTheme" parent="Theme.MaterialComponents.Light"> <item name="colorPrimary">#212121</item> <item name="colorPrimaryVariant">#000000</item> <item name="colorOnPrimary">#FFFFFF</item> <item name="colorSecondary">#2962FF</item> <item name="colorSecondaryVariant">#0039CB</item>