当我单击操作菜单或导航栏中的按钮时,仅显示文本。 这是我的代码
<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>
这是我的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);
我认为抽屉的绘图是EditText的封面图。有解决方案吗?