Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图在两个处于垂直模式的编辑框的边缘放置一个圆形按钮,如下图所示:
我怎样才能实现这个设计?
您可以在 a 中添加两个EditText组件RelativeLayout,一个在另一个下方,然后在相同的相对布局中添加,您可以简单地设置圆形按钮的属性align_parent_right,center_vertical然后您可以设置更小的宽度。
EditText
RelativeLayout
align_parent_right
center_vertical
将以这种Button方式出现在您的 EditTexts 上方。因此,如果您还想要那个灰色边框,则必须将其添加到按钮的背景中,但这应该不难。
Button
我希望它对你有帮助。