Setting Android Toolbar Background and Text Colors in Android Studio 1.4.1

后端 未结 1 976

I\'m trying to change activity action bar\'s background color and title color, i tried official tutorial and some answers from here but none worked for me , i\'m missing som

1条回答
  •  一整个雨季
    2020-12-28 10:13

    So, if like me you are using Android Studio 1.4.1 and you are new to android programming, setting title and background colors can be done as follow :

    Background:(check colors.xml with this generated code for BlanckActivity)

    
    
        #3F51B5
        #303F9F
        #FF4081
    
    

    Title,Subtitle and popup menu and its items (check "styles.xml") :

    
    
    

    I hope this can help someone who like me is confused in first steps provided with official android tutorials.

    0 讨论(0)
提交回复
热议问题