diff --git a/PremiereActivite/.gitignore b/PremiereActivite/.gitignore new file mode 100644 index 0000000..c6cbe56 --- /dev/null +++ b/PremiereActivite/.gitignore @@ -0,0 +1,8 @@ +*.iml +.gradle +/local.properties +/.idea/workspace.xml +/.idea/libraries +.DS_Store +/build +/captures diff --git a/PremiereActivite/.idea/.name b/PremiereActivite/.idea/.name new file mode 100644 index 0000000..d4d5e30 --- /dev/null +++ b/PremiereActivite/.idea/.name @@ -0,0 +1 @@ +PremiereActivite \ No newline at end of file diff --git a/PremiereActivite/.idea/compiler.xml b/PremiereActivite/.idea/compiler.xml new file mode 100644 index 0000000..96cc43e --- /dev/null +++ b/PremiereActivite/.idea/compiler.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/PremiereActivite/.idea/copyright/profiles_settings.xml b/PremiereActivite/.idea/copyright/profiles_settings.xml new file mode 100644 index 0000000..e7bedf3 --- /dev/null +++ b/PremiereActivite/.idea/copyright/profiles_settings.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/PremiereActivite/.idea/encodings.xml b/PremiereActivite/.idea/encodings.xml new file mode 100644 index 0000000..97626ba --- /dev/null +++ b/PremiereActivite/.idea/encodings.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/PremiereActivite/.idea/gradle.xml b/PremiereActivite/.idea/gradle.xml new file mode 100644 index 0000000..7f82275 --- /dev/null +++ b/PremiereActivite/.idea/gradle.xml @@ -0,0 +1,23 @@ + + + + + + \ No newline at end of file diff --git a/PremiereActivite/.idea/misc.xml b/PremiereActivite/.idea/misc.xml new file mode 100644 index 0000000..1a3eaff --- /dev/null +++ b/PremiereActivite/.idea/misc.xml @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/PremiereActivite/.idea/modules.xml b/PremiereActivite/.idea/modules.xml new file mode 100644 index 0000000..78d0b82 --- /dev/null +++ b/PremiereActivite/.idea/modules.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/PremiereActivite/.idea/runConfigurations.xml b/PremiereActivite/.idea/runConfigurations.xml new file mode 100644 index 0000000..7f68460 --- /dev/null +++ b/PremiereActivite/.idea/runConfigurations.xml @@ -0,0 +1,12 @@ + + + + + + \ No newline at end of file diff --git a/PremiereActivite/app/.gitignore b/PremiereActivite/app/.gitignore new file mode 100644 index 0000000..796b96d --- /dev/null +++ b/PremiereActivite/app/.gitignore @@ -0,0 +1 @@ +/build diff --git a/PremiereActivite/app/build.gradle b/PremiereActivite/app/build.gradle new file mode 100644 index 0000000..4686834 --- /dev/null +++ b/PremiereActivite/app/build.gradle @@ -0,0 +1,27 @@ +apply plugin: 'com.android.application' + +android { + compileSdkVersion 23 + buildToolsVersion "23.0.3" + + defaultConfig { + applicationId "com.example.florian.premiereactivite" + minSdkVersion 15 + targetSdkVersion 23 + versionCode 1 + versionName "1.0" + } + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' + } + } +} + +dependencies { + compile fileTree(dir: 'libs', include: ['*.jar']) + testCompile 'junit:junit:4.12' + compile 'com.android.support:appcompat-v7:23.2.1' + compile 'com.android.support:design:23.2.1' +} diff --git a/PremiereActivite/app/proguard-rules.pro b/PremiereActivite/app/proguard-rules.pro new file mode 100644 index 0000000..7570f6c --- /dev/null +++ b/PremiereActivite/app/proguard-rules.pro @@ -0,0 +1,17 @@ +# Add project specific ProGuard rules here. +# By default, the flags in this file are appended to flags specified +# in /Users/florian/Library/Android/sdk/tools/proguard/proguard-android.txt +# You can edit the include path and order by changing the proguardFiles +# directive in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# Add any project specific keep options here: + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} diff --git a/PremiereActivite/app/src/androidTest/java/com/example/florian/premiereactivite/ApplicationTest.java b/PremiereActivite/app/src/androidTest/java/com/example/florian/premiereactivite/ApplicationTest.java new file mode 100644 index 0000000..f2f2733 --- /dev/null +++ b/PremiereActivite/app/src/androidTest/java/com/example/florian/premiereactivite/ApplicationTest.java @@ -0,0 +1,13 @@ +package com.example.florian.premiereactivite; + +import android.app.Application; +import android.test.ApplicationTestCase; + +/** + * Testing Fundamentals + */ +public class ApplicationTest extends ApplicationTestCase { + public ApplicationTest() { + super(Application.class); + } +} \ No newline at end of file diff --git a/PremiereActivite/app/src/main/AndroidManifest.xml b/PremiereActivite/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..045a2fe --- /dev/null +++ b/PremiereActivite/app/src/main/AndroidManifest.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + diff --git a/PremiereActivite/app/src/main/java/com/example/florian/premiereactivite/Menu.java b/PremiereActivite/app/src/main/java/com/example/florian/premiereactivite/Menu.java new file mode 100644 index 0000000..1d49778 --- /dev/null +++ b/PremiereActivite/app/src/main/java/com/example/florian/premiereactivite/Menu.java @@ -0,0 +1,49 @@ +package com.example.florian.premiereactivite; + + +import android.os.Bundle; +import android.support.v7.app.AppCompatActivity; +import android.text.InputType; +import android.view.View; +import android.widget.Button; +import android.widget.EditText; +import android.widget.TextView; +import android.view.MotionEvent; +import android.view.View.OnTouchListener; +import android.view.View.OnClickListener; + +public class Menu extends AppCompatActivity implements View.OnTouchListener, View.OnClickListener { + private Button valider = null; + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_menu); + TextView text = new TextView(this); + text.setText("Veuillez entrer les informations suivantes:"); + setContentView(text); + // l'utilisateur entre un identifiant + EditText identifiant = new EditText(this); + identifiant.setHint(R.string.identifiant); + identifiant.setInputType(InputType.TYPE_TEXT_FLAG_MULTI_LINE); + identifiant.setLines(2); + // l'utilisateur entre un mot de passe + EditText password = new EditText(this); + password.setHint(R.string.password); + password.setInputType(InputType.TYPE_TEXT_FLAG_MULTI_LINE); + password.setLines(2); + //element de validation + valider = (Button) findViewById(R.id.boutton); + valider.setOnTouchListener(this); + valider.setOnClickListener(this); + } + @Override + public boolean onTouch(View v, MotionEvent event){ + /*reagir au toucher */ + return true; + } + @Override + public void onClick(View v){ + /* reagir au clic */ + } + +} diff --git a/PremiereActivite/app/src/main/res/layout/activity_menu.xml b/PremiereActivite/app/src/main/res/layout/activity_menu.xml new file mode 100644 index 0000000..1fdc5a1 --- /dev/null +++ b/PremiereActivite/app/src/main/res/layout/activity_menu.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + diff --git a/PremiereActivite/app/src/main/res/layout/content_menu.xml b/PremiereActivite/app/src/main/res/layout/content_menu.xml new file mode 100644 index 0000000..2a0e128 --- /dev/null +++ b/PremiereActivite/app/src/main/res/layout/content_menu.xml @@ -0,0 +1,19 @@ + + + + + diff --git a/PremiereActivite/app/src/main/res/layout/premiere.xml b/PremiereActivite/app/src/main/res/layout/premiere.xml new file mode 100644 index 0000000..00d0d12 --- /dev/null +++ b/PremiereActivite/app/src/main/res/layout/premiere.xml @@ -0,0 +1,32 @@ + + + + + + + + + +