Text view losing characters that is to be displayed [Android] -


i have text displayed in text view. text contains 200 lines of data, each line having 10 characters. total 2000 characters. text view inside vertical scrollable view. the first 50 lines not getting displayed. if text view had limitation number of characters, fair enough if loses last few lines, but why taking off head??. , limit on number of characters text view??

top most- missing first 50 lines of data

dragged down more space available(can fit 50 lines guess)

my code:

<scrollview         android:id="@+id/scroll_layout_ecg"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:layout_above="@+id/btn_ecg"         android:layout_alignleft="@+id/btn_ecg"         android:layout_alignstart="@+id/btn_ecg"         android:layout_marginbottom="16dp"         android:layout_margintop="16dp" >          <textview             android:id="@+id/tvecg_samples"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:layout_gravity="center"             android:gravity="center"             android:hint="ecg\nsamples"             android:textsize="25sp" />     </scrollview> 

in 1st screen shot, data being shown 51st line. first 50 lines clipped off. why??

no need of external scrollbar rather u can use textview's property

                   android:scrollbars="vertical" 

i think u


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -