'How to make Preference widget appear below title in Android?

I'm new to Android development and wonder if there is an easy way to have a Preference (androidx.preference.Preference) with the widget appearing below the title? I am aware that layoutResource can be set to a custom layout, but I actually only need to change the widget (so I can set widgetLayoutResource instead of layoutResource) and I want it to appear below the title. If I change the whole layout to a custom one, I have to make it look like the other Preference layouts manually, which seems like an overkill given that I only want to change the title position.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source