Android GridView中的theme.xml文件

Android GridView中的theme.xml文件,android,xml,Android,Xml,我是android新手。我想创建自定义主题。我希望用户可以通过单击视图更改主题。我创建了GridView布局和自定义主题。但我不知道如何存储theme.xml文件以在GridView中显示它。我几乎搜索了3个小时。你能给我一个如何存储的提示吗?谢谢 编辑 <style name="My_Theme" parent="Theme.AppCompat.Light"> <item name="page">@style/page_background</item&

我是android新手。我想创建自定义主题。我希望用户可以通过单击视图更改主题。我创建了GridView布局和自定义主题。但我不知道如何存储theme.xml文件以在GridView中显示它。我几乎搜索了3个小时。你能给我一个如何存储的提示吗?谢谢

编辑

 <style name="My_Theme" parent="Theme.AppCompat.Light">
    <item name="page">@style/page_background</item>
    <item name="button">@style/button</item>
    <item name="text">@style/text</item>
</style>

@样式/页面背景
@样式/按钮
@样式/文本
我希望在GridView中单击时,我的_主题能够正常工作

<GridView xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="fill_parent"
android:layout_weight="fill_parent"
android:numColumns="auto_fit"
android:columnWidth="90dp"
android:horizontalSpacing="10dp"
android:verticalSpacing="10dp"
android:gravity="center"
android:stretchMode="columnWidth"
>


但是我不知道如何存储theme.xml文件以在网格视图中显示它

您可以共享任何代码来演示您试图实现的目标我编辑了我的帖子