This example describes the android: layout_alignBaseline attribute in RelativeLayout. The child View uses this attribute to indicate the IDs of other views whose baseline needs to be aligned. In this example, set baseline alignment for one multi-row EditView and another TextView.
<RelativeLayout xmlns: android = "http://schemas.android.com/apk/res/android"
Android: layout_width = "match_parent"
Android: layout_height = "match_parent">
<EditText android: id = "@ + id/anchor"
Android: layout_width = "match_parent"
Android: layout_height = "match_parent"
Android: textSize = "20sp"
Android: text = "@ string/baseline_6_multi_line"/>
<TextView
Android: layout_width = "wrap_content"
Android: layout_height = "wrap_content"
Android: layout_alignBaseline = "@ id/anchor"
Android: layout_alignRight = "@ id/anchor"
Android: text = "@ string/baseline_6_baseline"/>
</RelativeLayout>