Questions tagged [android-textattributes]
53 questions
                    
                    367
                    
            votes
                
                30 answers
            
        how to make a specific text on TextView BOLD
I don't know how to make a specific text on TextView become BOLD.
its like this
txtResult.setText(id+" "+name);
I want the output to be like this:
1111 neil
id and name are variables that I have retrieved the value from database, and I want to…
         
    
    
        Budi Darmawan
        
- 3,743
- 3
- 14
- 7
                    182
                    
            votes
                
                28 answers
            
        Change EditText hint color when using TextInputLayout
I am using the new TextInputLayout from the design library. I am able to get it to show and to change the color of the floating label. Unfortunately the actual EditText hint is now always white. 
I have tried changing the hintColor in XML, styles,…
         
    
    
        SamIAmHarris
        
- 2,158
- 3
- 16
- 19
                    60
                    
            votes
                
                4 answers
            
        Issue: change border color or box stroke for unfocused TextInputLayout in android
I have a very specific issue for changing the outline of the textbox for TextInputLayout when it's unfocused. I can't seem to find an attribute to change the color for the border of my "unfocused" text box.
Here's a visual example of what I'm trying…
         
    
    
        Varun Govind
        
- 983
- 2
- 12
- 23
                    11
                    
            votes
                
                6 answers
            
        Add http://www. in the text if not Exist
How can I know that some text contain "http://www." I want to show domain in Web View. Domain name is written in TextView but there is no restriction to add prefix. If user didn't enter it I have to add and display URL in webview.
         
    
    
        Krishnakant Dalal
        
- 3,568
- 7
- 34
- 62
                    8
                    
            votes
                
                1 answer
            
        Implement a custom TextView with custom textSize
I have implemented a custom TextView, then I need to change its text size for future usages. At that step I decided to make its textSize custom with using style.xml and attr.xml
However I am getting a runtime error while my custom layout is…
         
    
    
        Erdem
        
- 187
- 1
- 9
                    8
                    
            votes
                
                4 answers
            
        Android EditText Memory Leak
Alot of people are noticing EditText in an activity is holding a Strong Reference to an Activity even once its finished. To be clear this EditText is inside a layout and inflated, there is no Listeners set. This only happens on certain devices e.g.…
         
    
    
        MobDev
        
- 1,219
- 1
- 12
- 25
                    7
                    
            votes
                
                3 answers
            
        android:lineSpacingMultiplier doesn't work in android:textAppearance
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: