问题描述
我试图覆盖一个排序按钮的另一个按钮的上方。是我想解释一下某些按钮会做用户的原因。
I am trying to overlay a sort of button on top of another button. The reason being I want to explain to the user what certain buttons will do.
例如:
会有一个按钮。在右上或任何该按钮会出现一个问号。当用户presses问号将解释该按钮做什么。
For example:There will be a button. In the top right or whatever of that button there will be a question mark. When the user presses the question mark it will explain what that button does.
推荐答案
尝试使用相对布局。链接:该就让你覆盖。
Try using a Relative Layout. Link: http://developer.android.com/reference/android/widget/RelativeLayout.html It'll let you overlay.
RelativeLayout的让你调整图像在彼此身边轻易以及对彼此的顶部。
Relativelayout will let you align images beside each other easily as well as on top of each other.
你为什么不使你的RelativeLayout的按钮,把你的问号里面,它右对齐或东西..例如
Why don't you make the RelativeLayout your button and put your question mark inside it, align it to the right or something.. e.g
<RelativeLayout
android:id="@+id/mybutton"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/button_bg"
>
<ImageView
android:id="@+id/image"
android:layout_alignParentRight="true"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
style="@style/icon"
/>
</RelativeLayout>
您可以将听众两者。
这篇关于可能叠加在另一个上面一个按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!