i have problem project have long text goes off screen , need scrollview fixed text goes off screen right dosent stay compact in have suggestions? want text in , visable having scroll since lot.
<relativelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center_horizontal"> <scrollview android:layout_width="fill_parent" android:layout_height="fill_parent"> <linearlayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="center_horizontal" android:weightsum="1"> <textview android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/abouthusky" android:id="@+id/abouthusky" android:ellipsize="middle" android:layout_weight=".5" android:layout_alignparentbottom="true" android:layout_alignparentleft="true" android:layout_alignparentstart="true" /> </linearlayout> </scrollview> 
here fragment code:
public class fragment_list_1 extends android.app.fragment { view rootview; @nullable @override public view oncreateview(layoutinflater inflater, viewgroup container, bundle savedinstancestate) { rootview = inflater.inflate(r.layout.menu_layout_1, container, false); return rootview; } }
add lines textview:
android:marqueerepeatlimit="marquee_forever" android:ellipsize="none" android:maxlines="100" android:scrollhorizontally="false"
Comments
Post a Comment