material-design

Overlay image on Action Bar

一笑奈何 提交于 2019-12-07 22:32:15
问题 How do I overlay image over an Action Bar and status bar ? Here is what I want it to look like - I read this but it gives different results than what I want. The Action Bar still has some opacity and the status bar has no effect at all. Is there any way to do this? 回答1: Add these two lines of code to your styles-v21.xml file: <item name="android:windowTranslucentStatus">true</item> <item name="windowActionModeOverlay">true</item> Edit: You want it in the v21 file because Android versions

How to use material-dropdown-select in angular dart

佐手、 提交于 2019-12-07 20:11:14
问题 I am looking for a sample how to use the material-dropdown-select component. What I have is a variable holding the currently selected item and a list with all possible items. What I managed to do is to display the dropdown component and fill the available items. <material-dropdown-select> <material-select-item *ngFor="let item of allItems"> {{item.name}} </material-select-item> </material-dropdown-select> What I did not manage is to automatically mark the currently selected item and to add an

FAB between layouts

蓝咒 提交于 2019-12-07 19:09:49
问题 Here is my xml: <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout 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/coordinatorLayout" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity"> <include android:id="@+id/toolbar" layout="@layout/toolbar" /> <LinearLayout android:layout

Android CardView doesn't work on Api 21

落花浮王杯 提交于 2019-12-07 18:08:53
问题 I am using android CardView and it works perfectly below Api 21. But when I use it on Api 21 i.e. Lollipop the xml attributes like cardElevation , cornerRadius doesn't work. What am I doing wrong? This is my XML layout: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:card_view="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <!-- A CardView that contains a TextView

MaterializeCss modal Error openModal is not a function

百般思念 提交于 2019-12-07 18:01:41
问题 I have all requirements Jquery, Materialize.js sitting above my Js file however I get the warning openModal is not a function..I checked the modal name is right and I can run Materialize.toast so I know Materialize.js is working. Triggering with the button does not call the modal either. Here is the code.. Scripts: <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script> <script type="text/javascript" src="/js/materialize.js"></script> <script type="text

Material SearchView implementation error

本秂侑毒 提交于 2019-12-07 14:50:02
问题 I'm developing an android app, by now everything great, but when try to implement a Material SearchView with Google guidelines and following step by step some tutorials I can't figureout this error: menu_main.xml <?xml version="1.0" encoding="utf-8"?> <menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"> <item android:id="@+id/search_ad" android:enabled="true" android:icon="@android:drawable/ic_menu_search" android:title="Buscar"

Xamarin - Classes not found (android support library)

旧巷老猫 提交于 2019-12-07 14:32:48
问题 I'm trying to implement Material Design with backward compatibility using AppCompat. Following the tutorial. But I'm getting the following error Error 1 error: package android.support.v4.app.FragmentManager does not exist android.support.v4.app.FragmentManager.OnBackStackChangedListener C:\Users\Italo\Documents\Xamarin\TemaMaterial\TemaMaterial\obj\Debug\android\src\mono\android\support\v4\app\FragmentManager_OnBackStackChangedListenerImplementor.java 8 41 TemaMaterial Error 2 error: package

Switching View Controllers using MDCBottomNavigationBar on iOS

浪子不回头ぞ 提交于 2019-12-07 14:04:32
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 targets of the three tabs. Currently, my specific error is: Terminating app due to uncaught exception

CollapsingToolbarLayout | Scrolling and layout issues

时间秒杀一切 提交于 2019-12-07 12:35:19
问题 Related Questions CollapsingToolbarLayout | Scrolling and layout issues 2 Question I have been working with the Android Support Design Library and successfully implemented the CoordinatorLayout that causes the Toolbar and TabLayout to scroll out of view when scrolling. This works very well, so I figured I would try my luck with the new CollapsingToolbarLayout . In a seperate activity, I have been having issue-after-issue with implementing CollapsingToolbarLayout . I am, as they say, close but

Material tabs with toolbar like design

微笑、不失礼 提交于 2019-12-07 11:59:03
问题 I saw this sample code for android playstore like layout on stackoverflow post, but due to low reputation i was not able to comment there. i am trying to achieve similar design for my project and would like if someone can help me get full code for this design apart from the layout file shared here. Thanks. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:orientation="vertical" android:layout_width="match_parent"