Android Studio Layout Preview Default Theme

后端 未结 2 446
误落风尘
误落风尘 2021-02-07 21:54

Maybe this is well known option in Android Studio but I couldn\'t find it and Google has not helped me with this :( Every time I open a layout preview in Android Studio it\'s ap

2条回答
  •  甜味超标
    2021-02-07 22:53

    You need to provide default theme on application tag in AndroidManifest.xml file. If you don't provide android:theme="@style/{themeName} there will be added Material.Light default theme.

    Please check example of code snippet from my manifest file

    
    
    
        
    
    
        
            android:name=".IQallApp">
      
    
    
    

提交回复
热议问题