Color is not changing - android

How do I change the orange color in this picture. I have removed all reference of orange color in my code but it still appears. How do I remove them?
I previously used orange but now I changed it to cyan but when app is lauched it appears for a second before changing to cyan.
My layout file
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="#+id/ScrollView01"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#color/cyan" >
<RelativeLayout
android:id="#+id/RelativeLayout01"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="#+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="15dp"
android:layout_marginTop="120dp"
android:text="TECHNICAL\nENGLISH -I"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textSize="18sp" />
<TextView
android:id="#+id/textView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="15dp"
android:layout_marginTop="185dp"
android:text="ENGINEERING\nPHYSICS I"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textSize="18sp" />
<TextView
android:id="#+id/textView4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="15dp"
android:layout_marginTop="250dp"
android:text="ENGINEERING\nCHEMISTRY I"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textSize="18sp" />
<TextView
android:id="#+id/textView5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="15dp"
android:layout_marginTop="315dp"
android:text="COMPUTER\nPROGRAMMING"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textSize="18sp" />
<TextView
android:id="#+id/textView6"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="15dp"
android:layout_marginTop="380dp"
android:text="ENGINEERING\nGRAPHICS"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textSize="18sp" />
<TextView
android:id="#+id/textView7"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="15dp"
android:layout_marginTop="445dp"
android:text="COMPUTER\nPRGRAMMING LAB"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textSize="18sp" />
<TextView
android:id="#+id/textView8"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="15dp"
android:layout_marginTop="510dp"
android:text="ENGINEERING\nPRACTICES LAB"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textSize="18sp" />
<TextView
android:id="#+id/textView9"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="15dp"
android:layout_marginTop="575dp"
android:text="PHYSICS\nCHEMISTRY LAB"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textSize="18sp" />
<Spinner
android:id="#+id/spinner1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="200dp"
android:layout_marginTop="65dp"
android:entries="#array/Grade"
android:prompt="#string/hello_world"
android:text="Medium Text"
android:textAppearance="?android:attr/textAppearanceMedium" />
<Spinner
android:id="#+id/spinner2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="200dp"
android:layout_marginTop="110dp"
android:entries="#array/Grade"
android:prompt="#string/hello_world"
android:text="Medium Text"
android:textAppearance="?android:attr/textAppearanceMedium" />
<Spinner
android:id="#+id/spinner3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="200dp"
android:layout_marginTop="175dp"
android:entries="#array/Grade"
android:prompt="#string/hello_world"
android:text="Medium Text"
android:textAppearance="?android:attr/textAppearanceMedium" />
<Spinner
android:id="#+id/spinner4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="200dp"
android:layout_marginTop="240dp"
android:entries="#array/Grade"
android:prompt="#string/hello_world"
android:text="Medium Text"
android:textAppearance="?android:attr/textAppearanceMedium" />
<Spinner
android:id="#+id/spinner5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="200dp"
android:layout_marginTop="305dp"
android:entries="#array/Grade"
android:prompt="#string/hello_world"
android:text="Medium Text"
android:textAppearance="?android:attr/textAppearanceMedium" />
<Spinner
android:id="#+id/spinner6"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="200dp"
android:layout_marginTop="370dp"
android:entries="#array/Grade"
android:prompt="#string/hello_world"
android:text="Medium Text"
android:textAppearance="?android:attr/textAppearanceMedium" />
<Spinner
android:id="#+id/spinner7"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="200dp"
android:layout_marginTop="435dp"
android:entries="#array/Grade"
android:prompt="#string/hello_world"
android:text="Medium Text"
android:textAppearance="?android:attr/textAppearanceMedium" />
<Spinner
android:id="#+id/spinner8"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="200dp"
android:layout_marginTop="500dp"
android:entries="#array/Grade"
android:prompt="#string/hello_world"
android:text="Medium Text"
android:textAppearance="?android:attr/textAppearanceMedium" />
<Spinner
android:id="#+id/spinner9"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="200dp"
android:layout_marginTop="565dp"
android:entries="#array/Grade"
android:prompt="#string/hello_world"
android:text="Medium Text"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:id="#+id/textView11"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="30dp"
android:gravity="center"
android:text="SEMESTER I - GPA CALCULATOR"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textSize="20sp" />
<TextView
android:id="#+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="15dp"
android:layout_marginTop="75dp"
android:text="MATHEMATICS - I"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textSize="18sp" />
<Button
android:id="#+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="#+id/textView9"
android:layout_centerHorizontal="true"
android:layout_marginTop="37dp"
android:text="calculate"
android:background="#color/cyand" />
<TextView
android:id="#+id/editText1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="#+id/button1"
android:layout_centerHorizontal="true"
android:layout_marginTop="13dp"
android:ems="10"
android:gravity="center"
android:textSize="20sp" />
</RelativeLayout>
</ScrollView>
My color.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="cyand">#00FFFF</color>
<color name="cyan">#CCFFFF</color>
</resources>

Related

Button in ScrollView is not showing during coding

