Border color on Android button

前端 未结 6 793
猫巷女王i
猫巷女王i 2021-02-05 04:47

I have a button created and have set the background color and text color as can be seen below. My question is: how do I set the buttons border color? I want to set the border co

6条回答
  •  没有蜡笔的小新
    2021-02-05 05:27

    try Material button

    Set app:strokeWidth, app:strokeColor as per your need

    
    

    Note : you need to add dependency for material widgets

    //Material Components for Android
    implementation 'com.google.android.material:material:1.0.0'
    

提交回复
热议问题