[英]Change width/height value in custom button view
Is there any way that i can change the value of android:layout_width/height in an implement of custom button? 有什么办法可以在自定义按钮的实现中更改android:layout_width / height的值? (I want to insert something like that: android:layout_width="50dp,100dp" ) (我想插入类似的内容: android:layout_width =“ 50dp,100dp” )
You can't. 你不能 android:layout_width
and android:layout_height
parameters need to be specified for any and all views. android:layout_width
和android:layout_height
参数需要的任何和所有的意见进行指定。 No exceptions. 没有例外。
Along the ones you mentioned, you may use any of these values as an attribute 沿着您提到的值,您可以将这些值中的任何一个用作属性
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.