0
有一個水平的LinearLayout,其中有一些TextView int LinearLayout。一些TextView是去的或Visibile取決於數據
TextView中的文本是不固定的。當文字太長時。它會顯示部分。
一些TextView的消失或分享範圍取決於數據
例如
當視圖顯示不完整時,將其設置爲不存在
the 1st TextView is "qwerty", it width is 100dp
the 2st TextView is "qwerty", it width is 100dp
the 3st TextView is "qwerty", it width is 100dp
the 4st TextView is "qwerty", it width is 100dp
the LinearLayout's width is 280dp
所以隱藏3ST的TextView和4ST TextView的。
RecyclerView中的LinearLayout,所以不能刪除子項,因爲子項會在其他項目中重用,並且在快速滾動時不需要太多的時間來測量寬度。