material-design

Material design navigation drawer not sliding out

我只是一个虾纸丫 提交于 2020-01-15 14:24:25
问题 I followed this StackOverflow post's instructions and managed to get the ActionBarDrawerToggle and its animation working. However, no navigation drawer slides out. Why is that? activity_main.xml: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/container" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation=

Tint CheckBox and Toolbar stuff separately

天涯浪子 提交于 2020-01-14 18:48:51
问题 I'm currently using the usually amazing appcompat-v7 library in my application and I'm trying to tint my CheckBoxes without changing the Icon-Colors in the Toolbar (like the back arrow or those three dots). Following how it looks currently - as you can see not only the CheckBox is tinted pink, the back-arrow / three-dots are also tinted pink. My code: Layout <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height=

Change color of RaisedButton from theme not working

梦想的初衷 提交于 2020-01-14 10:13:09
问题 I tried changing the color of all my RaisedButtons from the themeData but it refused to work. All other properties such as fontSize and fontWeight changed successfully. The color of the text only changes from black to white when the brightness property of themeData is changed to Brightness.dark . I there a way I can solve this issue? What could I be doing wrong? Here is my sample code: return new MaterialApp( title: 'Flutter Demo', theme: new ThemeData( primaryColor: Color(0XFF212845),

Right Drawer - how to add Toolbar button?

╄→гoц情女王★ 提交于 2020-01-14 05:33:41
问题 I have extended the well-known Google Navigation Drawer Example by adding Toolbar and right-side Drawer in a simple test project at GitHub: How to add a "burger" button to the Toolbar - which would open the right Drawer (currently you can only swipe it with a finger)? The "burger" button for the left Drawer is already there and works well (probably added by ActionBarDrawerToggle?) Here is my current activity_main.xml: <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas

BottomNavigationView set custom icon downloaded from some url

走远了吗. 提交于 2020-01-14 03:41:12
问题 I have 4 tabs on the bottom of the screen and for the last tab I want to set a user profile image if he has it. I tried everything. Only the icon set from a drawable works fine. Every other case is a disaster. I found out that if I remove icon tint and icon mode on android versions above 26 it works fine. For versions under it, it's not working. Here is the code. Maybe somebody will have some ideas about how to help. This is how i set the icon from a drawable. This imageView is just a test to

how to change actionbar's menu item text color in material design

ぃ、小莉子 提交于 2020-01-13 11:59:07
问题 I'm trying to update my notepad app to use Material Design, even on older devices. What i did so far: add library appcompat_v7 to my project, to support Material Design on older devices modify theme in AndroidManifest, adding android:theme="@style/Theme.NoteItTheme" to <application ... ></application> attributes creating the theme in /res/values/themes.xml: <?xml version="1.0" encoding="utf-8"?> <resources xmlns:android="http://schemas.android.com/apk/res/android"> <style name="Theme

npm - tarball data for material-design-icons seems to be corrupted

我是研究僧i 提交于 2020-01-12 19:05:47
问题 I'm having this error while running a npm install material-design-icons@3.0.1 : tarball data for material-design-icons@3.0.1 (sha1-mnHEh0chjrylHlGmbaaCA4zct78=) seems to be corrupted npm ERR! path D:\speech-analytics\node_modules\.staging\material-design-icons-7d5a1f73\action\drawable-xxhdpi\ic_assignment_ind_white_48dp.png npm ERR! code EPERM npm ERR! errno -4048 npm ERR! syscall unlink npm ERR! Error: EPERM: operation not permitted, unlink 'D:\\speech-analytics\node_modules\.staging

npm - tarball data for material-design-icons seems to be corrupted

心不动则不痛 提交于 2020-01-12 19:04:13
问题 I'm having this error while running a npm install material-design-icons@3.0.1 : tarball data for material-design-icons@3.0.1 (sha1-mnHEh0chjrylHlGmbaaCA4zct78=) seems to be corrupted npm ERR! path D:\speech-analytics\node_modules\.staging\material-design-icons-7d5a1f73\action\drawable-xxhdpi\ic_assignment_ind_white_48dp.png npm ERR! code EPERM npm ERR! errno -4048 npm ERR! syscall unlink npm ERR! Error: EPERM: operation not permitted, unlink 'D:\\speech-analytics\node_modules\.staging

How do you adjust the height and borderRadius of a BottomSheet in Flutter?

怎甘沉沦 提交于 2020-01-12 18:37:22
问题 I'm probably missing something obvious here, but my BottomSheet only takes up the bottom half the screen, even though the widgets in it take up more space. So now there is scrolling behavior inside the BottomSheet. I'd like to be able to increase the BottomSheet so that the user doesn't have to scroll as much. I also want to add a borderRadius to the top of my BottomSheet, so that it looks more "modal"-y or "tab"-like. Code: void _showBottomSheet(BuildContext context) { showModalBottomSheet

Android material design - How do I place a breadcrumb (navigation) in the toolbar?

北城余情 提交于 2020-01-12 08:01:28
问题 I am trying to figure out how to create a breadcrumb in my android app's (material design) toolbar. This can be seen in the latest Dropbox android application, in which the breadcrumb is used to display the navigation of the files. I have also found an image (which I took from another similar question), which can be seen here: Can you guide me on how I can do this? 回答1: I don't think you need a library. If you create a View (maybe a FrameLayout) and then you set it as background the same