<?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.清指教!谢谢
解决方案 »
- android导入外部包错误
- 单行的布局 如何给他弄成两个相等长度的文本呢 在线等!!
- 如何在Linux下用命令行运行aapt工具
- 请教为何android把应用结构设计的这么复杂?
- andriod开发 intent.setClass()的方法问题
- 请问怎样Hook安卓内核函数?
- 关于Unfortunately, HelloWorlds has stopped 新手问题
- 关于viewpager+fragment 滑动动画问题
- 测量view的高度、
- Android Studio跳转时遇到 IllegalArgumentException: No view found for id
- HTC g8手机应该选什么规格的AVD呢?
- 关于onActivityResult中data返回资源路径的问题
你是两个relativeLayout放在了一起. root layout在哪里?