android-styles Questions

17

Solved

I am trying to reproduce the behaviour of Google Calendar application: but I have not found a way to change the status text color. If i set the colorPrimaryDark as white I cannot see the icons nei...
Zerlina asked 14/7, 2016 at 19:4

4

Solved

This question should be simple, but i didn't find an answer. I have an app with selectable accent, and i'm trying to add an option to use the android system accent (apps like Lawnchair have such an...
Price asked 12/10, 2019 at 9:26

5

Solved

I'm using the above property in my TextInputLayout theme to make the underline color of the TextInputLayout green when activated. <item name="colorControlActivated">#27e905</item> I...
Pyonephritis asked 23/7, 2018 at 10:35

30

Solved

I am having this issue where I am using the Android's Holo theme on a tablet project. However, I have a fragment on screen which has a white background. I am adding an EditText component on this fr...
Covarrubias asked 30/8, 2011 at 3:43

1

Solved

(I should mention I have read a lot of answers about the AlertDialog styles and tried every suggestion I could find). I have a sample class I'm testing. If I use MaterialAlertDialogBuilder my butto...
Discordance asked 30/11, 2023 at 18:36

15

Solved

I want to remove the black background on custom dialog as shown in the picture. I'm sure the black background was from the dialog, not from app's background. ; AlertDialog code public class My...

7

I was able to create a floating activity after following this tutorial http://cases.azoft.com/android-tutorial-floating-activity/ However, to do so, I had to add this line in styles.xml : <ite...

19

Solved

I'm trying to customize a TextInputLayout with material style. I managed to set the focused state to the colors I want: Using <com.google.android.material.textfield.TextInputLayout style=&quot...

9

Solved

In my Android app, it is vital for me to use the adjustResize behavior for the soft keyboard. So users can scroll down to other UI elements, such as a "continue" button. I've noticed that that adj...

19

Solved

I've added a RatingBar in a layout: <RatingBar android:id="@+id/ratingbar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:numStars="5" android:stepSize="...
Reck asked 20/5, 2010 at 14:14

2

Solved

I want to change the cursor (or caret) color, just like in this stack overflow question, but in Material 3. This is my verion of the material library: implementation 'com.google.android.material:ma...

8

I am adding 2 tabs in the TabLayout, and following is my code. <com.google.android.material.tabs.TabLayout android:id="@+id/tabLayout" style="@style/AppTabLayout" android:layout_width="match...

4

Solved

I'm looking for applying this color to all switches only. But by default, it is taking colorAccent instead of this theme for switch. Device: marshmallow. layout: <Switch android:id="@+id/sou...
Allenaallenby asked 31/10, 2017 at 12:44

41

Solved

I'm trying to figure out the right way to use a custom font for the toolbar title, and center it in the toolbar (client requirement). At the moment, i'm using the good old ActionBar, and I was set...

6

Solved

I find out that since Android Studio 4.1 I cannot change the background color of a Button by setting color on its android:background, just no effect. And custom Drawable is not working as well. My ...

24

Since today, Android Studio can't find the AppCompat themes in styles.xml, but for example AppCompatActivity in code does get recognized. My Android Studio version is 2.2.2, Build #AI-145.3360264...

11

Solved

Using the Fonts in XML feature you can specify various font weights for a font family. For example: <?xml version="1.0" encoding="utf-8"?> <font-family xmlns:android=&q...
Veneering asked 5/10, 2017 at 15:32

11

Solved

I was wondering if it's possible to change the statusbar icons colour (not the statusbar colour, colorPrimaryDark) Let's say I want this statusbar with: <item name="colorPrimaryDark">@androi...

3

Solved

I've been following throught the myfirstapp guide on Android developers training but I've come across a problem where they do not properly explain how to define colors. They mention that to create...
Rochelle asked 16/11, 2014 at 14:45

5

Solved

I have a SearchView widget in my app, and I want to ask some questions about making it custom. First of all, you can start search only by clicking on search icon, is there any way to make whole Sea...
Cnidus asked 16/7, 2013 at 7:36

13

Solved

I want to hide status bar / notification bar in splash screen I am using style:<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"> this dose not hide the status bar, how should...
Noelnoelani asked 23/3, 2017 at 6:19

10

Solved

I want to change the default color of the date/time picker dialog in Android, so that it should match my app's theme. I searched for the solution on Google, but I couldn't find a solution. What I ...

15

Solved

I am looking to Custom The Switch Button to becoming as following : How to achieve this ?
Cobbie asked 29/4, 2014 at 7:56

13

Solved

I'm trying to use the TextView constructor with style like this: TextView myText = new TextView(MyActivity.this, null, R.style.my_style); However, when I do this, the text view does not appear t...
Asymmetric asked 29/6, 2010 at 15:13

5

Solved

I'm trying to remove the shadow below tabs while using TabLayout, which is defined in a normal layout (and not as a part of a toolbar or actionbar). Setting theme as <item name="android:windo...
Forepleasure asked 21/7, 2015 at 15:24

© 2022 - 2024 — McMap. All rights reserved.