android-styles Questions
2
Background
I have found styling attributes not functioning on the merge tags, either apply attributes separately or apply a style.
Known Solutions
Apply styling attributes on the tag that make ...
Youngling asked 30/8, 2014 at 15:47
3
Solved
I'm trying to add android:lineSpacingMultiplier in my textAppearance style (android:textAppearance), and it's not working. Am I doing something wrong?
TextAppearance style:
<style name="TextAp...
Phyto asked 13/2, 2017 at 22:20
4
Solved
I'm a bit confused with these two APIs.
ResourcesCompat.getDrawable(Resources res, int id, Resources.Theme theme)
Return a drawable object associated with a particular resource ID and styled for t...
Polypetalous asked 24/3, 2017 at 16:42
1
Solved
I want to change the color of the active toggle button. But just the change of the rippleColor makes a difference.
I wish to customize the background color of the active button and the text color.
...
Timothy asked 7/10, 2020 at 7:7
4
Solved
I am trying change status bar color for API level lower than 21.By changing the color primary in Theme style we can change the color in status bar for the API level 21.
I am looking for how to c...
Impassion asked 4/12, 2015 at 9:32
6
Solved
My tabs on the TabLayout occupy the centre of the screen and are not filling the entire width even after adding tabMaxWidth = "0dp" as per Adam John's answer
That is I want by tabs to extend to f...
Maineetloire asked 16/9, 2016 at 10:47
5
Solved
My main app theme parent is MaterialComponents theme. I changed the colors, but material components (MaterialButton, InputLayout, EditText) are not using my accent color (they are using some blue c...
Spile asked 21/9, 2018 at 12:0
3
I'm using the new MaterialComponents and my app theme is:
<style name="AppTheme" parent="Theme.MaterialComponents.Light">
<item name="colorPrimary">@color/primaryColor</item>
&...
Tychon asked 28/2, 2019 at 20:47
2
There are lots of docs and tutorials on creating or customising an Android theme style via XML, but have not been able to find a way to create it in code. Any ideas on how to create the style in co...
Lingwood asked 26/9, 2015 at 12:55
5
how can I change the background color of action button in snackbar or make it dissapear (grey background)?
i use this code:
Snackbar mysnack = Snackbar.make(main_layout, getResources().getStri...
Quartz asked 27/9, 2016 at 6:51
1
Solved
I have this problem, after the xxx is the cursor in violet, I want to know the name of that drop cursor, I want to change the color to match my theme. I read many forums and documentation, the onl...
Sphenic asked 28/8, 2020 at 15:4
4
Solved
I want to apply custom style to TextInputLayout's hint and error in one theme and apply it globally i.e. define it in styles.xml and somehow apply it to all TextInputLayouts used throughout the app...
Glorious asked 9/2, 2017 at 14:14
5
Solved
I have an application with min sdk 16 up to 23. I want to use Material design as much as possible. It also has to be fullscreen app. AppCompat support library is included. Now I have Logon activity...
Desirous asked 17/12, 2015 at 9:43
25
Solved
I am using appcompat v7 to get the look consistent on Android 5 and less. It works rather well. However I cannot figure out how to change the bottom line color and the accent color for EditTexts. I...
Riancho asked 26/10, 2014 at 14:56
5
Solved
My app has one activity that hosts different fragments for each section. I have recently made the status bar translucent by setting fitSystemWindows to true, which has set it to the background colo...
Acetometer asked 7/2, 2015 at 20:57
2
I am developing an app in which there are multiple tabs with icon without any title. The problem is that the icons are not looking as bright it should. I used white color(FFFFFF) in creating icon a...
Electrophorus asked 5/3, 2017 at 18:54
4
Solved
I want to do something very simple: Change the background for the AppBarLayout component for the entire theme.
So here's my theme, where I don't know which attribute to overwrite:
<style name=...
Wigley asked 25/3, 2019 at 11:5
6
I am trying to remove the Material Ripple Effect on my TabLayout's Tabs.
I am wondering if it is possible to do this?
Any ideas please?
I have tried setting the stateListAnimator to null but it...
Hackett asked 4/1, 2016 at 6:31
2
I'm trying to change font size of message in alert dialog through styles but I can't make it work. There is a lot of answers describing how to do this but almost all of them I found do it programma...
Debbee asked 3/2, 2016 at 14:18
1
Solved
My code shuffles colors and indexes for a list of ColorBox objects indefinitely.
This is my view:
<TextView
style="@style/App.WidgetStyle.ColorBox"
android:text="@{item.id}"
android:theme="@...
Junia asked 28/3, 2020 at 21:13
4
Solved
My seekBar style is android Widget.AppCompat.SeekBar.Discrete.
I have my own tickMarker but as you can see it shown in front of thumb marker, but I don want to see ticks behind of thumb.
what I wa...
Armrest asked 5/1, 2017 at 16:45
2
After switching to Android Studio 3.2 canary I am getting the following build error.
I have seen this post where the guy had a similar issue but no solution was mentioned over their.
I want to tr...
Malaspina asked 14/5, 2018 at 5:46
1
Solved
I am using a Google library called play-services-plugins to include Open Source Notices on my app.
I could implement it with no problem, but I have no idea how I can style the activity that displa...
Deckhand asked 13/11, 2019 at 13:46
9
Solved
I want to use SearchView in my project, but I have a problem with elements' color. Let me show you: its fragmentDialog where I have my SearchView
I dont need to change bg color. The next picture i...
Annulose asked 24/11, 2016 at 12:15
3
I want to show a radio list inside an AlertDialog with custom styling, something like .
So I created a custom theme and provided that as an argument to AlertDialog.Builder's constructor.
Here's ...
Anyplace asked 21/10, 2015 at 12:59
© 2022 - 2024 — McMap. All rights reserved.