Friday, May 24, 2013

[android help] Horizontal Scroll View not scrolling the TextView's

android - Horizontal Scroll View not scrolling the TextView's - Stack Overflow







Tell me more ×

Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.


















android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#ffffff"
android:orientation="horizontal" >

android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal" >

android:layout_width="100dp"
android:layout_height="wrap_content"
android:gravity="left"
android:paddingLeft="8dp"
android:text="Date/Time"
android:textColor="#000000" />

android:layout_width="80dp"
android:layout_height="wrap_content"
android:gravity="left"
android:paddingLeft="8dp"
android:text="BP"
android:textColor="#000000" />

android:layout_width="150dp"
android:layout_height="wrap_content"
android:gravity="left"
android:text="BP Position"
android:paddingLeft="8dp"
android:textColor="#000000" />

android:layout_width="150dp"
android:layout_height="wrap_content"
android:gravity="left"
android:text="Body Site"
android:paddingLeft="8dp"
android:textColor="#000000" />

android:layout_width="150dp"
android:layout_height="wrap_content"
android:gravity="left"
android:paddingLeft="8dp"
android:text="Laterality / Cuff Size"
android:textColor="#000000" />

android:layout_width="150dp"
android:layout_height="wrap_content"
android:gravity="left"
android:paddingLeft="8dp"
android:text="HR"
android:textColor="#000000" />

android:layout_width="150dp"
android:layout_height="wrap_content"
android:gravity="left"
android:paddingLeft="8dp"
android:text="RR"
android:textColor="#000000" />

android:layout_width="150dp"
android:layout_height="wrap_content"
android:gravity="left"
android:paddingLeft="8dp"
android:text="T(F)"
android:textColor="#000000" />

android:layout_width="150dp"
android:layout_height="wrap_content"
android:gravity="left"
android:paddingLeft="8dp"
android:textColor="#000000" />

android:layout_width="150dp"
android:layout_height="wrap_content"
android:gravity="left"
android:paddingLeft="8dp"
android:text="Wt"
android:textColor="#000000" />

android:layout_width="150dp"
android:layout_height="wrap_content"
android:gravity="left"
android:paddingLeft="8dp"
android:text="Ht"
android:textColor="#000000" />

android:layout_width="150dp"
android:layout_height="wrap_content"
android:gravity="left"
android:paddingLeft="8dp"
android:text="BMI"
android:textColor="#000000" />

android:layout_width="150dp"
android:layout_height="wrap_content"
android:gravity="left"
android:paddingLeft="8dp"
android:text="BSA"
android:textColor="#000000" />

android:layout_width="150dp"
android:layout_height="wrap_content"
android:gravity="left"
android:paddingLeft="8dp"
android:text="O2"
android:textColor="#000000" />






I have placed my TextView's inside a LinearLayout which is again under a HorizontalScrollView, but i don't see it getting scrolled.


























You should put your HorizontalListView inside a LinearLayout and pass the tag xlms to LinearLayout and the scroll will work perfectly!




















default






.

stackoverflow.comm

No comments:

Post a Comment

Google Voice on T-Mobile? [General]

Google Voice on T-Mobile? So I recently switched from a GNex on Verizon to a Moto X DE on T-Mobile. I had always used Google Voice for my v...