我构建了一个包含一些图标的侧边栏菜单,当单击其中一个时,我需要在栏旁边弹出一个视图,其中包含一个视图。
我的问题是如何将此视图添加到不在栏中的任何视图之上。
只是为了澄清,这是我在屏幕上显示 SideBar 的布局。
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView android:id="@+id/image01" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:scaleType="fitXY" />
<com.view.SideBarView android:id="@+id/sideBar"
android:layout_width="40px" android:layout_height="match_parent"
layout_toLeftOf="@id/image01" />
</RelativeLayout>
我需要单击栏上的图标以弹出左侧的图像,并且在气球内也有一个视图并获得一些用户输入。
如果不是太多,我需要在这个浮动视图的图标旁边画一个箭头。
有办法吗?