什么是采用Android的:height属性,尽管有安卓layout_height [英] What is use of Android:height attribute despite having Android:layout_height

查看:323
本文介绍了什么是采用Android的:height属性,尽管有安卓layout_height的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是使用 Android系统:高度属性的时候,我们已经有安卓layout_height 属性?
我在TextView中和使用的EditText它试图,,没有做出有用的区别


解决方案

据该的


  

让TextView的是正是这许多像素高。


我猜测它的东西老只是如果你要决定,因为它说,像素的具体数目。我不会建议使用它但 Android的坚持:layout_height

What is use of Android:height attribute when we already have Android:layout_height attribute?? I have tried using it in TextView and EditText ,, have made No usefull difference

解决方案

According to the Docs

Makes the TextView be exactly this many pixels tall.

I'm guessing its something old and is only if you want to dictate, as it says, a specific number of pixels. I wouldn't suggest using it but stick with android:layout_height

这篇关于什么是采用Android的:height属性,尽管有安卓layout_height的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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