Questions tagged [material-components-android]
Material Components for Android (MDC-Android) help developers execute Material Design. Developed by a core team of engineers and UX designers at Google, these components enable a reliable development workflow to build beautiful and functional Android apps.
material-components-android
1,361
questions
35
votes
3
answers
25k
views
How to achieve a full-screen dialog as described in material guidelines?
Material guidelines describe the behavior of a full-screen dialog.
Full-screen dialog | Dialogs - Material Design
How can I achieve this in practice?
59
votes
7
answers
90k
views
Implementing SearchView as per the material design guidelines
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 have ...
187
votes
10
answers
130k
views
Toolbar overlapping below status bar
I want to have appcompat v21 toolbar in my activity. But the toolbar I'm implementing is overlapping below status bar. How can I fix it?
Here is the activity layout xml:
<LinearLayout xmlns:...
18
votes
5
answers
18k
views
Android material chips
I want to implement an autocomplete edittext with chips in my application and I want to do it in a way that it's done here: material design chips.
First I would like to ask if there is some kind of ...
219
votes
14
answers
249k
views
Adjust icon size of Floating action button (fab)
The new floating action button should be 56dp x 56dp and the icon inside it should be 24dp x 24dp. So the space between icon and button should be 16dp.
<ImageButton
android:id="@+id/fab_add"
...
2
votes
1
answer
2k
views
Material Design Menu Item
So here I thought after implementing Material Design everything would be just like it says in the guideline. But when I used a menu item with only a title (THE RIGHT ONE, NOT HOME ICON), it's not the ...
165
votes
8
answers
106k
views
Material Design not styling alert dialogs
I've added the appCompat material design to my app and it seems that the alert dialogs are not using my primary, primaryDark, or accent colors.
Here is my base style:
<style name="...
88
votes
18
answers
90k
views
Put constant text inside EditText which should be non-editable - Android
I want to have constant text inside editText like:
http://<here_user_can_write>
User should not be able to delete any chars from "http://", I searched about this and found this:
editText....
8
votes
3
answers
4k
views
Mirror (flip) a View / ProgressBar
I have a custom built circular progress bar used for a seconds counter on a clock, which I'd like to flip, so that the clock is counting counter-clockwise.
Searching here for a solution, I found this:...
48
votes
4
answers
62k
views
Android Circular Determinate ProgressBar
I want to create a Circluar Determinate ProgressBar, the kind which shows the Progress in the center of the Bar. Is there any default way to create this, or will i have to create my own custom one.
14
votes
6
answers
34k
views
Progress bar rounded on both sides in android
I am trying to create a custom progress bar in android. I have used the following xml file for it (progress_bar_horizontal.xml):
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:...