Android工作室问题 [英] Android studio problem

查看:109
本文介绍了Android工作室问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好我刚开始学习android studio。我刚用一个按钮和一个textview制作了一个小应用程序。当我运行它时,那些按钮和textview将向上并且现有的一对一。它永远发生在那些地方。请帮我解决这个问题然后继续..谢谢!



我尝试过的事情:



i重新安装android工作室,但它一次又一次地发生

解决方案

你面临的问题是 ConstraintLayout 在Android Studio中。 就个人而言,这是谷歌有史以来最难添加到Android OS或Android Studio for Android开发中的东西,它使Android UI设计更加痛苦,而不是有用。所发生的是,您创建布局并将布局约束到至少两侧(右侧,左侧,顶部,底部)并添加控制视图的元素以及视图中的其他视图。



您需要添加约束,请参阅以下链接,因为它解释了一下这个布局。此外,在几乎所有新布局中都提供了 ConstraintLayout ,您也可以在Android布局中更改它。



使用ConstraintLayout构建响应式UI Android开发者 [ ^ ]

hi everyone. I m newly started to learn android studio. i just made a small app using one button and a textview. when i run it those button and textview going to up and existing one on one. its happening ever time where ever those are. please help me to fix this and go ahead.. thank you!

What I have tried:

i reinstalled android studio but its happening again and again

解决方案

What you are facing is the problem with ConstraintLayout in Android Studio. Personally, this is the worst thing that Google has ever added to Android OS or Android Studio for Android development, it makes Android UI design more painful, than helpful. What happens is, that you create a layout and you constrain the layout to at least 2 sides (right, left, top, bottom) and add the elements that control the view, and other views in the view.

You would need to add constraints, please see the following link as it explains a bit about this layout. Also, in almost all of the new layouts you are provided with a ConstraintLayout, you can change that as well in the Android Layout.

Build a Responsive UI with ConstraintLayout | Android Developers[^]


这篇关于Android工作室问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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