我可以设计的角度移动的菜单为Android? [英] Can I design angular moving menu for android?
本文介绍了我可以设计的角度移动的菜单为Android?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我可以设计的角度移动的菜单为Android?
Can I design angular moving menu for android?
此图片仅供参考。按钮应该滚动角路径上和中心的按钮,应该始终专注。
This image is for reference. The Buttons should scroll on the angular path and the centered button should be focused always.
推荐答案
是的,相信你能做到这一点。在XML布局:
Yes, sure you can do it. The xml layout:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:text="Back" />
<Button
android:id="@+id/button2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/button1"
android:layout_marginLeft="26dp"
android:layout_marginTop="23dp"
android:layout_toRightOf="@+id/button1"
android:text="Next" />
<Button
android:id="@+id/button3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/button2"
android:layout_marginLeft="16dp"
android:layout_marginTop="17dp"
android:layout_toRightOf="@+id/button2"
android:text="Button" />
<Button
android:id="@+id/button4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:text="Button" />
</RelativeLayout>
这篇关于我可以设计的角度移动的菜单为Android?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文