Android :: Settings Layout
I need help... I got errors with my android xml... Here's the code: Copy
Solution 2:
in your layout xml files you may have forgot to add layout_width
to a view. this attribute is required for any view in an xml file.
Solution 3:
<?xml version="1.0" encoding="utf-8"?><LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="match_parent"android:layout_height="match_parent"android:orientation="vertical" ><ScrollViewandroid:id="@+id/scrollview_test"android:fillViewport="true"android:layout_width="fill_parent"android:layout_height="fill_parent"><com.marlonlu.pinterest.ui.module.GallaryViewandroid:id="@+id/gridview_test"android:layout_width="fill_parent"android:layout_height="fill_parent" /></ScrollView></LinearLayout>
From above code, you can see how to define my custom view com.marlonlu.pinterest.ui.module.GallaryView , In Android you must define layout_width and layout_height in your layout which use custom view.
Post a Comment for "Android :: Settings Layout"