diff --git a/app/src/main/java/com/example/raffaele/testapp/Register_form.java b/app/src/main/java/com/example/raffaele/testapp/Register_form.java
index 2d561af..11a60c1 100644
--- a/app/src/main/java/com/example/raffaele/testapp/Register_form.java
+++ b/app/src/main/java/com/example/raffaele/testapp/Register_form.java
@@ -1,5 +1,6 @@
package com.example.raffaele.testapp;
+import android.content.res.Configuration;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.util.Log;
@@ -34,9 +35,14 @@ protected void onCreate(Bundle savedInstanceState) {
userTxt=(EditText) findViewById(R.id.Reg_username);
passTxt=(EditText) findViewById(R.id.Reg_pass);
schoolTxt =(EditText) findViewById(R.id.Reg_school);
- Rbtn =(Button) findViewById(R.id.Reg_button);
}
+ @Override
+ public void onConfigurationChanged(Configuration newConfig) {
+ // TODO Auto-generated method stub
+ super.onConfigurationChanged(newConfig);
+ setContentView(R.layout.activity_register_form); //al cambiamento della configurazione dello schermo refresha il layout
+ }
public void Registrazione(View v) {
if (nomeTxt.getText().toString().equals("") || cognomeTxt.getText().toString().equals("") || emailTxt.getText().toString().equals("") || userTxt.getText().toString().equals("") ||
passTxt.getText().toString().equals("")|| schoolTxt.getText().toString().equals("")){
diff --git a/app/src/main/res/drawable/sub.png b/app/src/main/res/drawable/sub.png
new file mode 100644
index 0000000..bee4569
Binary files /dev/null and b/app/src/main/res/drawable/sub.png differ
diff --git a/app/src/main/res/drawable/titolo.png b/app/src/main/res/drawable/titolo.png
new file mode 100644
index 0000000..30384dd
Binary files /dev/null and b/app/src/main/res/drawable/titolo.png differ
diff --git a/app/src/main/res/layout/activity_argument__page.xml b/app/src/main/res/layout-land/activity_argument__page.xml
similarity index 100%
rename from app/src/main/res/layout/activity_argument__page.xml
rename to app/src/main/res/layout-land/activity_argument__page.xml
diff --git a/app/src/main/res/layout-land/activity_main.xml b/app/src/main/res/layout-land/activity_main.xml
index 2126df8..e25eeac 100644
--- a/app/src/main/res/layout-land/activity_main.xml
+++ b/app/src/main/res/layout-land/activity_main.xml
@@ -6,106 +6,87 @@
android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity"
android:id="@+id/MainActivity">
-
-
-
+
-
+
-
-
+
-
-
-
+
-
+
-
+
-
+
-
+
-
-
-
+
diff --git a/app/src/main/res/layout-land/activity_register_form.xml b/app/src/main/res/layout-land/activity_register_form.xml
new file mode 100644
index 0000000..0bddeb2
--- /dev/null
+++ b/app/src/main/res/layout-land/activity_register_form.xml
@@ -0,0 +1,150 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout-land/row.xml b/app/src/main/res/layout-land/row.xml
new file mode 100644
index 0000000..ae84f48
--- /dev/null
+++ b/app/src/main/res/layout-land/row.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
diff --git a/app/src/main/res/layout-port/activity_argument__page.xml b/app/src/main/res/layout-port/activity_argument__page.xml
new file mode 100644
index 0000000..078142f
--- /dev/null
+++ b/app/src/main/res/layout-port/activity_argument__page.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout-port/activity_main.xml b/app/src/main/res/layout-port/activity_main.xml
index 03f64dd..9954a94 100644
--- a/app/src/main/res/layout-port/activity_main.xml
+++ b/app/src/main/res/layout-port/activity_main.xml
@@ -6,34 +6,23 @@
android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity"
android:id="@+id/MainActivity">
-
-
-
+
+ android:layout_alignParentRight="true"
+ android:layout_alignParentEnd="true"
+ android:layout_below="@+id/imageView2">
+ android:textColor="#ffff2e3c" />
@@ -61,20 +48,16 @@
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="Password"
- android:id="@+id/passwordLabel"
- android:textSize="60dp"
- android:layout_below="@+id/password"
- android:layout_alignRight="@+id/usernameLabel"
- android:layout_alignEnd="@+id/usernameLabel"
- android:textColor="#ff1e00ff" />
+ android:id="@+id/usernameLabel"
+ android:textColor="#ff5042c4" />
+
+
+
+
diff --git a/app/src/main/res/layout-port/activity_register_form.xml b/app/src/main/res/layout-port/activity_register_form.xml
new file mode 100644
index 0000000..0bddeb2
--- /dev/null
+++ b/app/src/main/res/layout-port/activity_register_form.xml
@@ -0,0 +1,150 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout-port/row.xml b/app/src/main/res/layout-port/row.xml
new file mode 100644
index 0000000..a67f408
--- /dev/null
+++ b/app/src/main/res/layout-port/row.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
diff --git a/app/src/main/res/layout-sw600dp-land/activity_argument__page.xml b/app/src/main/res/layout-sw600dp-land/activity_argument__page.xml
new file mode 100644
index 0000000..078142f
--- /dev/null
+++ b/app/src/main/res/layout-sw600dp-land/activity_argument__page.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout-sw600dp-land/activity_main.xml b/app/src/main/res/layout-sw600dp-land/activity_main.xml
index 7c5cde1..6192996 100644
--- a/app/src/main/res/layout-sw600dp-land/activity_main.xml
+++ b/app/src/main/res/layout-sw600dp-land/activity_main.xml
@@ -6,106 +6,86 @@
android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity"
android:id="@+id/MainActivity">
-
-
-
-
-
-
-
-
-
-
+
-
+
-
-
-
-
-
+
-
+ android:id="@+id/linearLayout2">
-
+
+
+ android:layout_toStartOf="@+id/loginButton" />
+
+
+
+
-
-
+
diff --git a/app/src/main/res/layout-sw600dp-land/activity_register_form.xml b/app/src/main/res/layout-sw600dp-land/activity_register_form.xml
new file mode 100644
index 0000000..4c36482
--- /dev/null
+++ b/app/src/main/res/layout-sw600dp-land/activity_register_form.xml
@@ -0,0 +1,150 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout-sw600dp-land/row.xml b/app/src/main/res/layout-sw600dp-land/row.xml
new file mode 100644
index 0000000..a67f408
--- /dev/null
+++ b/app/src/main/res/layout-sw600dp-land/row.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
diff --git a/app/src/main/res/layout-sw600dp-port/activity_argument__page.xml b/app/src/main/res/layout-sw600dp-port/activity_argument__page.xml
new file mode 100644
index 0000000..078142f
--- /dev/null
+++ b/app/src/main/res/layout-sw600dp-port/activity_argument__page.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout-sw600dp-port/activity_main.xml b/app/src/main/res/layout-sw600dp-port/activity_main.xml
index 50c18e5..b92b934 100644
--- a/app/src/main/res/layout-sw600dp-port/activity_main.xml
+++ b/app/src/main/res/layout-sw600dp-port/activity_main.xml
@@ -7,33 +7,41 @@
android:id="@+id/MainActivity">
+ android:layout_below="@+id/linearLayout"
+ android:layout_centerHorizontal="true" />
+ android:layout_below="@+id/loginButton"
+ android:layout_alignLeft="@+id/loginButton"
+ android:layout_alignStart="@+id/loginButton"
+ android:layout_marginTop="112dp" />
+
+
+ android:layout_width="900dp"
+ android:layout_height="500dp"
+ android:id="@+id/linearLayout"
+ android:layout_centerVertical="true"
+ android:layout_alignParentLeft="true"
+ android:layout_alignParentStart="true">
+ android:textColor="#ffff2e3c" />
+ android:layout_alignParentStart="true"
+ android:ems="100"/>
+ android:textColor="#ff5042c4" />
+ android:layout_marginBottom="91dp"
+ android:textIsSelectable="false" />
diff --git a/app/src/main/res/layout-sw600dp-port/activity_register_form.xml b/app/src/main/res/layout-sw600dp-port/activity_register_form.xml
new file mode 100644
index 0000000..0bddeb2
--- /dev/null
+++ b/app/src/main/res/layout-sw600dp-port/activity_register_form.xml
@@ -0,0 +1,150 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout-sw600dp-port/row.xml b/app/src/main/res/layout-sw600dp-port/row.xml
new file mode 100644
index 0000000..3f5beae
--- /dev/null
+++ b/app/src/main/res/layout-sw600dp-port/row.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
diff --git a/app/src/main/res/layout/activity_register_form.xml b/app/src/main/res/layout/activity_register_form.xml
deleted file mode 100644
index 7780751..0000000
--- a/app/src/main/res/layout/activity_register_form.xml
+++ /dev/null
@@ -1,135 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file