0
我正在創建一個應用程序,我找不到如何在應用程序的一個活動中選擇一種顏色,並讓它更改應用程序中所有其他活動的背景。我正在使用android studio。如何創建更改應用程序中所有活動背景的首選項?
以下是我的偏好設置屏幕中的代碼。我想知道需要添加什麼。
<PreferenceScreen 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"
android:background="@color/bkgcolor"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".SetActivity" >
</PreferenceScreen>
讓我們看看一些代碼! – Idris
你想看什麼代碼? – user3566841
與您的問題相關的代碼... – Idris