android-styles Questions
2
Solved
In my Android java code, how can I reference the color "colorPrimary" set in my theme?
I have the following theme definition:
<!-- Application theme. -->
<style name="AppTheme" parent="A...
Olga asked 12/2, 2015 at 22:58
4
this should be a very easy to customize style...
i want a horizontal progress bar that is slithly thick (or that i can customize the thickness) and the color matches the apps color
if i do
<P...
Townscape asked 8/5, 2020 at 1:37
4
Solved
My code:
<Button
android:id="@+id/button_one"
style="@style/ButtonStyle"
android:text="@string/button_one" />
<style name="ButtonStyle">
<item name="android:textSize">32sp&...
Hanleigh asked 22/4, 2020 at 13:0
5
Solved
I am developing an Activity where I need to make the navigation bar opaque, and the status bar transparent on devices running 5.0+ (API 21+). The styles I am using are below, along with an explanat...
Watchdog asked 3/2, 2015 at 0:41
8
Solved
I'm creating a textView programmatically. Is there a way that i can set the style of this textView? Something similar to
style="@android:style/TextAppearance.DeviceDefault.Small"
which I...
Cysto asked 22/2, 2013 at 8:50
6
The checkbox border is invisible on white background.
I played with different color parameters without success.
I need black border of box.
Yes, there examples to make custom checkbox.
In all dr...
Healey asked 19/10, 2014 at 5:40
20
Solved
Details:
I'm extending ActionBarActivity.
Eclipse and SDK fully patched as of 2011-11-06.
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="14" />
Deployed to Samsung device...
Gehman asked 6/11, 2011 at 1:53
1
When text is copied to clipboard and suggestion is shown, top of keyboard hides the small part of view behind, I think it's a problem of "Gboard", because if EditText inputType is "t...
Aguste asked 23/3, 2021 at 10:49
3
I want to create TextInputLayout with Widget.MaterialComponents.TextInputLayout.OutlinedBox style. I tried many ways but couldn't get the required result.
Here is my code.
TextInputLayout textInp...
Kazan asked 25/10, 2018 at 12:17
2
Solved
I am trying to use this ProgressWheel librery, but I am facing this error after run the proyect.
Error:Execution failed for task ':app:processDebugManifest'.
Manifest merger failed : Attrib...
Entrench asked 23/12, 2016 at 13:52
3
Solved
Password field part of my xml code:
<android.support.percent.PercentRelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-aut...
Knowable asked 20/10, 2016 at 11:53
4
Solved
I want to set title style for my preference fragment screen V14.
This is what I want:
I have followed
Custom PreferenceCategory Headings
I did manage to get the same screen but with PreferenceF...
Mcmurry asked 9/7, 2016 at 6:24
11
Solved
How do you underline a text in an XML file? I can't find an option in textStyle.
Fernandafernande asked 4/4, 2012 at 20:47
5
Solved
I have a datepicker that's showing a header on Lollipop, it looks like this
I want to either change the color of the big date in the header from black to white, or remove the header altogether, I...
Thrive asked 21/2, 2017 at 12:31
4
If I define my TextView as:
<TextView
style="@android:style/TextAppearance.DeviceDefault.Large"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello...
Plectrum asked 22/7, 2016 at 2:7
6
Solved
I have an EditText on Dark background.
My EditTexts are of black color only(if not focused), so not visible properly.
How can I change the color?
Below is the screenshot.
Crudden asked 9/11, 2015 at 12:40
10
Solved
Using API21+ Toolbar:
// Toolbar
Toolbar toolbar = new Toolbar(this);
toolbar.showOverflowMenu();
Would like to remove its shadow completely. setElevation(0) doesn't do anything since getElevati...
Hewitt asked 6/4, 2017 at 12:39
3
I've got this error when I tried to build my project after I updated Android Studio to the lastest version. I am getting below error:
C:\Users\YaCn.gradle\caches\transforms-2\files-2.1\5502c0022...
Laceration asked 31/8, 2019 at 0:18
2
Solved
I am going to give an example to demonstrate the greater point.
Imagine my app has a number of FloatingActionButtons. Consequently, I want to create one style and reuse it. So I do the following:
...
Checkmate asked 5/9, 2016 at 18:36
4
I have a very simple application that runs an html file. I really want to change the color of the status bar, because the standard top and bottom in black is horrible for the color palette of the p...
Cairngorm asked 29/4, 2020 at 20:36
3
Solved
When I apply extra attributes to the AppTheme multiple times it overwrites the previous one. This is the code I am using:
MainActivity:
@Override
protected void onCreate(@Nullable Bundle savedIns...
Iotacism asked 21/1, 2017 at 13:15
3
I want to reduce my xml code repetition. So I made some standard styles for text in textView. We can apply styles under 'style' attribute as well as 'android:textAppearance' attribute in textView. ...
Gredel asked 10/7, 2017 at 9:3
5
I am using MaterialComponents.DayNight theme in my app. In the day mode, toolbar text color is black. But when I switch to night mode toolbar text color is remain black, so it's not visible anymore...
Eatable asked 10/2, 2019 at 4:48
4
I am building an app that uses a DatePickerDialog to allow the user to select their birthdate. Here's the code that loads the dialog right now:
private void selectBirthdate() {
int year, month, d...
Okwu asked 7/6, 2017 at 16:26
2
Solved
I'm attempting to style this MaterialCalendar, but I'm not getting anywhere with it, any help would be appreciated.
My styles.xml looks similar to the below:
<style name="AppTheme" parent="The...
Polemics asked 15/6, 2020 at 14:38
© 2022 - 2024 — McMap. All rights reserved.