material-design

How to implement google paper button effects

纵然是瞬间 提交于 2020-01-02 04:08:04
问题 Google’s paper / material design http://www.google.com/design/spec/material-design/introduction.html is a really clean look that I think is going to see a lot of use. Polymer has a bunch of “paper-elements” ready to go and the web community is already playing with different ways to implement it. For this question I’m specifically looking at the button click effect. It has a ripple of activation color that radiates from your click. Here is polymer’s example: http://www.polymer-project.org

Angular material dialog component hides all my website components

对着背影说爱祢 提交于 2020-01-02 03:19:06
问题 I'm using angular 5 and angular material (latest version) and I'm trying to open a dialog from a page. When I click the button that triggers the opening, the entire website is put in blank background like if the dialog were overlaping it contents and hiding it all. import { Component, OnInit, Inject } from '@angular/core'; import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material'; @Component({ moduleId: module.id, selector: 'app-dialog', templateUrl: 'dialog.component.html', styleUrls

How to set elevation to Bottom navigation

点点圈 提交于 2020-01-02 00:54:31
问题 So by the support V25 . We have new component called Bottom navigation. Follow the Design guidelines, the Bottom Navigation's elevation should be 8dp (https://material.io/guidelines/components/bottom-navigation.html#bottom-navigation-specs) But I can't set the elevation to it. Any suggestion, example would be appreciated. Thank you! UPDATE XML CODE <RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent"> <android.support.design.widget.BottomNavigationView

How do you bind Polymer elements to a Model in ASP.NET

删除回忆录丶 提交于 2020-01-01 17:26:20
问题 I have no problems displaying my model in a View using Polymer, for example: <paper-icon-item> <iron-icon icon="communication:phone" item-icon></iron-icon> <paper-item-body two-line> <div>@Model.PhoneNumber</div> <div secondary>Phone Number</div> </paper-item-body> </paper-icon-item> but I just do not get the bindings right for input //this does not work <paper-input label="Phone Number">@Model.PhoneNumber</paper-input> //nor this <paper-input is="iron-input" label="Phone Number">@Model

How do you bind Polymer elements to a Model in ASP.NET

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-01 17:26:07
问题 I have no problems displaying my model in a View using Polymer, for example: <paper-icon-item> <iron-icon icon="communication:phone" item-icon></iron-icon> <paper-item-body two-line> <div>@Model.PhoneNumber</div> <div secondary>Phone Number</div> </paper-item-body> </paper-icon-item> but I just do not get the bindings right for input //this does not work <paper-input label="Phone Number">@Model.PhoneNumber</paper-input> //nor this <paper-input is="iron-input" label="Phone Number">@Model

How to place tabs at bottom of app in a tabbedactivity

删除回忆录丶 提交于 2020-01-01 17:11:43
问题 I'm trying to use a tabbedActivity in android to create a simple app. I would like to put my tabs at the bottom of the screen. Here is what i've got when creating my Activity with android studio. What I would like, is the part with "SECTION 1 SECTION 2 SECTION 3" to be at the bottom of the screen. Here is my xml file: <android.support.design.widget.AppBarLayout android:id="@+id/appbar" android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingTop="@dimen/appbar

How can we select mat option when press on tab key?, it should work like enter button in mat-autocomplete angular 6

廉价感情. 提交于 2020-01-01 17:07:11
问题 How can we select mat option when press on tab key?, it should work like enter button in mat-autocomplete angular 6... In below URL its working when press enter, but whenever we press tab button it should select highlighted option. <mat-form-field class="example-full-width"> <input type="text" placeholder="Pick one" aria-label="Number" matInput [formControl]="myControl" [matAutocomplete]="auto"> <mat-autocomplete #auto="matAutocomplete"> <mat-option *ngFor="let option of options" [value]=

Material design Spinner using TextInputLayout.OutlinedBox styling

狂风中的少年 提交于 2020-01-01 14:23:02
问题 I am currently using Material Design TextInputLayout OutlinedBox as shown below: <android.support.design.widget.TextInputLayout style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox" android:layout_width="match_parent" android:layout_height="wrap_content"> <android.support.design.widget.TextInputEditText android:id="@+id/myEditText" android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="Title" android:inputType="text"/> </android.support.design

How sync TabLayout with ViewPager when using TabItem

三世轮回 提交于 2020-01-01 09:54:07
问题 I want to use TabLayout with TabItem with following code: <android.support.design.widget.TabLayout android:id="@+id/tabs" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@color/color_primary" app:tabGravity="fill" app:tabIndicatorColor="@color/white" app:tabMode="fixed" app:tabSelectedTextColor="@color/white" app:tabTextColor="@color/gray_light"> <android.support.design.widget.TabItem android:layout_width="wrap_content" android:layout_height="match

Floating Action Button appears over Navigation Drawer

感情迁移 提交于 2020-01-01 09:42:08
问题 So I am using https://github.com/neokree/MaterialNavigationDrawer for my navigation drawer and https://gist.github.com/Jogan/9def6110edf3247825c9 as my FAB implementation. When I open the navigation drawer, it does not cover the FAB, and the button appears on top of it. I would like to avoid hiding the button and showing it on drawer open/close as that is rather distracting. Any ideas on how to fix this? Edit: I am adding the FAB programmatically doing the following: fabButton = new