material-design

Resolving sync between mdDialog and API response in angularJS

耗尽温柔 提交于 2019-12-24 21:16:25
问题 I am facing an issue while using mdDialog confirm from angularJS material design. I am using the confirm box to ask a user for his choice to continue or confirm, If the user confirms the API will take the value and return the returns or else return, however my API is still being called even if the user does not confirm anything. I was able to get around the issue by using normal confirm and alert box but would be thankful if some body can suggest me a fix. I have looked into promises but

Mat-Stepper - change specific steps to just dots

≯℡__Kan透↙ 提交于 2019-12-24 20:57:01
问题 I've seen this post on how to remove the header Remove the Material Stepper header But all I want on specific steps is to display none on span showing the number. Hide this inner part of the stepper: <span class="mat-step-icon-content ng-star-inserted">1</span> I tried with id and .span:after or just .span with display none, but no luck.. #importer > .span{ display:none; } This one works but I don't want it to disappear all together.. just the number and just on specific steps.. ::ng-deep

paper-radio-button ripple persist after selection change

不羁的心 提交于 2019-12-24 17:19:06
问题 Given a paper-radio-group as shown below <paper-radio-group id="sex-group" selected='1'> <paper-radio-button label='Male'></paper-radio-button><br> <paper-radio-button label='Female'></paper-radio-button> </paper-radio-group> When the Male button is selected followed by the Female button or vice versa, inconsistently the ripple remains on the last selected button even though the selection changes. It occurs in a unpredictable manner with no stack trace. In the graphic above, Female was

material Design with Angular Dart and Polymer dart. Compilation issues

喜夏-厌秋 提交于 2019-12-24 16:27:37
问题 I am at my whits end here. I've been trying over the last 48 hours to get these technologies to work.I've read everywhere that they should be able to work but it's just one problem after the other. I've tried various combinations of my pubspeck.yaml file but the results I get are either the code simply wont build, or it just doesn't work >.> I'll appreciate any help I can get! my pubspeck.yaml: name: blah dependencies: angular: 0.12.0 angular_node_bind: any shadow_dom: any browser: any

How to implement a subtitle in CollapsingToolbarLayout like in the whatsapp

笑着哭i 提交于 2019-12-24 16:15:00
问题 what i wanted to implement is shown on the picture ,the details page subtitle shown as" created by +91 " currently i am able to implement title only . this is my code used for creating the title i need to create a sub title too any idea ?? <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:emojicon="http://schemas.android.com/tools" android:id="@+id/root_view" android:layout_width="match_parent" android:layout

Android: How to keep corner radius while setting a background drawable?

六月ゝ 毕业季﹏ 提交于 2019-12-24 14:47:15
问题 <android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:card_view="http://schemas.android.com/apk/res-auto" android:id="@+id/card_view" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="@dimen/activity_vertical_margin" card_view:cardCornerRadius="12dp" card_view:cardElevation="12dp"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> ..

How to use Material.elevation and Radius in a Pane?

只谈情不闲聊 提交于 2019-12-24 14:40:02
问题 I'm trying to use a Pane which I add Material.elevation: 6 but in turn I want to give it a rounded edge and I can not get both together at the same time The following is attempted but the elevation is lost. Pane { // ... Material.elevation: 6 background: Rectangle { radius: 15 } // ... } The idea is that you can keep both aspects to achieve something like: 回答1: You have to overwrite based on the source code: RoundPane.qml import QtQuick 2.12 import QtQuick.Controls 2.12 import QtQuick

colorControlActivated for TextInputLayout doesn't work

。_饼干妹妹 提交于 2019-12-24 12:34:13
问题 This is my main style for the application <style name="Theme.RoundRobin" parent="Theme.MaterialComponents.Light.NoActionBar"> <!-- Customize your theme here. --> <item name="colorPrimary">@color/colorPrimary</item> <item name="colorPrimaryDark">@color/colorSecondaryVariant</item> <item name="colorAccent">@color/colorPrimaryVariant</item> <item name="colorControlActivated">@color/colorControlActivated</item> <item name="colorControlNormal">@color/colorControlNormal</item> <item name=

Custom EditText - Material Design

若如初见. 提交于 2019-12-24 12:07:57
问题 I developed an own class, which extends EditText. But my custom view has an other look as the normal view. public class DateEditText extends EditText { [...] public DateEditText(Context context, AttributeSet attrs) { super(context, attrs); init(); } public DateEditText(Context context) { super(context); init(); } public DateEditText(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); init(); } private void init() { setInputType(InputType.TYPE_CLASS

Setting Material chip Icon stroke/background color

核能气质少年 提交于 2019-12-24 10:57:26
问题 so I'm trying to generate a button that looks like this so far what I've achieved looks like this This is the code I'm using chip.setChipStrokeColorResource(R.color.utilitiesColor) chip.chipStrokeWidth = 2.0f chip.setChipIconTintResource(R.color.utilitiesColor) //T chip.setCloseIconTintResource(R.color.utilitiesColor) //T chip.setTextColor(Color.parseColor("#115fff")) chip.setTypeface(null, Typeface.BOLD) chip.chipIcon = ContextCompat.getDrawable(this.context, R.drawable.ic_utilities) The 2