2012-06-01 65 views
2

可能重複:爲什麼match_parent替換fill_parent?

What is the difference between match_parent and fill_parent?

Is deprecated word the only difference between fill_parent and match_parent

fill_parent變得過時。應該使用match_parent。它們在功能上是等同的,唯一的區別是名稱。 fill_parent有什麼問題?我喜歡它。

+2

http://stackoverflow.com/a/8516882/776244 –

+1

這應該是關閉的,因爲它是重複的。當@SamirMangroliya鏈接到同一個問題時,我很驚訝高代表用戶回答了這個問題。 – kevlar1818

+3

@ kevlar1818:假設對我來說,如果你看到我的回答是在Samir重複評論前一分鐘發佈的。將投票結束。 –

回答

2

什麼是錯的,它不填寫父母,而是使其具有相同尺寸的父母,或者換句話說比賽父維度。它唯一的情況是fill父母是當視圖是佈局中的唯一一個。

+0

查看我對OP的評論。 – kevlar1818

+2

@ kevlar181:看到時間,_3分鐘ago_在_2分鐘ago_之前 –

0

match_parent意味着孩子想要和父母一樣大......也許他們想讓它聽起來更真實?

相關問題