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);