material-design

How to change the floating label color of TextInputLayout

三世轮回 提交于 2019-12-23 06:13:06
问题 I am implement floating label as per material design . Now i want to change the color of few elements like change the color of default hint (Email id which black right now) and line below it . I have gone through similar question like these but couldn't solve my problem . <resources> <style name="AppTheme" parent="AppTheme.BaseTheme"></style> <style name="AppTheme.BaseTheme" parent="Theme.AppCompat.Light.NoActionBar"> </style> <style name="Signin_EditText" parent="TextAppearance.AppCompat">

how to style simple_form with material design or custom css

廉价感情. 提交于 2019-12-23 05:35:18
问题 I want style my simple_form in rails app with material framwork this is my login form code Log in <%= simple_form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %> <div class="form-inputs"> <%= f.input :login %> <%= f.input :password, required: false %> <%= f.input :remember_me, as: :boolean if devise_mapping.rememberable? %> </div> <div class="form-actions"> <%= f.button :submit, "Log in" %> </div> <% end %> And this is sample input , i want sytle my form like this

Polymer paper-header-panel won't render properly

别来无恙 提交于 2019-12-23 05:31:40
问题 I posted kinda similar problem here in StackOverFlow regarding paper-header-panel of Polymer it was answered but the solution isn't efficient or right way of doing it, you can look it here. Specific import should be made not the generic one as mentioned here. My code for rendering it properly is the following: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title></title> <script src="bower_components/webcomponentsjs/webcomponents-lite.min.js"></script> <link rel="import" href

Materialize-css With React, Initializing components using React Lifecycle method

。_饼干妹妹 提交于 2019-12-23 04:53:49
问题 I am stuck on initializing certain ui components that need Javascript, e.g, side-nav and carousel, I tried to use React componentDIdMount() lifecycle method, using Javascript as in materialize docs like so, import React, { Component } from 'react'; import MenuIcon from '@material-ui/icons/Menu'; import M from 'materialize-css/dist/js/materialize.min.js'; import 'materialize-css/dist/css/materialize.min.css'; class Navbar extends Component { componentDidMount() { document.addEventListener(

How implement the Google Play like search bar [closed]

我怕爱的太早我们不能终老 提交于 2019-12-23 04:22:53
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . I need to implement a search in my app and it should look like this would someone please care enough to explain to me how its done.?? Thanks in advance 回答1: You can create a custom layout for that. 1. take a relative layout and give it a rounded bordered background to it. 2. add

Switching View Controllers using MDCBottomNavigationBar on iOS

时光毁灭记忆、已成空白 提交于 2019-12-23 03:40:06
问题 I'm trying to create an iOS app that uses the Material Design library's bottom navigation feature. I can get a view controller with the bottom navigation bar to compile and display, but I'm unable to add other view controllers and switch between them when clicking the different tabs. I have everything simplified down to two files: One is my entry view controller with the bottom navigation stuff, and the other is just a dead simple view controller that I instantiate 3 times to use as the

Customized circular checkbox in Android

拈花ヽ惹草 提交于 2019-12-23 03:09:26
问题 I am trying to get the Google apps photo select UI .. Am using Appcompat checkbox to achieve that with out success. The steps I am working on , 1. Set the checkbox background to custom circular shape 2. define custom shape in xml This is my check box xml looks like , <android.support.v7.widget.AppCompatCheckBox android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/checkBox" android:layout_alignParentTop="true" android:layout_alignParentLeft="true" android

How to use flex layout along with md-card in the grid in angular 2?

天涯浪子 提交于 2019-12-23 03:05:18
问题 I am using "@angular/core": "2.4.10" and "@angular/material": "2.0.0-beta.2". I have installed flex-layout using npm. I want to design responsive grid with cards. I am using md-grid-list and md-card. How do I use flex layout with md-card or md-grid-list. The grid and the card should be responsive according to the window/screen size. Expected result: As soon as I decrease the screen size, the number of columns should be reduced and when the screen size is big the number of columns should

Bottom navigation view - gradient icon tint

偶尔善良 提交于 2019-12-23 02:22:15
问题 I have changed icon tint in BottomNavigationView using selector and gradient color as tint when icon is pressed, but instead changing icon tint to gradient Android made all my icon purple. My question is if there is any possibility to change tint of icons in BottomNavigationView to be gradient color? BottomNavigationCode: <com.google.android.material.bottomnavigation.BottomNavigationView android:id="@+id/nav_bottom_main" android:layout_width="match_parent" app:itemIconTint="@color/bottom_menu

Unable to insert data into Mysql from a materialized modal form

妖精的绣舞 提交于 2019-12-23 01:02:05
问题 Same code works for normal form but not for modal form. Cannot understand why. Below is one of the modals that I am using in my admin dashboard. Currently it has only one field in the form. But when I try to submit the form, the modal closes but data is not inserted into database and also it is not displaying any error. Following is the code for Modal and Form. <li><a href="#modal1" class="tooltipped modal-trigger" data-position="bottom" data-delay="50" data-tooltip="Update Events"><i class=