material-design

Why does the material design dialog body have no height on an iPad

只谈情不闲聊 提交于 2021-01-27 17:47:13
问题 I have a web application using angularjs and material-design . I use md-dialog for adding and editing certain records from the database. This is responsive and works as expected on my desktop for all browsers except IE (no great surprise). This is how it is supposed to look. However, if I run the application in safari on a Mac, or any browser on iOS (including chrome), the dialog appears to be missing the contents (has no height). While IE doesn't have exactly the same issue, it does appear

AndroidX BottomAppBar navigation icon color

被刻印的时光 ゝ 提交于 2021-01-27 04:41:50
问题 I've defined a bottom bar in a layout like that: <com.google.android.material.bottomappbar.BottomAppBar android:id="@+id/bottomBar" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="bottom" app:navigationIcon="@drawable/ic_menu_black_24dp" /> The navigation icon is a generic icon generated from the "new vector drawable" wizard. Is there a way to apply a tint to it? The bottom bar is not the activity action bar. What I've tried so far: applied a

Android custom circular ProgressBar direction

青春壹個敷衍的年華 提交于 2021-01-27 04:01:52
问题 I have a custom Circular Progressbar. This is the drawable I have for it to be determinate: <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item android:id="@android:id/secondaryProgress"> <shape android:innerRadiusRatio="6" android:shape="ring" android:thicknessRatio="20.0" android:useLevel="true"> <gradient android:centerColor="#999999" android:endColor="#999999" android:startColor="#999999" android:type="sweep" /> </shape> <

How to set default value in material-UI select box in react?

让人想犯罪 __ 提交于 2021-01-26 03:09:09
问题 I am using Select box from material-ui I want to show "select the value" option by default selected but after that user is not able to select this option. <FormControl required className={classes.formControl}> <InputLabel htmlFor="circle">Circle</InputLabel> <Select value={circle} onChange={event => handleInput(event, "circle")} input={<Input name="circle" id="circle" />} > <MenuItem value="" disabled> <em>select the value</em> </MenuItem> <MenuItem value={10}>Ten</MenuItem> <MenuItem value=

How to set default value in material-UI select box in react?

折月煮酒 提交于 2021-01-26 03:08:50
问题 I am using Select box from material-ui I want to show "select the value" option by default selected but after that user is not able to select this option. <FormControl required className={classes.formControl}> <InputLabel htmlFor="circle">Circle</InputLabel> <Select value={circle} onChange={event => handleInput(event, "circle")} input={<Input name="circle" id="circle" />} > <MenuItem value="" disabled> <em>select the value</em> </MenuItem> <MenuItem value={10}>Ten</MenuItem> <MenuItem value=

How can I programmatically open (show in screen) NavigationView

梦想与她 提交于 2021-01-22 00:27:50
问题 How can I programmatically open (show in screen) NavigationView? I can't find any function what can be helpfull. I have this xml file: <android.support.v4.widget.DrawerLayout 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:id="@+id/drawer_layout" android:layout_width="match_parent" android:layout_height="match_parent" android:fitsSystemWindows="true"> //... <android.support

How can I programmatically open (show in screen) NavigationView

僤鯓⒐⒋嵵緔 提交于 2021-01-22 00:27:50
问题 How can I programmatically open (show in screen) NavigationView? I can't find any function what can be helpfull. I have this xml file: <android.support.v4.widget.DrawerLayout 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:id="@+id/drawer_layout" android:layout_width="match_parent" android:layout_height="match_parent" android:fitsSystemWindows="true"> //... <android.support

How can I programmatically open (show in screen) NavigationView

左心房为你撑大大i 提交于 2021-01-22 00:27:33
问题 How can I programmatically open (show in screen) NavigationView? I can't find any function what can be helpfull. I have this xml file: <android.support.v4.widget.DrawerLayout 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:id="@+id/drawer_layout" android:layout_width="match_parent" android:layout_height="match_parent" android:fitsSystemWindows="true"> //... <android.support

Angular mat-select text color doesn't change

坚强是说给别人听的谎言 提交于 2021-01-21 07:19:11
问题 I am using mat-select in my Angular application. I would like to change the text color, but the color doesn't change. <mat-select style="color: red" [(ngModel)]="someValue"> <mat-option>class="empty-select"</mat-option> <mat-option class="not-empty-select" *ngFor="let unit of units [value]="unit">{{unit}}</mat-option> </mat-select> I can change the background color without problems, but the text color doesn't change. 回答1: You need to apply style on mat-option rather than mat-select as: <mat

Angular mat-select text color doesn't change

拈花ヽ惹草 提交于 2021-01-21 07:15:17
问题 I am using mat-select in my Angular application. I would like to change the text color, but the color doesn't change. <mat-select style="color: red" [(ngModel)]="someValue"> <mat-option>class="empty-select"</mat-option> <mat-option class="not-empty-select" *ngFor="let unit of units [value]="unit">{{unit}}</mat-option> </mat-select> I can change the background color without problems, but the text color doesn't change. 回答1: You need to apply style on mat-option rather than mat-select as: <mat