I have a relative Layout inside a scroll view. I am adding text views as you can see in the picture. Now the problem is when the space is full and I am adding the button at the bottom, it is not showing properly. How can I see the button and the other content at the bottom ? Here is the xml file of my picture.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="#dimen/activity_vertical_margin"
android:paddingLeft="#dimen/activity_horizontal_margin"
android:paddingRight="#dimen/activity_horizontal_margin"
android:paddingTop="#dimen/activity_vertical_margin"
android:background="#436dbf"
tools:context="com.kamranchaudhary.pucitportal.Aggreagte">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentStart="true"
android:layout_alignParentEnd="true"
android:layout_alignParentTop="true"
android:scrollbarStyle="insideOverlay"
android:scrollbarThumbVertical="#drawable/custom_bar"
android:layout_alignParentBottom="true">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="Pucit Aggregate Calculator"
android:id="#+id/textView5"
android:textStyle="bold"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:textColor="#ffffff" />
<View
android:layout_width="300dp"
android:layout_height="1dip"
android:background="#ffffff"
android:layout_below="#+id/textView5"
android:layout_centerHorizontal="true"
android:layout_marginTop="5dp"
android:id="#+id/view" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="Matric"
android:id="#+id/textView6"
android:layout_below="#+id/view"
android:layout_alignParentStart="true"
android:textColor="#ffffff"
android:layout_marginTop="10dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="Obtained Marks"
android:id="#+id/textView7"
android:textColor="#ffffff"
android:layout_below="#+id/textView6"
android:layout_alignStart="#+id/view"
android:layout_marginTop="10dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="Total Marks"
android:id="#+id/textView8"
android:layout_below="#+id/textView7"
android:layout_alignStart="#+id/textView7"
android:textColor="#ffffff"
android:layout_marginTop="10dp" />
<View
android:layout_width="300dp"
android:layout_height="1dip"
android:background="#ffffff"
android:id="#+id/view2"
android:layout_below="#+id/textView8"
android:layout_alignStart="#+id/textView8"
android:layout_marginTop="10dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="Intermediate"
android:id="#+id/textView9"
android:layout_below="#+id/view2"
android:layout_alignParentStart="true"
android:textColor="#ffffff"
android:layout_marginTop="10dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="Obtained Marks"
android:id="#+id/textView10"
android:layout_below="#+id/textView9"
android:layout_alignStart="#+id/view2"
android:textColor="#ffffff"
android:layout_marginTop="10dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="Total Marks"
android:id="#+id/textView11"
android:textColor="#ffffff"
android:layout_below="#+id/textView10"
android:layout_alignStart="#+id/textView10"
android:layout_marginTop="10dp"/>
<View
android:layout_width="300dp"
android:layout_height="1dip"
android:background="#ffffff"
android:id="#+id/view3"
android:layout_below="#+id/textView11"
android:layout_alignStart="#+id/textView11"
android:layout_marginTop="10dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="PUCIT Entry Test"
android:id="#+id/textView12"
android:layout_below="#+id/view3"
android:layout_alignParentStart="true"
android:textColor="#ffffff"
android:layout_marginTop="10dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="Obtained Marks"
android:id="#+id/textView13"
android:layout_below="#+id/textView12"
android:layout_alignStart="#+id/view3"
android:textColor="#ffffff"
android:layout_marginTop="10dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="Total Marks"
android:id="#+id/textView14"
android:layout_below="#+id/textView13"
android:layout_alignStart="#+id/textView13"
android:textColor="#ffffff"
android:layout_marginTop="10dp"/>
<View
android:layout_width="300dp"
android:layout_height="1dip"
android:background="#ffffff"
android:layout_below="#+id/textView14"
android:layout_alignStart="#+id/textView14"
android:layout_marginTop="10dp"
android:id="#+id/view4" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="Extras"
android:id="#+id/textView15"
android:layout_below="#+id/view4"
android:layout_alignParentStart="true"
android:textColor="#ffffff"
android:layout_marginTop="10dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="Are You Hafiz e Quran ?"
android:id="#+id/textView16"
android:layout_below="#+id/textView15"
android:layout_alignStart="#+id/view4"
android:textColor="#ffffff"
android:layout_marginTop="10dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="Intermediate passing Year"
android:id="#+id/textView17"
android:layout_below="#+id/textView16"
android:layout_alignStart="#+id/textView16"
android:textColor="#ffffff"
android:layout_marginTop="10dp"/>
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="#+id/checkBox"
android:checked="false"
android:layout_alignTop="#+id/textView16"
android:layout_alignEnd="#+id/textView5" />
<Spinner
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="#+id/spinner"
android:layout_below="#+id/textView16"
android:layout_alignParentEnd="true"
android:layout_marginTop="13dp"/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="New Button"
android:id="#+id/button4"
android:layout_below="#+id/textView17"
android:layout_centerHorizontal="true" />
</RelativeLayout>
</ScrollView>
It seems you are not using ScrollView correctly.
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbarStyle="insideOverlay"
android:scrollbarThumbVertical="#drawable/custom_bar"
tools:context="com.kamranchaudhary.pucitportal.Aggreagte">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="Pucit Aggregate Calculator"
android:id="#+id/textView5"
android:textStyle="bold"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:textColor="#ffffff" />
<View
android:layout_width="300dp"
android:layout_height="1dip"
android:background="#ffffff"
android:layout_below="#+id/textView5"
android:layout_centerHorizontal="true"
android:layout_marginTop="5dp"
android:id="#+id/view" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="Matric"
android:id="#+id/textView6"
android:layout_below="#+id/view"
android:layout_alignParentStart="true"
android:textColor="#ffffff"
android:layout_marginTop="10dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="Obtained Marks"
android:id="#+id/textView7"
android:textColor="#ffffff"
android:layout_below="#+id/textView6"
android:layout_alignStart="#+id/view"
android:layout_marginTop="10dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="Total Marks"
android:id="#+id/textView8"
android:layout_below="#+id/textView7"
android:layout_alignStart="#+id/textView7"
android:textColor="#ffffff"
android:layout_marginTop="10dp" />
<View
android:layout_width="300dp"
android:layout_height="1dip"
android:background="#ffffff"
android:id="#+id/view2"
android:layout_below="#+id/textView8"
android:layout_alignStart="#+id/textView8"
android:layout_marginTop="10dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="Intermediate"
android:id="#+id/textView9"
android:layout_below="#+id/view2"
android:layout_alignParentStart="true"
android:textColor="#ffffff"
android:layout_marginTop="10dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="Obtained Marks"
android:id="#+id/textView10"
android:layout_below="#+id/textView9"
android:layout_alignStart="#+id/view2"
android:textColor="#ffffff"
android:layout_marginTop="10dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="Total Marks"
android:id="#+id/textView11"
android:textColor="#ffffff"
android:layout_below="#+id/textView10"
android:layout_alignStart="#+id/textView10"
android:layout_marginTop="10dp"/>
<View
android:layout_width="300dp"
android:layout_height="1dip"
android:background="#ffffff"
android:id="#+id/view3"
android:layout_below="#+id/textView11"
android:layout_alignStart="#+id/textView11"
android:layout_marginTop="10dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="PUCIT Entry Test"
android:id="#+id/textView12"
android:layout_below="#+id/view3"
android:layout_alignParentStart="true"
android:textColor="#ffffff"
android:layout_marginTop="10dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="Obtained Marks"
android:id="#+id/textView13"
android:layout_below="#+id/textView12"
android:layout_alignStart="#+id/view3"
android:textColor="#ffffff"
android:layout_marginTop="10dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="Total Marks"
android:id="#+id/textView14"
android:layout_below="#+id/textView13"
android:layout_alignStart="#+id/textView13"
android:textColor="#ffffff"
android:layout_marginTop="10dp"/>
<View
android:layout_width="300dp"
android:layout_height="1dip"
android:background="#ffffff"
android:layout_below="#+id/textView14"
android:layout_alignStart="#+id/textView14"
android:layout_marginTop="10dp"
android:id="#+id/view4" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="Extras"
android:id="#+id/textView15"
android:layout_below="#+id/view4"
android:layout_alignParentStart="true"
android:textColor="#ffffff"
android:layout_marginTop="10dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="Are You Hafiz e Quran ?"
android:id="#+id/textView16"
android:layout_below="#+id/textView15"
android:layout_alignStart="#+id/view4"
android:textColor="#ffffff"
android:layout_marginTop="10dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="Intermediate passing Year"
android:id="#+id/textView17"
android:layout_below="#+id/textView16"
android:layout_alignStart="#+id/textView16"
android:textColor="#ffffff"
android:layout_marginTop="10dp"/>
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="#+id/checkBox"
android:checked="false"
android:layout_alignTop="#+id/textView16"
android:layout_alignEnd="#+id/textView5" />
<Spinner
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="#+id/spinner"
android:layout_below="#+id/textView16"
android:layout_alignParentEnd="true"
android:layout_marginTop="13dp"/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="New Button"
android:id="#+id/button4"
android:layout_below="#+id/textView17"
android:layout_centerHorizontal="true" />
</RelativeLayout>
</ScrollView>
or try closing Parent RelativeLayout.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="#dimen/activity_vertical_margin"
android:paddingLeft="#dimen/activity_horizontal_margin"
android:paddingRight="#dimen/activity_horizontal_margin"
android:paddingTop="#dimen/activity_vertical_margin"
android:background="#436dbf"
tools:context="com.kamranchaudhary.pucitportal.Aggreagte">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentStart="true"
android:layout_alignParentEnd="true"
android:layout_alignParentTop="true"
android:scrollbarStyle="insideOverlay"
android:scrollbarThumbVertical="#drawable/custom_bar"
android:layout_alignParentBottom="true">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="Pucit Aggregate Calculator"
android:id="#+id/textView5"
android:textStyle="bold"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:textColor="#ffffff" />
<View
android:layout_width="300dp"
android:layout_height="1dip"
android:background="#ffffff"
android:layout_below="#+id/textView5"
android:layout_centerHorizontal="true"
android:layout_marginTop="5dp"
android:id="#+id/view" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="Matric"
android:id="#+id/textView6"
android:layout_below="#+id/view"
android:layout_alignParentStart="true"
android:textColor="#ffffff"
android:layout_marginTop="10dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="Obtained Marks"
android:id="#+id/textView7"
android:textColor="#ffffff"
android:layout_below="#+id/textView6"
android:layout_alignStart="#+id/view"
android:layout_marginTop="10dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="Total Marks"
android:id="#+id/textView8"
android:layout_below="#+id/textView7"
android:layout_alignStart="#+id/textView7"
android:textColor="#ffffff"
android:layout_marginTop="10dp" />
<View
android:layout_width="300dp"
android:layout_height="1dip"
android:background="#ffffff"
android:id="#+id/view2"
android:layout_below="#+id/textView8"
android:layout_alignStart="#+id/textView8"
android:layout_marginTop="10dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="Intermediate"
android:id="#+id/textView9"
android:layout_below="#+id/view2"
android:layout_alignParentStart="true"
android:textColor="#ffffff"
android:layout_marginTop="10dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="Obtained Marks"
android:id="#+id/textView10"
android:layout_below="#+id/textView9"
android:layout_alignStart="#+id/view2"
android:textColor="#ffffff"
android:layout_marginTop="10dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="Total Marks"
android:id="#+id/textView11"
android:textColor="#ffffff"
android:layout_below="#+id/textView10"
android:layout_alignStart="#+id/textView10"
android:layout_marginTop="10dp"/>
<View
android:layout_width="300dp"
android:layout_height="1dip"
android:background="#ffffff"
android:id="#+id/view3"
android:layout_below="#+id/textView11"
android:layout_alignStart="#+id/textView11"
android:layout_marginTop="10dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="PUCIT Entry Test"
android:id="#+id/textView12"
android:layout_below="#+id/view3"
android:layout_alignParentStart="true"
android:textColor="#ffffff"
android:layout_marginTop="10dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="Obtained Marks"
android:id="#+id/textView13"
android:layout_below="#+id/textView12"
android:layout_alignStart="#+id/view3"
android:textColor="#ffffff"
android:layout_marginTop="10dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="Total Marks"
android:id="#+id/textView14"
android:layout_below="#+id/textView13"
android:layout_alignStart="#+id/textView13"
android:textColor="#ffffff"
android:layout_marginTop="10dp"/>
<View
android:layout_width="300dp"
android:layout_height="1dip"
android:background="#ffffff"
android:layout_below="#+id/textView14"
android:layout_alignStart="#+id/textView14"
android:layout_marginTop="10dp"
android:id="#+id/view4" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="Extras"
android:id="#+id/textView15"
android:layout_below="#+id/view4"
android:layout_alignParentStart="true"
android:textColor="#ffffff"
android:layout_marginTop="10dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="Are You Hafiz e Quran ?"
android:id="#+id/textView16"
android:layout_below="#+id/textView15"
android:layout_alignStart="#+id/view4"
android:textColor="#ffffff"
android:layout_marginTop="10dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="Intermediate passing Year"
android:id="#+id/textView17"
android:layout_below="#+id/textView16"
android:layout_alignStart="#+id/textView16"
android:textColor="#ffffff"
android:layout_marginTop="10dp"/>
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="#+id/checkBox"
android:checked="false"
android:layout_alignTop="#+id/textView16"
android:layout_alignEnd="#+id/textView5" />
<Spinner
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="#+id/spinner"
android:layout_below="#+id/textView16"
android:layout_alignParentEnd="true"
android:layout_marginTop="13dp"/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="New Button"
android:id="#+id/button4"
android:layout_below="#+id/textView17"
android:layout_centerHorizontal="true" />
</RelativeLayout>
</ScrollView>
</RelativeLayout>

