Android 如何开发此菜单(图上)
有一个问题。如何开发这种菜单(见下图) 我对技术感兴趣。看那些想法,阶级,诡计多端的东西。 我不想得到有效的代码,但我想知道如何开发它Android 如何开发此菜单(图上),android,user-interface,view,menu,Android,User Interface,View,Menu,有一个问题。如何开发这种菜单(见下图) 我对技术感兴趣。看那些想法,阶级,诡计多端的东西。 我不想得到有效的代码,但我想知道如何开发它 提前谢谢你…这看起来像是一个线性布局,背景很好,给了它阴影和气球点。然后里面只有图像按钮,位于线性布局中背景图像的顶部。实际的线性布局比背景图像大一点,这使得背景图像可以定义容器的形状,并使其看起来更加定制-美观的技术 最困难的部分是实现它。将其覆盖在正确位置的活动上。为此,您可能会将其包装成AbsoluteLayout,并在代码中使用AbsoluteLayo
提前谢谢你…这看起来像是一个线性布局,背景很好,给了它阴影和气球点。然后里面只有图像按钮,位于线性布局中背景图像的顶部。实际的线性布局比背景图像大一点,这使得背景图像可以定义容器的形状,并使其看起来更加定制-美观的技术 最困难的部分是实现它。将其覆盖在正确位置的活动上。为此,您可能会将其包装成AbsoluteLayout,并在代码中使用AbsoluteLayout将其覆盖在正确的位置
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="300px"
android:id="@+id/parent_one"
android:layout_height="80px"
android:src="@drawable/NICE_BACLKGROUND">
<ImageButton
android:layout_width="75px"
android:layout_height="47px"
android:layout_marginLeft="10px"
android:src="@drawable/button1">
</ImageButton>
<ImageButton
android:id="@+id/btnGoTo"
android:layout_width="75px"
android:layout_height="47px"
android:src="@drawable/button2">
</ImageButton>
<ImageButton
android:id="@+id/btnSaveAn"
android:layout_width="75px"
android:layout_height="47px"
android:src="@drawable/save_to_dash">
</ImageButton>
<ImageButton
android:id="@+id/btnClear"
android:layout_width="75px"
android:layout_height="47px"
android:src="@drawable/clear">
</ImageButton>
<ImageButton
android:id="@+id/btnSaveAnd"
android:layout_width="75px"
android:layout_height="47px"
android:src="@drawable/save_to">
</ImageButton>
<ImageButton
android:id="@+id/btnClear"
android:layout_width="75px"
android:layout_height="47px"
android:src="@drawable/clear">
</ImageButton>
</LinearLayout>
试试这个。我在我的应用程序上使用它
如果您想要实现,请查看此解决方案。我用过它,效果很好长按时使用简易快速操作对话框