<?xml version="2.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="com.yaadsay.Notification_Settings" android:orientation="vertical"> <LinearLayout android:layout_width="match_parent" android:layout_height="?actionBarSize" > <TextView style="@style/actionbar1" android:layout_width="match_parent" android:layout_height="?actionBarSize" /> </LinearLayout> <ScrollView android:layout_width="match_parent" android:layout_height="wrap_content"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" android:padding="10dp" > <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" style="@style/textsize" android:text="GROUPS AND FRIENDS" /> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal" > <TextView android:layout_width="match_parent" android:layout_height="match_parent" android:text="When someone adds me to a group" android:layout_weight="1" android:gravity="center_vertical" style="@style/Label_text_color" /> <ImageButton android:layout_width="wrap_content" android:layout_height="wrap_content" style="@style/notification_image_button" /> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal" > <TextView android:layout_width="match_parent" android:layout_height="match_parent" android:text="When someone adds me as a friend" android:gravity="center_vertical" android:layout_weight="1" style="@style/Label_text_color" /> <ImageButton android:layout_width="wrap_content" android:layout_height="wrap_content" style="@style/notification_image_button" /> </LinearLayout> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <TextView android:layout_width="match_parent" android:layout_height="match_parent" style="@style/textsize" android:text="Expenses" android:textAllCaps="true" /> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal" > <TextView android:layout_width="match_parent" android:layout_height="match_parent" android:text="when a bill is edited/deleted" android:gravity="center_vertical" android:layout_weight="1" style="@style/Label_text_color" /> <ImageButton android:layout_width="wrap_content" android:layout_height="wrap_content" style="@style/notification_image_button" /> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal" > <TextView android:layout_width="match_parent" android:layout_height="match_parent" android:text="When someone comments on the bill" android:gravity="center_vertical" android:layout_weight="1" style="@style/Label_text_color" /> <ImageButton android:layout_width="wrap_content" android:layout_height="wrap_content" style="@style/notification_image_button" /> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal" > <TextView android:layout_width="match_parent" android:layout_height="match_parent" android:text="When a bill is due" android:gravity="center_vertical" android:layout_weight="1" style="@style/Label_text_color" /> <ImageButton android:layout_width="wrap_content" android:layout_height="wrap_content" style="@style/notification_image_button" /> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal" > <TextView android:layout_width="match_parent" android:layout_height="match_parent" android:text="When someome pays me" android:gravity="center_vertical" android:layout_weight="1" style="@style/Label_text_color" /> <ImageButton android:layout_width="wrap_content" android:layout_height="wrap_content" style="@style/notification_image_button" /> </LinearLayout> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <TextView android:layout_width="match_parent" android:layout_height="match_parent" style="@style/textsize" android:text="NEWS AND UPDATES" /> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal" > <TextView android:layout_width="match_parent" android:layout_height="match_parent" android:text="Monthly summary of my activity" android:gravity="center_vertical" android:layout_weight="1" style="@style/Label_text_color" /> <ImageButton android:layout_width="wrap_content" android:layout_height="wrap_content" style="@style/notification_image_button" /> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal" > <TextView android:layout_width="match_parent" android:layout_height="match_parent" android:text="Major Yaadsay news and updates" android:gravity="center_vertical" android:layout_weight="1" style="@style/Label_text_color" /> <ImageButton android:layout_width="wrap_content" android:layout_height="wrap_content" style="@style/notification_image_button" /> </LinearLayout> </LinearLayout> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="#fdfafa" android:text="Save Changes" android:paddingRight="20dp" android:paddingLeft="20dp" style="@style/textsize" android:background="#f2692f" android:textAllCaps="false" /> </LinearLayout> </ScrollView> </LinearLayout>
- 6 years ago
ScrollView Must have only One Child View, You are using too much Linear Layout as Child View of ScrollView.
<ScrollView .....> <LinearLayout ..> <ANY View here> <ANY View here>
<ANY View here>
</LinearLayout>
</ScrollView>
Hot Questions