<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent"> <!-- 文本框 -->
<EditText android:id="@+id/etx_addtext_drawtext"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:singleLine="true" android:text="Enter text here" /> <Button android:id="@+id/button_open" android:layout_width="100dp"
android:layout_height="wrap_content" android:text="@string/open"
android:layout_centerInParent="true" android:visibility="gone" /> <it.sephiroth.demo.slider.widget.MultiDirectionSlidingDrawer
xmlns:my="http://schemas.android.com/apk/res/it.sephiroth.demo.slider"
android:id="@+id/sliding_drawer_bottom" my:direction="bottomToTop"
android:layout_width="fill_parent" android:layout_height="wrap_content"
my:handle="@+id/handle_bottom" my:content="@+id/content">
<include android:id="@id/content" layout="@layout/pen_content" />
<ImageView android:id="@id/handle_bottom"
android:layout_width="wrap_content" android:layout_height="40px"
android:src="@drawable/sliding_drawer_handle_bottom" />
</it.sephiroth.demo.slider.widget.MultiDirectionSlidingDrawer>
</RelativeLayout>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal" android:layout_width="fill_parent"
android:layout_height="fill_parent">
<it.sephiroth.demo.slider.widget.MultiDirectionSlidingDrawer
xmlns:my="http://schemas.android.com/apk/res/it.sephiroth.demo.slider"
android:id="@+id/sliding_drawer_left" my:direction="leftToRight"
android:layout_width="fill_parent" android:layout_height="wrap_content"
my:handle="@+id/handle_left"> <ImageView android:id="@id/handle_left"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:src="@drawable/drawer_left" android:topOffset="10dip" />
</it.sephiroth.demo.slider.widget.MultiDirectionSlidingDrawer></RelativeLayout>
在第二个"<RelativeLayout"处报错:The up in the document following the root element must be well-formed.清指教!谢谢
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent"> <!-- 文本框 -->
<EditText android:id="@+id/etx_addtext_drawtext"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:singleLine="true" android:text="Enter text here" /> <Button android:id="@+id/button_open" android:layout_width="100dp"
android:layout_height="wrap_content" android:text="@string/open"
android:layout_centerInParent="true" android:visibility="gone" /> <it.sephiroth.demo.slider.widget.MultiDirectionSlidingDrawer
xmlns:my="http://schemas.android.com/apk/res/it.sephiroth.demo.slider"
android:id="@+id/sliding_drawer_bottom" my:direction="bottomToTop"
android:layout_width="fill_parent" android:layout_height="wrap_content"
my:handle="@+id/handle_bottom" my:content="@+id/content">
<include android:id="@id/content" layout="@layout/pen_content" />
<ImageView android:id="@id/handle_bottom"
android:layout_width="wrap_content" android:layout_height="40px"
android:src="@drawable/sliding_drawer_handle_bottom" />
</it.sephiroth.demo.slider.widget.MultiDirectionSlidingDrawer>
</RelativeLayout>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal" android:layout_width="fill_parent"
android:layout_height="fill_parent">
<it.sephiroth.demo.slider.widget.MultiDirectionSlidingDrawer
xmlns:my="http://schemas.android.com/apk/res/it.sephiroth.demo.slider"
android:id="@+id/sliding_drawer_left" my:direction="leftToRight"
android:layout_width="fill_parent" android:layout_height="wrap_content"
my:handle="@+id/handle_left"> <ImageView android:id="@id/handle_left"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:src="@drawable/drawer_left" android:topOffset="10dip" />
</it.sephiroth.demo.slider.widget.MultiDirectionSlidingDrawer></RelativeLayout>
在第二个"<RelativeLayout"处报错:The up in the document following the root element must be well-formed.清指教!谢谢
解决方案 »
- listview读Json加载慢黑屏问题
- 恭喜那些能安装安卓开发环境的同学
- FrameLayout内,Margin失效的问题
- Android 如何调用layout-land 和layout
- android总联不上PC
- 【求助】Android中EGL和OpenGLES如何编译?
- Fragment replace上一个fragment还存在,怎么办!急急急!
- 使用printershare调用打印机时,有没有办法改变默认的打印选项设置?
- 机顶盒安卓系统与手机安卓系统的区别是什么?
- Webview之H5页面调用android的图库及拍照
- HTC g8手机应该选什么规格的AVD呢?
- 关于onActivityResult中data返回资源路径的问题
你是两个relativeLayout放在了一起. root layout在哪里?