How to align a TextView in RealtiveLayout along the top of an ImageView ? The upper part of the letter "Z" should touch the purple line)
I tried android:includeFontPadding="false" - no effect.
<android.support.v7.widget.CardView android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/cardView" card:cardElevation="2dp" android:layout_marginBottom="1dp"> <RelativeLayout android:id="@+id/cardInnerContainer" android:layout_width="wrap_content" android:layout_height="match_parent" android:padding="@dimen/inbox_cardPadding"> <ImageView android:id="@+id/cardIcon" android:layout_height="64dp" android:layout_width="64dp" android:layout_marginEnd="10dp" card:srcCompat="@drawable/ic_icon"/> <TextView android:id="@+id/CardTitle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:includeFontPadding="false" android:text="Заголовок" android:layout_alignParentTop="true"/> </RelativeLayout> </android.support.v7.widget.CardView> Screenshot from the phone screen (I do not use the emulator):


android:includeFontPadding=false, you can add moreandroid:padding=0dp, but I’m not sure what will work. - lllyctalignBaseline- georgehardcore