0
我正在Android Studio中開發應用程序,但是當我對GUI進行更改時,在設備上運行應用程序後沒有顯示更改。Android Studio不顯示更改
我已經試過:
- 重建
- 禁用即時運行
- 更新AndroidStudio
- 在每個新的部署
任何想法卸載從設備的應用程序?
--- ---代碼
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="@string/homeTitle"
android:id="@+id/titleText"
android:textSize="50dp"
android:textColor="#000000"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true" />
<Switch
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/enableSwitch"
android:text="@string/enableString"
android:layout_marginTop="15dp"
android:layout_below="@+id/titleText"
android:layout_centerHorizontal="true" />
<Switch
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/brightness_string"
android:id="@+id/brightnessSwitch"
android:layout_below="@+id/enableSwitch"
android:layout_centerHorizontal="true"
android:layout_marginTop="33dp" />
<Switch
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/gpsManagementString"
android:id="@+id/gpsSwitch"
android:layout_below="@+id/brightnessSwitch"
android:layout_centerHorizontal="true"
android:layout_marginTop="19dp" />
<Switch
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/commsManagementString"
android:id="@+id/commsSwitch"
android:layout_below="@+id/gpsSwitch"
android:layout_centerHorizontal="true"
android:layout_marginTop="19dp" />
<Button
android:layout_width="160dp"
android:layout_height="135dp"
android:text="@string/options_string"
android:id="@+id/button"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true" />
<Button
android:layout_width="160dp"
android:layout_height="135dp"
android:text="@string/about_string"
android:id="@+id/button2"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true" />
那麼這些變化是什麼? –
目前我只是試圖在XML中創建一個UI,但它看起來像不管我正在更改它是不是顯示 –
你必須添加相關信息和代碼片段到您的帖子,否則這將被關閉不久。 –