activity_main.xml

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. tools:context=".MainActivity">
  8.  
  9. <ScrollView
  10. android:layout_width="match_parent"
  11. android:layout_height="match_parent">
  12.  
  13. <LinearLayout
  14. android:layout_width="match_parent"
  15. android:layout_height="wrap_content"
  16. android:orientation="vertical" >
  17.  
  18. <TextView
  19. android:id="@+id/textView"
  20. android:layout_width="match_parent"
  21. android:layout_height="wrap_content"
  22. android:layout_weight="1" />
  23. </LinearLayout>
  24. </ScrollView>
  25.  
  26. </LinearLayout>

Proinf.net