我在 RelativeLayout 2 内容中(当时只有一个可见)和底部的菜单选择了可见的内容(并且它有效,在活动中我将可见性更改为 View.VISIBLE/View.GONE
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:gravity="center_horizontal"
android:orientation="vertical" >
<include
android:id="@+id/children"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
layout="@layout/activity_children"/>
<include
android:id="@+id/parents"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
layout="@layout/activity_parents"
android:visibility="gone" />
<com.touchmenotapps.widget.radialmenu.semicircularmenu.SemiCircularRadialMenu
android:id="@+id/radial_menu"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:padding="0dp" />
</RelativeLayout>
当我改变时如何添加动画(我有像fade_in和fade_out这样的动画)
这是一段代码,我在其中更改了哪些内容可见
llChildren.setVisibility(View.GONE);
llParents.setVisibility(View.VISIBLE);