如何在android应用程序中定位textview [英] How to Position textview in android app

查看:349
本文介绍了如何在android应用程序中定位textview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用android studio创建了一个简单的文本框并在Android应用程序中发送按钮,当我点击按钮时,输入的文本与文本框和发送按钮在同一行,我想将它放在文本框下面并发送按钮。

指导我改变textview的位置。



thanx

解决方案

这取决于布局的类型,你应该阅读这篇文章来了解它们: Android UI布局和控件 [ ^ ]

I created a simple text box and send button in android app using android studio, when i clicked the button , the entered text is in same line with the text box and send button, i want to place it below the textbox and send button.
guide me to vary the position of the textview.

thanx

解决方案

It depends on the type of layouts, you should read this article to learn about them: Android UI Layouts and Controls[^]


这篇关于如何在android应用程序中定位textview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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