【发布时间】:2016-06-17 14:28:12
【问题描述】:
这是activity.xml,content_my.xml是RelativeLayout,menu.xml是LinearLayout。顶部的内容布局(RelativeLayout)和下方的菜单布局(LinearLayout)我想将相对布局(内容布局)移动到屏幕左侧并访问其下方的菜单布局。动画后内容布局位于菜单布局的顶部,无法访问菜单。在 contentlayout 中,我添加了 ListView。请帮助我如何在动画后永久移动RelativeLayout。
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:context="com.bwd.demo.mybrand.My">
<include layout="@layout/menu" />
<include layout="@layout/content_my" />
</android.support.design.widget.CoordinatorLayout>
【问题讨论】:
标签: java android android-layout animation