Problem The following image shows how normally the elevation is aligned for every Widget in Flutter (if elevation is available): But I want to move the elevation to the direct center (Offset(0.0, 0.0)) of the Card Widget here. I never found a clean solution. Does anyone got an answer here? Source: Android..
I am trying to set the text color of an AppCompatTextView using the setColor method and providing the color from a custom attribute in my theme, but it does not seem to work. The following is the exact code I am using binding.loginTextTv.setTextColor(R.attr.primaryMainColor) It works fine when I do something like binding.loginTextTv.setTextColor(R.color.primaryColor) How can I ..
I have a question related to material toggle buttons group. How can I check is any of toggle buttons in group selected? If any of buttons in group is selected then button ‘Next’ will be active, else button ‘Next’ will be inactive. Should I check each toggle button or there is a way to check ..
Problem : There was no problem when app was using Theme.MaterialComponents.Light.NoActionBar But was not using any MDC elements in Layout like (TextInputLayout etc). Then i replaced Editext with TextInputLayout and Button with Material Button. Now here the problem comes. When i run my app, i see the screen goes blank. Just pure white. I checked ..
I have a list of material cards in my layout as follows and I am trying to load data from backend, while loading I would like to show a progress bar. I have implemented a circular progressbar but would like to implement the loading for items as shown in the image below. <?xml version="1.0" encoding="utf-8"?> ..
I want to display a custom floating action button on top left corner of screen. There is Extended floating action button but it doesn’t serve my purpose because i want a button with two images, one back icon and another activity image icon. So to achieve this look i used a custom cardview. But the ..
The app_name is appearing in the top left corner for some reason. Why? See here: emulator screenshot My app runs in full screen and hides UI elements, like the action bar. The only two components in the app are a constraint view and the center textView that shows the word "voluble." The only thing I ..
On https://material.io/components/text-fields there is an interactive demo for Filled TextField. Label hint is centered inside input field and when you click on it and enter some text label moves app and text that you inputed is slightly below center(where hint previously was) Problem is that I am not able to reproduce this behaviour on Android ..
I have scenario as BottomSheetDialogFragment will pop up from below and ask to modify page, if user click yes or drag bottom sheet to top; first view(cl_collapsed_container) will gone by animation and new view will appear(cl_expanded_container) also with animation. I tried so many combination but could not accomplish. here is my xml; <androidx.coordinatorlayout.widget.CoordinatorLayout android:layout_width="match_parent" android:layout_height="match_parent"> ..
I am using Material Design and I have a problem with it. I have a group com.google.android.material.button.MaterialButtonToggleGroup which includes icon-only toggle buttons with style @style/Widget.App.Button.OutlinedButton.IconOnly. I am using style from documentation: <style name="Widget.App.Button.OutlinedButton.IconOnly" parent="Widget.MaterialComponents.Button.OutlinedButton"> <item name="iconPadding">0dp</item> <item name="android:insetTop">0dp</item> <item name="android:insetBottom">0dp</item> <item name="android:paddingLeft">12dp</item> <item name="android:paddingRight">12dp</item> <item name="android:minWidth">48dp</item> <item name="android:minHeight">48dp</item> </style> There is screenshot how it looks: ..