Exception raised during rendering: Circular dependencies cannot exist in RelativeLayout

I tried to display the code in android studio and got this error:
Exception raised during rendering: Circular dependencies cannot exist in RelativeLayout.
I tried changing the code in many spots but nothing seemed to help.....
In the layout i was trying to make a line of text boxes and two parallel lines of TextView. I would like to keep this design so that it stays that way. so if someone has an answer that keeps it in place and fixes the problem i would be very great-full if he posted it.
this is my code:
<TextView
android:text="#string/added"
android:textSize="45sp"
android:id="#+id/welcome_name4"
android:layout_width="wrap_content"
android:layout_height="wrap_content" android:textColor="#000"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:id="#+id/textView5"
android:textColor="#000"
android:layout_below="#+id/welcome_name4"
android:layout_alignLeft="#+id/textView6"
android:layout_alignStart="#+id/textView6" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:id="#+id/textView6"
android:textColor="#000"
android:layout_below="#+id/textView5"
android:layout_alignLeft="#+id/textView7"
android:layout_alignStart="#+id/textView7" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:id="#+id/textView7"
android:textColor="#000"
android:layout_below="#+id/textView6"
android:layout_alignLeft="#+id/textView8"
android:layout_alignStart="#+id/textView8" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:id="#+id/textView8"
android:textColor="#000"
android:layout_above="#+id/textView7"
android:layout_alignLeft="#+id/textView9"
android:layout_alignStart="#+id/textView9" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:id="#+id/textView9"
android:textColor="#000"
android:layout_alignTop="#+id/textView8"
android:layout_alignLeft="#+id/textView10"
android:layout_alignStart="#+id/textView10" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:id="#+id/textView10"
android:textColor="#000"
android:layout_below="#+id/textView9"
android:layout_alignLeft="#+id/textView11"
android:layout_alignStart="#+id/textView11" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:id="#+id/textView11"
android:textColor="#000"
android:layout_below="#+id/textView10"
android:layout_alignLeft="#+id/textView12"
android:layout_alignStart="#+id/textView12" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:id="#+id/textView12"
android:textColor="#000"
android:layout_alignTop="#+id/textView32"
android:layout_alignLeft="#+id/textView13"
android:layout_alignStart="#+id/textView13" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:id="#+id/textView13"
android:textColor="#000"
android:layout_below="#+id/textView12"
android:layout_alignLeft="#+id/textView10"
android:layout_alignStart="#+id/textView10" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:id="#+id/textView14"
android:textColor="#000"
android:layout_below="#+id/textView13"
android:layout_alignLeft="#+id/textView13"
android:layout_alignStart="#+id/textView13" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:id="#+id/textView15"
android:textColor="#000"
android:layout_below="#+id/textView14"
android:layout_alignStart="#+id/textView16"
android:layout_alignLeft="#+id/textView16"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:id="#+id/textView16"
android:textColor="#000"
android:layout_below="#+id/textView15"
android:layout_toLeftOf="#+id/cb11"
android:layout_toStartOf="#+id/cb11" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:id="#+id/textView17"
android:textColor="#000"
android:layout_above="#+id/textView18"
android:layout_alignStart="#+id/textView15"
android:layout_alignLeft="#+id/textView15"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:id="#+id/textView18"
android:textColor="#000"
android:layout_alignTop="#+id/textView38"
android:layout_alignLeft="#+id/textView17"
android:layout_alignStart="#+id/textView17" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:id="#+id/textView19"
android:textColor="#000"
android:layout_below="#+id/textView18"
android:layout_alignLeft="#+id/textView18"
android:layout_alignStart="#+id/textView18" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:id="#+id/textView20"
android:textColor="#000"
android:layout_below="#+id/textView19"
android:layout_alignLeft="#+id/textView19"
android:layout_alignStart="#+id/textView19" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:id="#+id/textView21"
android:textColor="#000"
android:layout_below="#+id/textView20"
android:layout_alignLeft="#+id/textView18"
android:layout_alignStart="#+id/textView18" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:id="#+id/textView22"
android:textColor="#000"
android:layout_below="#+id/textView21"
android:layout_alignLeft="#+id/textView21"
android:layout_alignStart="#+id/textView21" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:id="#+id/textView23"
android:textColor="#000"
android:layout_alignTop="#+id/textView43"
android:layout_alignLeft="#+id/textView24"
android:layout_alignStart="#+id/textView24" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:id="#+id/textView24"
android:textColor="#000"
android:layout_alignTop="#+id/textView23"
android:layout_alignLeft="#+id/textView22"
android:layout_alignStart="#+id/textView22" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:id="#+id/textView25"
android:layout_above="#+id/textView6"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true" android:textColor="#000"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:id="#+id/textView26"
android:layout_below="#+id/textView25"
android:layout_alignRight="#+id/welcome_name4"
android:layout_alignEnd="#+id/welcome_name4" android:textColor="#000"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:id="#+id/textView27"
android:layout_below="#+id/textView26"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true" android:textColor="#000"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:id="#+id/textView28"
android:layout_below="#+id/textView27"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true" android:textColor="#000"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:id="#+id/textView29"
android:layout_below="#+id/textView28"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true" android:textColor="#000"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:id="#+id/textView30"
android:layout_below="#+id/textView29"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true" android:textColor="#000"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:id="#+id/textView31"
android:layout_below="#+id/textView30"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true" android:textColor="#000"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:id="#+id/textView32"
android:layout_below="#+id/textView31"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true" android:textColor="#000"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:id="#+id/textView33"
android:layout_below="#+id/textView32"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true" android:textColor="#000"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:id="#+id/textView34"
android:layout_below="#+id/textView33"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true" android:textColor="#000"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:id="#+id/textView35"
android:layout_below="#+id/textView34"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true" android:textColor="#000"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:id="#+id/textView36"
android:layout_below="#+id/textView35"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true" android:textColor="#000"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:id="#+id/textView37"
android:layout_below="#+id/textView36"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true" android:textColor="#000"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:id="#+id/textView38"
android:layout_below="#+id/textView37"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true" android:textColor="#000"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:id="#+id/textView39"
android:layout_below="#+id/textView38"
android:layout_alignRight="#+id/welcome_name4"
android:layout_alignEnd="#+id/welcome_name4" android:textColor="#000"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:id="#+id/textView40"
android:layout_alignTop="#+id/textView20"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true" android:textColor="#000"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:id="#+id/textView41"
android:layout_below="#+id/textView40"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true" android:textColor="#000"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:id="#+id/textView42"
android:layout_below="#+id/textView41"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true" android:textColor="#000"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:id="#+id/textView43"
android:layout_below="#+id/textView42"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true" android:textColor="#000"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:id="#+id/textView44"
android:layout_below="#+id/textView43"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true" android:textColor="#000"/>
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:onClick="deleteMember"
android:id="#+id/cb1"
android:tag="1"
android:layout_above="#+id/textView6"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_below="#+id/welcome_name4" />
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:onClick="deleteMember"
android:id="#+id/cb2"
android:tag="2"
android:layout_below="#+id/textView5"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_alignBottom="#+id/textView6" />
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:tag="3"
android:onClick="deleteMember"
android:id="#+id/cb3"
android:layout_alignTop="#+id/textView7"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_above="#+id/textView8" />
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:tag="4"
android:onClick="deleteMember"
android:id="#+id/cb4"
android:layout_below="#+id/cb3"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_alignBottom="#+id/textView8" />
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:tag="5"
android:onClick="deleteMember"
android:id="#+id/cb5"
android:layout_alignTop="#+id/textView9"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_above="#+id/textView10" />
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:tag="6"
android:onClick="deleteMember"
android:id="#+id/cb6"
android:layout_below="#+id/cb5"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_above="#+id/textView11" />
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:tag="7"
android:onClick="deleteMember"
android:id="#+id/cb7"
android:layout_below="#+id/textView10"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_alignBottom="#+id/textView11" />
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:onClick="deleteMember"
android:tag="8"
android:id="#+id/cb8"
android:layout_alignTop="#+id/textView12"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_above="#+id/textView13"
android:checked="false" />
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:tag="9"
android:onClick="deleteMember"
android:id="#+id/cb9"
android:layout_below="#+id/textView12"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_above="#+id/textView14" />
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:tag="10"
android:onClick="deleteMember"
android:id="#+id/cb10"
android:layout_below="#+id/textView13"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_alignBottom="#+id/textView14" />
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:tag="11"
android:onClick="deleteMember"
android:id="#+id/cb11"
android:layout_below="#+id/cb10"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_above="#+id/textView16" />
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:tag="12"
android:onClick="deleteMember"
android:id="#+id/cb12"
android:layout_below="#+id/cb11"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_above="#+id/textView17" />
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:tag="13"
android:onClick="deleteMember"
android:id="#+id/cb13"
android:layout_below="#+id/textView16"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_alignBottom="#+id/textView17" />
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:tag="14"
android:onClick="deleteMember"
android:id="#+id/cb14"
android:layout_alignTop="#+id/textView18"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_above="#+id/textView19" />
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:tag="15"
android:onClick="deleteMember"
android:id="#+id/cb15"
android:layout_below="#+id/textView18"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_above="#+id/textView20" />
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:tag="16"
android:onClick="deleteMember"
android:id="#+id/cb16"
android:layout_below="#+id/textView19"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_above="#+id/textView21" />
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:tag="17"
android:onClick="deleteMember"
android:id="#+id/cb17"
android:layout_below="#+id/textView20"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_above="#+id/textView22" />
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:tag="18"
android:onClick="deleteMember"
android:id="#+id/cb18"
android:layout_below="#+id/textView21"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_alignBottom="#+id/textView22" />
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:tag="19"
android:onClick="deleteMember"
android:id="#+id/cb19"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_below="#+id/textView22"
android:layout_alignBottom="#+id/textView23" />
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:tag="20"
android:onClick="deleteMember"
android:id="#+id/cb20"
android:layout_below="#+id/textView23"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_alignBottom="#+id/textView44" />
Thanks a lot for helping:)
Your Views are referring to each other in a bidirectional way, which causes the circular dependency that you should not have.
For example: textView5's position in the layout is based on textView6's position, but textView6's position is also based on textView5's position. This dependency should be only one-way.

