Rounded corner for textview in android

前端 未结 11 1178
猫巷女王i
猫巷女王i 2020-12-02 04:30

I have a textview and want its corner to be in round shape. I already know it can be done using android:background=\"@drawable/somefile\". In my case, this tag

11条回答
  •  悲哀的现实
    2020-12-02 05:06

    1. Right Click on Drawable Folder and Create new File
    2. Name the file according to you and add the extension as .xml.
    3. Add the following code in the file
      
      
          
          
          
      
    
    1. Add the line where you want the rounded edge android:background="@drawable/corner"

提交回复
热议问题