0

我創建一個佈局,其中滾動型是根元素,但我得到的佈局設計標籤此錯誤無法找到風格「scrollviewstyle」在當前主題

未能發現與當前的主題風格「scrollviewstyle」

這是xml文件 -

<?xml version="1.0" encoding="utf-8"?> 
<ScrollView 
    xmlns:android="http://schemas.android.com/apk/res/android" 
    xmlns:tools="http://schemas.android.com/tools" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    tools:context="com.android.myapp.MainActivity"> 
     <RelativeLayout 
      android:layout_width="match_parent" 
      android:layout_height="wrap_content"> 
      ... 
      ... 
      ... 
     </RelativeLayout> 
</ScrollView> 

回答

0

雖然我也不太清楚究竟是因爲缺乏上下文您的問題,一個辦法,甲肝Ë運作良好,對我來說有兩種情況:

  • 刷新佈局
  • 選擇從主題下拉菜單中的主題(參見下圖) enter image description here

這是因爲Android的工作室(對於某些原因)無法找到您用於您的活動的主題。

希望這會有幫助

+0

刷新佈局工作,感謝 –

相關問題