android activity does not scroll down

I m using android studio 1.0.... In design ,my screen is get filled and when it runs it needs to scroll down but its not ... I tried previous answers an add scroll view in layout but there is error ( Scroll view can host only one child) enter code here
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:id="#+id/ScrollView">
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="INTRODUCTION:"
android:id="#+id/heading1"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:textAlignment="center"
android:phoneNumber="false"
android:textStyle="bold" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="#string/Introduction"
android:id="#+id/textView2"
android:layout_below="#+id/heading1"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_marginLeft="10dp"
android:layout_marginStart="10dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="HYDROCARBON:"
android:id="#+id/textView3"
android:layout_below="#+id/textView2"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:textStyle="bold" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="#string/hydrocarbon"
android:id="#+id/textView4"
android:layout_below="#+id/textView3"
android:layout_alignLeft="#+id/textView2"
android:layout_alignStart="#+id/textView2" />
<ImageView
android:layout_width="150dp"
android:layout_height="150dp"
android:id="#+id/imageView"
android:layout_below="#+id/textView4"
android:layout_centerHorizontal="true"
android:src="#drawable/ethane"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="TYPES OF HYDROCARBON:"
android:id="#+id/textView5"
android:layout_below="#+id/imageView"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:textStyle="bold" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="#string/types"
android:id="#+id/textView6"
android:layout_below="#+id/textView5"
android:layout_alignLeft="#+id/textView4"
android:layout_alignStart="#+id/textView4" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="Alkane"
android:id="#+id/textView7"
android:layout_below="#+id/textView6"
android:layout_alignLeft="#+id/textView6"
android:layout_alignStart="#+id/textView6" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="Alkene"
android:id="#+id/textView8"
android:layout_below="#+id/textView7"
android:layout_alignLeft="#+id/textView7"
android:layout_alignStart="#+id/textView7" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="Alkyne"
android:id="#+id/textView9"
android:layout_below="#+id/textView8"
android:layout_alignLeft="#+id/textView8"
android:layout_alignStart="#+id/textView8" />
<Button
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="BACK"
android:id="#+id/button2"
android:onClick="mainPage"
android:layout_below="#+id/textView9"
android:layout_alignRight="#+id/textView8"
android:layout_alignEnd="#+id/textView8" />
This should help
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:id="#+id/ScrollView">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="#+id/RelativeLayout">
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="INTRODUCTION:"
android:id="#+id/heading1"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:textAlignment="center"
android:phoneNumber="false"
android:textStyle="bold" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="#string/Introduction"
android:id="#+id/textView2"
android:layout_below="#+id/heading1"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_marginLeft="10dp"
android:layout_marginStart="10dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="HYDROCARBON:"
android:id="#+id/textView3"
android:layout_below="#+id/textView2"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:textStyle="bold" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="#string/hydrocarbon"
android:id="#+id/textView4"
android:layout_below="#+id/textView3"
android:layout_alignLeft="#+id/textView2"
android:layout_alignStart="#+id/textView2" />
<ImageView
android:layout_width="150dp"
android:layout_height="150dp"
android:id="#+id/imageView"
android:layout_below="#+id/textView4"
android:layout_centerHorizontal="true"
android:src="#drawable/ethane" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="TYPES OF HYDROCARBON:"
android:id="#+id/textView5"
android:layout_below="#+id/imageView"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:textStyle="bold" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="#string/types"
android:id="#+id/textView6"
android:layout_below="#+id/textView5"
android:layout_alignLeft="#+id/textView4"
android:layout_alignStart="#+id/textView4" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="Alkane"
android:id="#+id/textView7"
android:layout_below="#+id/textView6"
android:layout_alignLeft="#+id/textView6"
android:layout_alignStart="#+id/textView6" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="Alkene"
android:id="#+id/textView8"
android:layout_below="#+id/textView7"
android:layout_alignLeft="#+id/textView7"
android:layout_alignStart="#+id/textView7" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="Alkyne"
android:id="#+id/textView9"
android:layout_below="#+id/textView8"
android:layout_alignLeft="#+id/textView8"
android:layout_alignStart="#+id/textView8" />
<Button
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="BACK"
android:id="#+id/button2"
android:onClick="mainPage"
android:layout_below="#+id/textView9"
android:layout_alignRight="#+id/textView8"
android:layout_alignEnd="#+id/textView8" />
</RelativeLayout>
</ScrollView>
Scroll view tag can have only one child element
Put your content of scroll view in linear layout.
<ScrollView>
<LinearLayout>
.......
.......
.....
</LinearLayout>
</ScrollView>

