This is my xml layout for the log in page

<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:fillViewport="true">

    <LinearLayout
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:paddingBottom="@dimen/activity_vertical_margin"
     >


        <!--  Logo  -->
    <TextView android:id="@+id/headText"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginTop="60dip"
    android:textSize="45sp"
    android:fontFamily="sans-serif"
    android:textColor="#FFFFFF"
    android:textStyle="bold"
    android:layout_gravity="center"
    android:gravity="center"
    android:text="@string/logo"
    />

 <!--  Email TextField -->
<EditText android:id="@+id/loginEmail"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:inputType="text"
    android:hint="@string/username_text"
    android:fontFamily="sans-serif"
    android:textSize="15sp"
    android:layout_marginTop="100dip"
    android:layout_marginLeft="20dip"
    android:layout_marginRight="20dip"
        />

<!--  Password TextField -->
<EditText android:id="@+id/loginPassword"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:inputType="textPassword"
    android:hint="@string/password_text"
    android:textSize="15sp"
    android:fontFamily="sans-serif"            
    android:layout_marginTop="20dip"
    android:layout_marginLeft="20dip"
    android:layout_marginRight="20dip"
        />


<!--  Error message -->
        <TextView android:id="@+id/login_error"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:textColor="#e30000"
      android:padding="10dip"
      android:textStyle="bold"
      android:layout_gravity="center"
      android:gravity="center"/>


<!--  Login Button --> 
<Button android:id="@+id/btnLogin"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:textSize="20sp"
    android:textColor="#FFFFFF"
    android:textStyle="bold"
    android:paddingTop="10dip"
    android:paddingBottom="10dip"
    android:background="@drawable/login_button_corners"
    android:fontFamily="sans-serif"
    android:layout_marginTop="20dip"
    android:layout_marginLeft="80dip"
    android:layout_marginRight="80dip"
    android:text="@string/login_button"
    />


<!--  Link to Registration Screen -->
<Button android:id="@+id/btnLinkToRegisterScreen"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:textSize="20sp"
    android:textColor="#FFFFFF"
    android:textStyle="bold"
    android:paddingTop="10dip"
    android:paddingBottom="10dip"
    android:background="@drawable/signup_button_corners"
    android:fontFamily="sans-serif"
    android:layout_marginTop="40dip"
    android:layout_marginLeft="80dip"
    android:layout_marginRight="80dip"
    android:text="@string/signup_button"
    />
    </LinearLayout>

</ScrollView>

I have this in the manifest file

<activity
            android:name=".LoginActivity"
            android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"
            android:windowSoftInputMode="adjustPan|adjustResize"></activity>

but the screen does not scroll when the keyboard comes up, why is this?

It appears to scroll just fine when I copied your xml code, so I looked at your manifest and you are missing the Intent-filter tag from your manifest along the attributes that follow. I don't think this is the main root of your issue but I dont know how you even get the application to launch without the Intent-filter

but your activity tag should have at least all these items
`

<activity
            android:name="com.testing.scrollview.MainActivity"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" ></action>
                <category android:name="android.intent.category.LAUNCHER" ></category>
            </intent-filter>
        </activity> 

`

Then you might trying to get all the other attributes to work like Theme and WindowSoftInputMode

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.