material-components-android Questions

7

Solved

In the process of migrating my app to Jetpack compose, I've come to a part of my app where a TextField needs autocompletion functionality. However, as of version 1.0.0-alpha05, I couldn't find any ...
Sociality asked 18/10, 2020 at 23:35

4

Solved

I want to remove dropdown arrow which is created by AutoCompleteTextView when I use TextInputLayout and use Style: ExposedDropdownMenu Below is my code: <com.google.android.material.textfiel...

3

I'm using the new Material 3 NavigationBar and NavigationBarItem components, I want the NavigationBar to be thinner, because the default one is too large. I want one similar to the one Gmail or Dri...
Ranaerancagua asked 14/11, 2021 at 17:47

5

I need to change color of the password toggle in TextInputLayout if EditText is focused or not. I've done it this way but it's not working. The color is always equals color light grey (from state f...

4

How to set elevation for material3 card? I am using new material3 card and getting error This material API is experimental and is likely to change or to be removed in the future. Here is code -&g...

10

Solved

I'm using the latest version of the com.google.android.material:material library (i.e. 1.1.0-alpha03) and I have a MaterialButton defined with an icon and no text as follows: I was hoping the Ma...
Atalaya asked 15/2, 2019 at 16:10

1

I need to set dynamic height value to dataRowHeight property of DataTable Widget to fit different Row's contents and I don't want to use Table Widget which allows that. - #flutter As by default, it...

3

Solved

Im currently creating an app, which has a MaterialToolbar widget. I want to set the icons color to white. I tried following the accepted answer in this question, however, it doesnt work. Adding col...

6

I search a lot on internet but couldn't find the exact solution. Here is the link that i last tried from SO. Get selected Chips from a ChipGroup I want to get selected chips from chip group when a...

6

I am using Material Components for creating the Choice chip. I have followed https://material.io/develop/android/components/chip/ document. There is enough stuff for creating a chip in XML but not ...

29

Solved

I have a custom BttomSheetDialogFragment and I want to have round corners in top of Bottom View This is my Custom class that inflates my layout that I want to appear from bottom View mView; @Overr...

3

Solved

I am trying to add a TextInputLayout with an EditText to a LinearLayout programmatically. My approach: TextInputLayout textInputLayout = new TextInputLayout(new ContextThemeWrapper(getContext(), R...

2

Solved

Wh can create dark and light color palette, it's ok. But it has only 12 colors. How to add more custom colors for the light and dark palette?

5

Solved

In my application I am using textfield.TextInputLayout and textfield.TextInputEditText as input text, instead of the usual EditText. This is my view: <com.google.android.material.textfield.Tex...

5

Solved

In Jetpack Compose, I have a BottomSheetScaffold with some content. This content is observed from the ViewModel, like this: BottomSheetScaffold( sheetContent = { SheetContent(sheetData = viewModel...

7

Solved

I have the following AutoCompleteTextView: <com.google.android.material.textfield.TextInputLayout android:id="@+id/offering_type_dropdown_layout" style="@style/Widget.MaterialCo...

4

Solved

Currently working on setting up an Exposed Dropdown menu item using the material design components and guidelines for menus. However when displaying my autocomplete text view it does not have the s...

7

Solved

I have been looking for ways to implement a searchview in the activity toolbar (actionbar) as per the material design guidelines. On clicking on the search icon, the entire toolbar animates to hav...

2

So I use SwitchMaterial in one layout: <com.google.android.material.switchmaterial.SwitchMaterial... And Firebase Crashlytics spams me with the following errors for many users Fatal Exception:...
Goer asked 25/8, 2022 at 10:34

5

Solved

I created a new Android project using Android Studio Arctic Fox | 2020.3.1 Patch 3 and my goal is to simply customize my app to use Material3 theme Error occurs at values\themes.xml saying Cannot r...
Notation asked 6/1, 2022 at 16:54

6

I want to use rememberScaffoldState() in android material3 compose, but not able to use it. @OptIn(ExperimentalMaterial3Api::class) @Composable fun AppFeatureScreen(viewModel: AppFeatureViewModel...

3

Solved

Android Studio throws an Unresolved Reference error for ScaffoldState with Material3. How can I make it work? import androidx.compose.foundation.clickable import androidx.compose.material3.* import...

2

There is a problem using ShapeableImageView material component and set shapeAppearanceOverlay to make it a circle image. It doesn't show up in viewport. Seems like we set the visibility to GONE. Ho...
Surprint asked 4/3, 2020 at 12:31

5

Solved

I am trying to implement the chip layout in android, I have updated my google material dependency to its latest version as well. But the XML file is throwing this problem Failed to find '@attr/shap...

16

Solved

What I'm trying to achieve is something like Instagram in-app web browser, used when you click an ad: what I did, is I used a WebView bottomSheetDialogFragment, and I override onCreateDialog to ...

© 2022 - 2024 — McMap. All rights reserved.