AdView Force closes

I added a admob AdView to my layout but after adding my app force closes what might be the reason.
Have I done something wrong plz correct me. Without that adView my app works perfectly.
or do I have to add anything in the main_activity file?
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
android:id="#+id/ScrollView01"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#color/cyan" >
<RelativeLayout
android:id="#+id/RelativeLayout01"
android:layout_width="match_parent"
android:layout_height="914dp" >
<TextView
android:id="#+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="15dp"
android:layout_marginTop="120dp"
android:text="TECHNICAL\nENGLISH -I"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textSize="18sp" />
<TextView
android:id="#+id/textView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="15dp"
android:layout_marginTop="185dp"
android:text="ENGINEERING\nPHYSICS I"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textSize="18sp" />
<TextView
android:id="#+id/textView4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="15dp"
android:layout_marginTop="250dp"
android:text="ENGINEERING\nCHEMISTRY I"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textSize="18sp" />
<TextView
android:id="#+id/textView5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="15dp"
android:layout_marginTop="315dp"
android:text="COMPUTER\nPROGRAMMING"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textSize="18sp" />
<TextView
android:id="#+id/textView6"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="15dp"
android:layout_marginTop="380dp"
android:text="ENGINEERING\nGRAPHICS"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textSize="18sp" />
<TextView
android:id="#+id/textView7"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="15dp"
android:layout_marginTop="445dp"
android:text="COMPUTER\nPRGRAMMING LAB"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textSize="18sp" />
<TextView
android:id="#+id/textView8"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="15dp"
android:layout_marginTop="510dp"
android:text="ENGINEERING\nPRACTICES LAB"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textSize="18sp" />
<TextView
android:id="#+id/textView9"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="15dp"
android:layout_marginTop="575dp"
android:text="PHYSICS\nCHEMISTRY LAB"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textSize="18sp" />
<Spinner
android:id="#+id/spinner1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="200dp"
android:layout_marginTop="65dp"
android:entries="#array/Grade"
android:prompt="#string/hello_world"
android:text="Medium Text"
android:textAppearance="?android:attr/textAppearanceMedium" />
<Spinner
android:id="#+id/spinner2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="200dp"
android:layout_marginTop="110dp"
android:entries="#array/Grade"
android:prompt="#string/hello_world"
android:text="Medium Text"
android:textAppearance="?android:attr/textAppearanceMedium" />
<Spinner
android:id="#+id/spinner3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="200dp"
android:layout_marginTop="175dp"
android:entries="#array/Grade"
android:prompt="#string/hello_world"
android:text="Medium Text"
android:textAppearance="?android:attr/textAppearanceMedium" />
<Spinner
android:id="#+id/spinner4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="200dp"
android:layout_marginTop="240dp"
android:entries="#array/Grade"
android:prompt="#string/hello_world"
android:text="Medium Text"
android:textAppearance="?android:attr/textAppearanceMedium" />
<Spinner
android:id="#+id/spinner5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="200dp"
android:layout_marginTop="305dp"
android:entries="#array/Grade"
android:prompt="#string/hello_world"
android:text="Medium Text"
android:textAppearance="?android:attr/textAppearanceMedium" />
<Spinner
android:id="#+id/spinner6"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="200dp"
android:layout_marginTop="370dp"
android:entries="#array/Grade"
android:prompt="#string/hello_world"
android:text="Medium Text"
android:textAppearance="?android:attr/textAppearanceMedium" />
<Spinner
android:id="#+id/spinner7"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="200dp"
android:layout_marginTop="435dp"
android:entries="#array/Grade"
android:prompt="#string/hello_world"
android:text="Medium Text"
android:textAppearance="?android:attr/textAppearanceMedium" />
<Spinner
android:id="#+id/spinner8"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="200dp"
android:layout_marginTop="500dp"
android:entries="#array/Grade"
android:prompt="#string/hello_world"
android:text="Medium Text"
android:textAppearance="?android:attr/textAppearanceMedium" />
<Spinner
android:id="#+id/spinner9"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="200dp"
android:layout_marginTop="565dp"
android:entries="#array/Grade"
android:prompt="#string/hello_world"
android:text="Medium Text"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:id="#+id/textView11"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="30dp"
android:gravity="center"
android:text="SEMESTER I - GPA CALCULATOR"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textSize="20sp" />
<TextView
android:id="#+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="15dp"
android:layout_marginTop="75dp"
android:text="MATHEMATICS - I"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textSize="18sp" />
<Button
android:id="#+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="#+id/textView9"
android:layout_centerHorizontal="true"
android:layout_marginTop="37dp"
android:text="CALCULATE" />
<TextView
android:id="#+id/editText1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="#+id/button1"
android:layout_centerHorizontal="true"
android:layout_marginTop="13dp"
android:ems="10"
android:gravity="center"
android:textSize="20sp" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="#+id/editText1"
android:layout_marginTop="58dp"
android:layout_alignParentTop="true"
android:layout_toRightOf="#+id/textView8" >
<com.google.ads.AdView
android:id="#+id/adView"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
ads:adSize="BANNER"
ads:adUnitId="a15325d1ef2568c"
ads:loadAdOnCreate="true"
ads:testDevices="TEST_DEVICE_ID" >
</com.google.ads.AdView>
</LinearLayout>
</RelativeLayout>
</ScrollView>

