material-design

How to make TextInputLayout hint asterisk red for required fields

五迷三道 提交于 2021-01-16 08:11:30
问题 Is it possible to make just the asterisk in the hint red when using a TextInputLayout from the design support library? I have seen information on styling the entire hint, but this is a little more complex since only the * should be red, not the whole message. The Material Design example shows this, but the design library doesn't seem to have any option to style it this way using a TextInputLayout and EditText. Reference: https://www.google.com/design/spec/components/text-fields.html#text

How to make TextInputLayout hint asterisk red for required fields

≯℡__Kan透↙ 提交于 2021-01-16 08:10:33
问题 Is it possible to make just the asterisk in the hint red when using a TextInputLayout from the design support library? I have seen information on styling the entire hint, but this is a little more complex since only the * should be red, not the whole message. The Material Design example shows this, but the design library doesn't seem to have any option to style it this way using a TextInputLayout and EditText. Reference: https://www.google.com/design/spec/components/text-fields.html#text

How to set the background of a FAB as a gradient

£可爱£侵袭症+ 提交于 2021-01-07 03:38:46
问题 I can't set the background of a FAB with a gradient. The background of the FAB shows a black color My mainActivtiy xml file is given below <?xml version="1.0" encoding="utf-8"?> <androidx.coordinatorlayout.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" tools:context=".MainActivity"> <com

How to add user-submitted tags data from “material_tag_editor” into a “Flutter Form Builder” form?

左心房为你撑大大i 提交于 2021-01-07 02:41:27
问题 I am building a form using the "Flutter Form Builder" package 4.0.2 and trying to add two fields where users enter "tags" via the "material_tag_editor" package 0.0.6 The Problem: when then form is submitted by pressing the "Post" button, neither of the data submitted for those "tag" form fields (Q1 or Q3) is included (see screenshot of the console below). Notice the line "flutter: {qFour: 30, qFive: sample answer to q5, qTen: sample answer to q10}" - neither Q1 nor Q3 are included (I added

How to add user-submitted tags data from “material_tag_editor” into a “Flutter Form Builder” form?

廉价感情. 提交于 2021-01-07 02:36:17
问题 I am building a form using the "Flutter Form Builder" package 4.0.2 and trying to add two fields where users enter "tags" via the "material_tag_editor" package 0.0.6 The Problem: when then form is submitted by pressing the "Post" button, neither of the data submitted for those "tag" form fields (Q1 or Q3) is included (see screenshot of the console below). Notice the line "flutter: {qFour: 30, qFive: sample answer to q5, qTen: sample answer to q10}" - neither Q1 nor Q3 are included (I added

popup menu background color change not working

岁酱吖の 提交于 2021-01-05 10:24:40
问题 i am begineer in android. I want to popup menu background color change.I try this code for background color change but its not working for me.i don't know why not working this code. <!--popup menu item style--> <style name="AppTheme.PopupOverlay" parent="ThemeOverlay.MaterialComponents.Light"> <item name="android:textColor">@color/colorWhite</item> <item name="android:popupBackground">@color/colorBlack</item> <item name="actionOverflowMenuStyle">@style/CMOptionsMenu</item> <item name="android

popup menu background color change not working

只谈情不闲聊 提交于 2021-01-05 10:22:04
问题 i am begineer in android. I want to popup menu background color change.I try this code for background color change but its not working for me.i don't know why not working this code. <!--popup menu item style--> <style name="AppTheme.PopupOverlay" parent="ThemeOverlay.MaterialComponents.Light"> <item name="android:textColor">@color/colorWhite</item> <item name="android:popupBackground">@color/colorBlack</item> <item name="actionOverflowMenuStyle">@style/CMOptionsMenu</item> <item name="android

Angular Material Table Sorting with reactive formarray

亡梦爱人 提交于 2021-01-05 08:52:24
问题 I am trying to implement sorting / filtering on angular material table with formArray as input data source. StackBlits code link dataSource = new MatTableDataSource([]); <table mat-table [dataSource]="formdataarray.controls" multiTemplateDataRows class="mat elevation-z8" matSort > <ng-container matColumnDef="{{column}}" *ngFor="let column of columnsToDisplay" > <th mat-header-cell *matHeaderCellDef mat-sort-header>{{column}}</th> <td mat-cell *matCellDef="let element"> {{ element.value[column

Adding horizontal scrolling to chip group in Relative layout

早过忘川 提交于 2021-01-02 08:13:39
问题 I created few static chips in a group. I'm using this link (https://material.io/design/components/chips.html#) as reference. Code is as given below: <RelativeLayout android:id="@+id/inputLayout" android:layout_width="match_parent" android:layout_height="100dp" android:layout_alignParentBottom="true" android:background="@android:color/white" android:gravity="bottom" android:paddingStart="8dp" android:paddingTop="8dp" android:paddingEnd="8dp" android:paddingBottom="9dp"> <ImageView android:id="

How to increase the size of carousel in materialize.css?

≯℡__Kan透↙ 提交于 2021-01-02 07:57:13
问题 I am trying to increase the size of carousel in materialize.css but couldn't get it. I have tried setting height but it didn't work. I googled it but couldn't find any solutions. Could anyone help me with this? 回答1: .carousel .carousel-item { width:300px !important;} this might help, place this code in your css and change width acording to your need. 回答2: Set a minimum height that correlates to the actual height of the images you want to include. For me, that was 900px. .carousel { min-height