android - Is there any dependency of capitalize attribute of TextView and its ListView -


listview having textview listitem

<?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="wrap_content"     android:background="@android:color/transparent">      <com.dexterous.genero15.font.audiowide_regular         android:id="@+id/club_name"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:capitalize="characters"         android:gravity="center"         android:minheight="70dp"         android:padding="8dp" />  </linearlayout> 

audiowide_regular child of autofittextview child of textview

and listview having setonitemclicklistener on it.

if removed attribute android:capitalize="characters" listitem onitemclick works fine else onitemclick not executed.

is there dependency of setonitemclicklistener , android:capitalize="characters" ?

from docs:

if set, specifies textview has textual input method , should automatically capitalize user types.

since setting attribute defines input method textview, intercepting onitemclicklistener , instead using keylistener event.

if trying force textview display information in uppercase characters, can set textallcaps attribute true.


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -