material-design

Navigation drawer stuck when offline data loading

痴心易碎 提交于 2020-05-18 20:54:51
问题 I am developing news app user can download video and image. So I developed navigation drawer with different fragment with material design. But I am facing some problem in it when I click gallery (where I show the downloaded video and images) it stuck for some time and then open fragment. it happened only in specific fragment but not all. see Video here. Here is my code: MainActivity.java public class MainActivity extends AppCompatActivity implements FragmentDrawer.FragmentDrawerListener {

Navigation drawer stuck when offline data loading

余生颓废 提交于 2020-05-18 20:54:01
问题 I am developing news app user can download video and image. So I developed navigation drawer with different fragment with material design. But I am facing some problem in it when I click gallery (where I show the downloaded video and images) it stuck for some time and then open fragment. it happened only in specific fragment but not all. see Video here. Here is my code: MainActivity.java public class MainActivity extends AppCompatActivity implements FragmentDrawer.FragmentDrawerListener {

Exception android.content.res.Resources$NotFoundException: File res/color/selector_tab_blue_white.xml from drawable resource ID #0x7f0601d8

こ雲淡風輕ζ 提交于 2020-05-17 05:55:06
问题 I am using tabLayout as <com.google.android.material.tabs.TabLayout android:id="@+id/tabLayoutSubscriptionDays" style="@style/CustomTabLayoutTextSizeSix" android:layout_width="match_parent" android:layout_height="@dimen/_40sdp" android:background="@color/white" app:tabBackground="@color/selector_tab_blue_white" app:tabIndicatorColor="@color/transparent" app:tabMode="fixed" app:tabSelectedTextColor="@color/white" app:tabTextColor="@color/black" /> In some devices i am getting exception as like

Material design components button global theme overriding broken

廉价感情. 提交于 2020-05-15 08:06:08
问题 I want to simply apply styling to all buttons on a theme level like this <style name="BaseTheme" parent="Theme.MaterialComponents.Light.NoActionBar"> ... <item name="buttonStyle">@style/DefaultButton</item> </style> <style name="DefaultButton" parent="Widget.MaterialComponents.Button"> <item name="android:textColor">@color/whatever</item> </style> <Button android:id="@+id/addChannelButton" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom

Can't set background color of button using Material Components library

折月煮酒 提交于 2020-05-15 08:03:07
问题 My code: <Button android:id="@+id/button_one" style="@style/ButtonStyle" android:text="@string/button_one" /> <style name="ButtonStyle"> <item name="android:textSize">32sp</item> <item name="android:textColor">@drawable/background_button_text_color</item> <item name="android:background">@drawable/background_button</item </style> background_button.xml: <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@android:color/white" android:state_pressed="true

How to disable ripple in Material Design React

三世轮回 提交于 2020-05-14 19:09:38
问题 I am talking about this repository. https://github.com/callemall/material-ui I want to know how to disable the ripple effect from all components. Thanks. 回答1: You can disable the default property by adding this to componentDidMount() at the highest level React component that is inside of the MUIThemeProvider : componentDidMount(){ //Do this to all components you would like to disable the ripple effect. EnhancedButton.defaultProps.disableTouchRipple = true; EnhancedButton.defaultProps

How to disable ripple in Material Design React

天大地大妈咪最大 提交于 2020-05-14 19:08:34
问题 I am talking about this repository. https://github.com/callemall/material-ui I want to know how to disable the ripple effect from all components. Thanks. 回答1: You can disable the default property by adding this to componentDidMount() at the highest level React component that is inside of the MUIThemeProvider : componentDidMount(){ //Do this to all components you would like to disable the ripple effect. EnhancedButton.defaultProps.disableTouchRipple = true; EnhancedButton.defaultProps

How I implement new material gmail toolbar without nested scrollview?

可紊 提交于 2020-05-11 03:16:21
问题 I want to implement new gmail like toolbar without nested scroll view, which is scroll able, but when scroll down background should be visible. It will look like this: 回答1: It's not a nested scrollview, Its recyclerView. If you want such a search bar, you can make it using CardView and Edittext or use Material searchbar library. You can place it locked at that position by using frameLayout or CoordinatorLayout. Here is a sample Screen I made!. <?xml version="1.0" encoding="utf-8"?> <android

MessageBox in material design wpf c#

被刻印的时光 ゝ 提交于 2020-04-30 04:33:09
问题 I’m using Material Design In XAML Toolkit C# ,MessageBox in material design WPF C# , I need like this or better Design for MessageBox 👌 I’ve tried use DialogHost but this Error happens No loaded DialogHost instances. private async void MenuPopupButton_OnClick(object sender, RoutedEventArgs e) { var sampleMessageDialog = new SampleMessageDialog { Message = {Text = "Goodbye"} }; await DialogHost.Show(sampleMessageDialog, "RootDialog"); } No loaded DialogHost instances. 回答1: I have developed one

MessageBox in material design wpf c#

空扰寡人 提交于 2020-04-30 04:33:06
问题 I’m using Material Design In XAML Toolkit C# ,MessageBox in material design WPF C# , I need like this or better Design for MessageBox 👌 I’ve tried use DialogHost but this Error happens No loaded DialogHost instances. private async void MenuPopupButton_OnClick(object sender, RoutedEventArgs e) { var sampleMessageDialog = new SampleMessageDialog { Message = {Text = "Goodbye"} }; await DialogHost.Show(sampleMessageDialog, "RootDialog"); } No loaded DialogHost instances. 回答1: I have developed one