开发者

Purpose of Match_parent attribute

开发者 https://www.devze.com 2023-03-26 06:03 出处:网络
I have encountered an attribute \"Match_Parent\" for the first time in a code开发者_JAVA百科 from internet.

I have encountered an attribute "Match_Parent" for the first time in a code开发者_JAVA百科 from internet. Before this i have been using Fill_Parent and Wrap_Content.

What i want: What is the purpose of Match_parent attribute?


Please do your reseach. A simple search will take you to http://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html which specifies that FILL_PARENT was renamed to MATCH_PARENT because it was more appropriate given what it does. MATCH_PARENT and FILL_PARENT can be used interchangeably because they refer to the same constant.

0

精彩评论

暂无评论...
验证码 换一张
取 消