2017-09-24 42 views
0

有誰知道爲什麼Switch小部件在兩個不同的應用程序中表現不同嗎?不一致的開關顯示

他們倆都在使用構建工具26.0.1和26.1.0 sdk。有關switch

styles.xml文件

<Switch 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" /> 

enter image description here

<Switch android:id      ="@+id/imgbtn_settings_noti_daily" 
     android:layout_width   ="wrap_content" 
     android:layout_height   ="wrap_content" 
     android:layout_below="@id/edttxt_settings_about_me"/> 

enter image description here

+0

最有可能與該活動的主題有關。\ – JoxTraex

回答

2

可能有差異,所以我建議你檢查這兩個應用styles.xml文件(或theme應用)

你可能會得到它。

+0

這兩個應用程序都是這個主題:@android:style/Theme.Light.NoTitleBar.Fullscreen –

+0

你是否也檢查過'styles.xml'文件? –