RecyclerView news list, how to achieve when there is no cover image, the title text automatically extends to fill the blank space?

figure 1 is the effect I want, but my current situation is figure 2.

Feb.18,2022

set visibility to gone when there is no picture.


ConstraintLayout

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e48e32-59274.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e48e32-59274.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?