I have encountered an attribute “Match_Parent” for the first time in a code from internet.
Before this i have been using Fill_Parent and Wrap_Content.
What i want: What is the purpose of Match_parent attribute?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.