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...
Martainn asked 21/9, 2019 at 8:41
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...
Pleadings asked 15/4, 2019 at 22:19
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...
androidmaterial-designandroid-jetpack-composematerial-components-androidandroid-jetpack-compose-material3
Oysterman asked 10/2, 2022 at 17:34
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...
Lalo asked 15/10, 2020 at 12:11
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...
Luiseluiza asked 30/6, 2020 at 15:31
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...
Elderly asked 3/10, 2019 at 18:6
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 ...
Phonometer asked 26/3, 2019 at 5:47
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...
Ayres asked 8/5, 2017 at 16:18
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...
Ejecta asked 25/2, 2020 at 8:38
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?
Lemmon asked 23/2, 2023 at 12:36
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...
Polymerism asked 1/4, 2020 at 22:34
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...
Blumenthal asked 17/8, 2021 at 14:25
7
Solved
I have the following AutoCompleteTextView:
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/offering_type_dropdown_layout"
style="@style/Widget.MaterialCo...
Shaunta asked 14/8, 2020 at 14:19
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...
Tailrace asked 17/6, 2019 at 20:22
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...
Perkins asked 21/5, 2015 at 9:7
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...
Startle asked 5/3, 2022 at 15:38
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...
Gwynethgwynne asked 28/8, 2022 at 18:53
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...
Ginglymus asked 27/4, 2021 at 7:42
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 ...
Divebomb asked 23/9, 2019 at 15:34
1 Next >
© 2022 - 2024 — McMap. All rights reserved.