简体   繁体   English

Android Studio 首选项布局选项卡完全损坏

[英]Android Studio Preference Layout Tab Completely Broken

I am trying to create a settings menu in Android Studio, but the design tab is completely broken.我正在尝试在 Android Studio 中创建一个设置菜单,但设计选项卡已完全损坏。 When I drag and drop items into the screen, nothing happens.当我将项目拖放到屏幕中时,没有任何反应。 The two existing components are from the Text tab, however, as I am not very experienced in Android, the design tab is my best friend.现有的两个组件来自 Text 选项卡,但是,由于我对 Android 不是很熟悉,因此设计选项卡是我最好的朋友。

I've tried restarting Android Studio, and nothing.我试过重新启动 Android Studio,但什么也没有。 Does anyone know how to fix this?有谁知道如何解决这一问题? Thanks.谢谢。

我的偏好在哪里?

XML code: XML 代码:

<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.preference.PreferenceScreen>
    <SwitchPreferenceCompat />
    <EditTextPreference />
</android.support.v7.preference.PreferenceScreen>

Using the Text tab (now the Code tab) is more useful for PreferenceScreen.使用文本选项卡(现在是代码选项卡)对 PreferenceScreen 更有用。 I think if you add android:title="" to all your defined Preference children in the XML file, it will show up.我认为如果您将android:title=""添加到 XML 文件中所有定义的 Preference 子项,它将显示出来。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM