material-design

How to make Cardview According to material design in android?

孤街醉人 提交于 2019-12-04 23:55:06
问题 I saw material design guidelines regarding but it little confusion ,while I design my card having Image on left and some text on right of Image.But I did n't satisfy whether it is according to guide line or not ...pls check and tell. and also I want my dummy text paragraph justify. here is my code :- <android.support.v7.widget.CardView style="@style/MyCardViewStyle" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width=

How to add ripple effect to an ionic 2 element?

☆樱花仙子☆ 提交于 2019-12-04 23:33:33
Some elements, like the button, have native ripple effect on Ionic 2. Others like cards doesn't. How could I add support to ripple effect on an arbitrary Ionic 2 element? Try wrapping the content like this: <button ion-item> <ion-item style="background: rgba(0,0,0,0);">Content</ion-item> </button> As I see by sources of Ionic v3.3, a container element must contain an empty div element with button-effect class, also the container must have tappable attribute and be styled as position: relative; overflow: hidden . In my project I use a following directive to style button-like containers: import

Material Design plugin in Sketch: How do you export the generated theme?

旧街凉风 提交于 2019-12-04 23:30:51
问题 We are using the Material Design Theme Editor plugin in Sketch. It creates this amazing Style Guide and Material Design theme right in your Sketch file. Does anyone know to export then import the theme generated in Sketch to Android Studio? 回答1: Take a look at Material Components for Android (MDC-Android) https://github.com/material-components/material-components-android. The catalog module has demonstrations of all the components. The material-theme-builder module lets you enter typography,

Angular Material: layout-fill not filling parent <div>

孤街醉人 提交于 2019-12-04 23:26:27
问题 <!-- Container Div --> <div layout-fill> <!-- Image Div --> <div layout="column" layout-align="center center" class="coverImage" layout-fill> <md-content class="md-padding"> Sample Text Here </md-content> <md-button class="md-raised md-primary">Sign Up</md-button> </div> </div> I have the above section of HTML, and I'm trying to use Angular Material's flexbox support to create a page that has a background image that is the full page. Overlayed on this image is some text and a button that is

Android Manifest Merger fails after adding Dependency com.google.android.material

你说的曾经没有我的故事 提交于 2019-12-04 22:57:42
We would like to use the most current material design ui elements presented by Google. Therefore I added com.google.android.material:material:1.0.0-beta01 in our projects gradle file. But since then I get the following error. Manifest merger failed : Attribute application@appComponentFactory value=(androidx.core.app.CoreComponentFactory) from [androidx.core:core:1.0.0-beta01] AndroidManifest.xml:22:18-86 is also present at [com.android.support:support-compat:28.0.0-beta01] AndroidManifest.xml:22:18-91 value=(android.support.v4.app.CoreComponentFactory). Suggestion: add 'tools:replace="android

Material Design 2 Tabs aligned at bottom

十年热恋 提交于 2019-12-04 21:53:36
I want to have tabs aligned at the bottom of the md-tab-group , like shown below: It is possible in Material 1 using md-tabs-align="bottom" . Is there anything available in Material 2 for this purpose? Here is my code: <md-tab-group> <md-tab label="Tab One"> Tab One Contents </md-tab> <md-tab label="Tab Two"> Tab Two Contents </md-tab> </md-tab-group> For whomever may stumble across this question. The Tabs section of the component demo site references the following in the API Reference section @Input() | Position of the tab header. headerPosition | After looking through the source I found the

How to make SearchView that covers the entire ActionBar/Toolbar

梦想的初衷 提交于 2019-12-04 20:52:37
How does one create this? If you try using a Toolbar and you have inflated MenuItems you'll quickly find out that your Toolbar layout will shrink in width so it does not overlay the MenuItems. The only thing that comes to mind is inflating a layout and adding it to the Window as an overlay that sits on top of the ActionBar. Remember, this is not a problem if you do not need to inflate MenuItems in your Toolbar/ActionBar as then you are given the full width to occupy. So I went with the route of adding my view as an overlay. /** * A Material themed search view that should be overlayed on the

How to set the color of icon in Android toolbar?

梦想与她 提交于 2019-12-04 19:45:29
I forked a GitHub project from https://github.com/nglauber/playground/tree/master/android/DemoSearch I would like to set the color of the search icon to be pure white. At the moment, the search icon is gray in color, and is obviously different from the white text of "Demo Search". Edit: Based on some suggestions, I created a new icon using pure white (to be exact, RGB=255,255,255), and use it in place of the android:ic_menu_search. Android will tint it with a gray tone (verified with color picker tool on the screenshot), even though the original icon is in pure white. This suggests to me that

Elevation not working

心已入冬 提交于 2019-12-04 19:12:45
I'm trying to get a 4dp elevation on a button in a sample app and I can't seem to get any shadow to show up. This is my code: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity" android:clipChildren="false" android:orientation="vertical"> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Click me" android:background="@drawable/myrect" android:elevation="4dp"/> </LinearLayout> With

Expansion-panel from material angular 4

时光总嘲笑我的痴心妄想 提交于 2019-12-04 18:56:23
问题 I hava an angular 4.4.4 application with material 2.0.0-beta.12 and I want to use the mat-expansion-panel from material design. This is my code : <mat-expansion-panel class="parametersPanel"> <mat-expansion-panel-header> <mat-panel-title> PARAMETERS </mat-panel-title> </mat-expansion-panel-header> <table style="width:100%"> <tbody> <tr class="parameterListItem"> <td class="icon"><img src="assets/images/alert.png"></td> <td class="parameterName">Parameter 1</td> <td class="parameterValue"