0

I am currently building out a layout in Android but I am experiencing difficulty with lettering (the space between two textviews with one right above another) in Android. I am unable to decrease the size between the two textviews to my designers liking, even though I have no vertical margins set between the two textviews. The textview are ordered in a relative layout, with one textview right below the other. Here is the xml for the textviews:

<com.devspark.robototextview.widget.RobotoTextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Auction Name"
    android:textColor="@color/LAgrey"
    android:id="@+id/tv_auctionTitle"
    android:layout_marginTop="10dp"
    android:layout_alignParentTop="true"
    android:textStyle="bold"
    android:textSize="16sp"
    android:layout_marginRight="16dp"
    android:layout_marginLeft="16dp"
    android:layout_alignParentLeft="true"
    app:typeface="roboto_regular"/>

<com.devspark.robototextview.widget.RobotoTextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Auctioneer Name"
    android:layout_below="@+id/tv_auctionTitle"
    android:layout_marginLeft="16dp"
    android:id="@+id/tv_auctioneerDetails"
    android:textSize="@dimen/auctionList_SubTitleTextSize"
    android:textAllCaps="true"
    android:textColor="#a7a6a6"
    app:typeface="roboto_black"/>

How can I make the vertical spacing even smaller between the two textfields? I can provide screenshots if necessary.

Andre Perkins
  • 7,640
  • 6
  • 25
  • 39

1 Answers1

0

You may need a custom TextView - I've had this trouble before. There are two "padding" characteristics that are rarely adjusted and may require a custom TextView object.

  1. Line spacing:

android textview padding between lines

  1. Font Padding:

How to change letter spacing in a Textview?

Community
  • 1
  • 1
Jim
  • 10,172
  • 1
  • 27
  • 36