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??
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