如何将我的进度微调ontop XML中的按钮? [英] How do I put my ProgressBar Spinner ontop of a button in XML?

查看:191
本文介绍了如何将我的进度微调ontop XML中的按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做了一个音板应用,在那里,当我点击一个按钮,它由onClick的设置Button_sound.start播放声音。我想一个进度微调ontop仅在声音播放按钮。我如何把微调ontop按钮的XML,而不是上方或下方的按钮?而如何让我的同时播放声音时的纺只显示?由于大大因为我很新开发并请你的答案越具体越好。

I made a soundboard app where when I click a button, it plays a sound by setting the onClick to Button_sound.start. I want a progress spinner ontop of the button only while the sound is playing. How do I put the spinner ontop of the button in xml instead of above or below the button? and How do I make the spinned only show while the sound is playing? Thanks greatly as I am very new to developing and please make your answers as specific as possible.

推荐答案

可以请张贴code,你已经得到了所以它会更容易一点拿出解决方案。
您可以设置的LinearLayout的方向(其中包含您的微调和按钮)是vertical.this将调整微调按钮的上方。
请确保您有code为线性布局内的按钮之前写的微调。

Can you please post the code that you already got so it will be bit easier to come up with solution. You can set the orientation of the linearlayout(which contains your spinner and button)to be vertical.this will align spinner on top of button. Make sure you have code for spinner written before button inside that linear layout.

这篇关于如何将我的进度微调ontop XML中的按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