Hope this helps I just think of a quick resolve for this. You can create one more Button with the same size as your Back button. And align it to the right of the screen, with attribute visibility="invisible. Then make your TextView's width match with the 2 buttons.
To fix this issue I followed this tutorial, for now it's working nice, but i only have a problem, i need to center vertically the "Title" textview, when "Detail" textview text it's null or empty, something like this. I tried this (http://www.curious-creature.org/2009/02/22/android-layout-tricks-1/), and it works, but the problem it's that if i use setVisibility(View.GONE), all the details from all the items, dissapear, and just title get centered., any help appreciated, thanks , Remember to setVisible(View.VISIBLE) when you are recycling a view.
it helps some times This is because both your ConstraintLayout and TextView is sharing the same id text in your layout XML file. As a result, when you try to refer the TextView in your Java code via R.id.text, it links to your ConstraintLayout instead which causes the crash. Change the id of your ConstraintLayout to something else (like mainlayout).