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 @@ + + + + + + +