android - Increase Touch Target of TextView -


is there way increase touch target of textview without having expand size of textview , affecting layout?

for example: if have address information in vertical linearlayout several textviews. make phone number textview clickable. there anyway make phone number textview touch target larger without creating padding , pushing surrounding textviews further away?

you can wrap layout

something this, can set onclicklistener on layout. if want increase size of touch target, increase height.

<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:orientation="vertical">      <linearlayout         android:id="@+id/layout"         android:layout_width="match_parent"         android:layout_height="wrap_content">         <textview             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:text="some text"/>     </linearlayout>  </linearlayout> 

Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -