Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/209.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android EditText中的文本无法正常显示_Android_Android Layout_Android Actionbar_Android Edittext - Fatal编程技术网

Android EditText中的文本无法正常显示

Android EditText中的文本无法正常显示,android,android-layout,android-actionbar,android-edittext,Android,Android Layout,Android Actionbar,Android Edittext,文本仅在我单击“操作”菜单或导航栏中的按钮时显示。 这是我的密码 <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/drawer_layout" android:layout_width="match_parent" android:layout_height="match_parent"> <R

文本仅在我单击“操作”菜单或导航栏中的按钮时显示。 这是我的密码

<android.support.v4.widget.DrawerLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">

<RelativeLayout
    android:layout_width = "match_parent"
    android:layout_height = "match_parent"
    android:orientation = "vertical"
    >
    <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
        android:orientation="vertical"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:fillViewport="true">  
        <HorizontalScrollView
            android:orientation="horizontal"
            android:layout_width="fill_parent"  
            android:layout_height="fill_parent"
            android:fillViewport="true">
                <EditText
                    android:layout_width = "fill_parent"
                    android:layout_height = "fill_parent"
                    android:gravity="top"
                    android:background="#000"
                    android:id="@+id/Editor"


                    />

        </HorizontalScrollView>
    </ScrollView>
</RelativeLayout>

<FrameLayout
    android:id="@+id/content_frame"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_gravity="start"
    android:background = "#FFF"
    >
    <ListView 
        android:layout_width = "match_parent"
        android:layout_height = "match_parent"
        />
<!-- The navigation drawer -->
</FrameLayout>
</android.support.v4.widget.DrawerLayout>

我认为抽屉里的画是文字的封面画。有解决办法吗?

好的,这是材料主题的问题。但是我想使用材料主题,我应该怎么做?好的,这是材料主题的问题。但是我想使用材料主题,我应该怎么做?
mDrawerToggle = new ActionBarDrawerToggle(this, mDrawerLayout,
                                              R.drawable.ic_drawer, R.string.drawer_open,
                                              R.string.drawer_close) {
        @Override
        public void onDrawerClosed(View drawerView) {
            getActionBar().setTitle(mTitle);
            invalidateOptionsMenu();
        }

        @Override
        public void onDrawerOpened(View drawerView) {
            getActionBar().setTitle(mDrawerTitle);
            invalidateOptionsMenu();
        }
    };
    mDrawerLayout.setDrawerListener(mDrawerToggle);