Android Layout alignment messed up in Landscape

This is my first coding in Android. I have a device with 5" screen and 854*480 resolution . The following code looks perfect on portrait but everything moved left on landscape mode(it looks really bad). I have used dp units as it is recommended but still it is not aligning correctly. What am I doing wrong?
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="#+id/ScrollView01"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<RelativeLayout
android:id="#+id/RelativeLayout01"
android:layout_width="match_parent"
android:layout_height="753dp"
android:background="#color/orange" >
<TextView
android:id="#+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="90dp"
android:layout_marginTop="120dp"
android:text="HS6151"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:id="#+id/textView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="90dp"
android:layout_marginTop="165dp"
android:text="PH6151"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:id="#+id/textView4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="90dp"
android:layout_marginTop="210dp"
android:text="CY6151"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:id="#+id/textView5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="90dp"
android:layout_marginTop="255dp"
android:text="GE6151"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:id="#+id/textView6"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="90dp"
android:layout_marginTop="300dp"
android:text="GE6152"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:id="#+id/textView7"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="90dp"
android:layout_marginTop="345dp"
android:text="GE6161"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:id="#+id/textView8"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="90dp"
android:layout_marginTop="390dp"
android:text="GE6162"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:id="#+id/textView9"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="90dp"
android:layout_marginTop="435dp"
android:text="GE6163"
android:textAppearance="?android:attr/textAppearanceMedium" />
<spinner
android:id="#+id/spinner1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="200dp"
android:layout_marginTop="65dp"
android:entries="#array/Grade"
android:prompt="#string/hello_world"
android:text="Medium Text"
android:textAppearance="?android:attr/textAppearanceMedium" />
<spinner
android:id="#+id/spinner2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="200dp"
android:layout_marginTop="110dp"
android:entries="#array/Grade"
android:prompt="#string/hello_world"
android:text="Medium Text"
android:textAppearance="?android:attr/textAppearanceMedium" />
<spinner
android:id="#+id/spinner3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="200dp"
android:layout_marginTop="155dp"
android:entries="#array/Grade"
android:prompt="#string/hello_world"
android:text="Medium Text"
android:textAppearance="?android:attr/textAppearanceMedium" />
<spinner
android:id="#+id/spinner4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="200dp"
android:layout_marginTop="200dp"
android:entries="#array/Grade"
android:prompt="#string/hello_world"
android:text="Medium Text"
android:textAppearance="?android:attr/textAppearanceMedium" />
<spinner
android:id="#+id/spinner5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="200dp"
android:layout_marginTop="245dp"
android:entries="#array/Grade"
android:prompt="#string/hello_world"
android:text="Medium Text"
android:textAppearance="?android:attr/textAppearanceMedium" />
<spinner
android:id="#+id/spinner6"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="200dp"
android:layout_marginTop="290dp"
android:entries="#array/Grade"
android:prompt="#string/hello_world"
android:text="Medium Text"
android:textAppearance="?android:attr/textAppearanceMedium" />
<spinner
android:id="#+id/spinner7"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="200dp"
android:layout_marginTop="335dp"
android:entries="#array/Grade"
android:prompt="#string/hello_world"
android:text="Medium Text"
android:textAppearance="?android:attr/textAppearanceMedium" />
<spinner
android:id="#+id/spinner8"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="200dp"
android:layout_marginTop="380dp"
android:entries="#array/Grade"
android:prompt="#string/hello_world"
android:text="Medium Text"
android:textAppearance="?android:attr/textAppearanceMedium" />
<spinner
android:id="#+id/spinner9"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="200dp"
android:layout_marginTop="425dp"
android:entries="#array/Grade"
android:prompt="#string/hello_world"
android:text="Medium Text"
android:textAppearance="?android:attr/textAppearanceMedium" />
<Button
android:id="#+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="#+id/spinner9"
android:layout_centerHorizontal="true"
android:layout_marginTop="19dp"
android:text="calculate" />
<space
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="55dp" />
<TextView
android:id="#+id/textView11"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="30dp"
android:gravity="center"
android:text="SEMESTER I - GPA CALCULATOR"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textSize="20dp" />
<TextView
android:id="#+id/editText1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="#+id/button1"
android:layout_centerHorizontal="true"
android:layout_marginTop="1dp"
android:editable="false"
android:ems="10"
android:gravity="center"
android:inputType="number"
android:textSize="20dp" />
<TextView
android:id="#+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="90dp"
android:layout_marginTop="75dp"
android:text="MA6151"
android:textAppearance="?android:attr/textAppearanceMedium" />
</RelativeLayout>
</ScrollView>
1. Using a fixed height for your container isn't a good idea: android:layout_height="753dp" because in landscape, your height won't be 854, but 480.
As an alternative, you can use two same-named xml layouts in res/layout-port and res/layout-land, with specific designs.
2. Most of your controls are aligned to the left by design, in portrait mode.
So, they will be left aligned also in landscape, if you don't provide an alternative layout file as described above.

Categories

Resources