[Android][Lint] Missing baselineAligned attribute
์์
Lint ๊ฒฝ๊ณ ํ์ธ ์ค ํด๋น ๊ฒฝ๊ณ ๋ฅผ ํ์ธํ๋ค.
๊ด๋ จ ์ค๋ช ์ ์ด๋ฌํ๋ค.
Set android:baselineAligned="false" on this element for better performance
๋ฐ๋ฒ์ญ
์ด ์์์ ์ฑ๋ฅ ๊ฐ์ ์ ์ํด android:baselineAligned="false" ๋ก ์ค์ ํ์์ค.
์ดํด๋ณด๋ ์ด ๊ฒฝ๊ณ ๊ฐ ๋จ๋ ๋ถ๋ถ๋ค์ LinearLayout๋ค์ด๋ค.
When a LinearLayout is used to distribute the space proportionally between nested layouts, the baseline alignment property should be turned off to make the layout computation faster.
๋ฐ๋ฒ์ญ
LinearLayout์ด ๋๋ฌ์ผ ๋ ์ด์์๋ค ์ฌ์ด์ ๋น๋ก์ ์ผ๋ก ๊ณต๊ฐ์ ๋ถ๋ฆฌํ๋๋ฐ ์ฌ์ฉ๋ ๋, baseline ์กฐ์ alignment ์ค์ property๋ ๋ ์ด์์ ๊ณ์ฐ์ ๋ ๋น ๋ฅด๊ฒ ํ๊ธฐ ์ํด์ ๊บผ์ผ ํ๋ค.
baseline alignment๊ฐ ๋ฌด์ธ์ธ๊ฐ
https://aroundck.tistory.com/2576
[android] baselineAligned ์์ฑ์ ์ ์ฒด.
android, baselineAligned ์์ฑ์ ์ ์ฒด. LinearLayout ์ ํฌํจ๋๋, TextView ๋ค์ ๊ธ์จ๋ค์ first line ์ align ํ๋๋ก ๊ธฐ๋ณธ ์ค์ ์ด ๋์ด ์๋ค. ๊ทธ๋์ ์์ ๊ฐ์ด ํ์ค์ง๋ฆฌ text ๋ฅผ ๊ฐ์ง ๋ฒํผ๋ค ์ค๊ฐ์๋์ค์ง๋ฆฌ text
aroundck.tistory.com
์ ๊ธ ๋ณด๊ณ ์ดํดํ๋ค.
LinearLayout ์์ ์๋ ๋ค์ด Layout๋ค์ด๋ฉด baseline alignment๋ฅผ ํ ํ์๊ฐ ์๊ธฐ๋ ํ๋ค. ์ธ ํ์๊ฐ ์๋ ๊ธฐ๋ฅ์ด๋ผ false๋ก ๊บผ๋ฒ๋ฆฌ๋ ๊ฒ์ด ๋ซ๋ค๋ ๊ฒ์ ์ดํดํ๋ค.
ํด๊ฒฐ
ํด๋น LinearLayout์ attribute๋ก android:baselineAligned="false"๋ฅผ ์ถ๊ฐํ๋ค.