Aligning baseline of two text views in Android

Use RelativeLayout as a container for TextViews and add the attribute

android:layout_alignBaseline="@+id/title"

to id/language TextView


On Component tree select both component you want to be in same base, right click and then select show baseline. Just drag baseline of two components.


Just use the android:gravity="bottom" on LinearLayout(The linear with the both textviews) and android:layout_height="wrap_content" in both TextViews.


For ConstraintLayout just use this↓ to align to another textView baseline:

app:layout_constraintBaseline_toBaselineOf="@+id/textView"