diff --git a/app/src/main/java/fr/iutlille/ctp2024/MainActivity.java b/app/src/main/java/fr/iutlille/ctp2024/MainActivity.java index c620bddce3838c7949fe4e6c8a42a77968ff43be..d05915773543cacaa5712f7573be512b439292a2 100755 --- a/app/src/main/java/fr/iutlille/ctp2024/MainActivity.java +++ b/app/src/main/java/fr/iutlille/ctp2024/MainActivity.java @@ -3,12 +3,19 @@ package fr.iutlille.ctp2024; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; +import android.view.View; +import android.util.Log; -public class MainActivity extends AppCompatActivity { +public class MainActivity extends AppCompatActivity implements View.OnClickListener { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } + + @Override + public void onClick(View v) { + //Log.i("ici",v.toString()); + } } \ No newline at end of file diff --git a/app/src/main/java/fr/iutlille/ctp2024/TacheActivity.java b/app/src/main/java/fr/iutlille/ctp2024/TacheActivity.java new file mode 100644 index 0000000000000000000000000000000000000000..ad067fee3a843d346b27055b5aee3d89ebf53784 --- /dev/null +++ b/app/src/main/java/fr/iutlille/ctp2024/TacheActivity.java @@ -0,0 +1,4 @@ +package fr.iutlille.ctp2024; + +public class TacheActivity { +} diff --git a/app/src/main/res/layout/activity_tache.xml b/app/src/main/res/layout/activity_tache.xml new file mode 100644 index 0000000000000000000000000000000000000000..bfbd31a91fc619b1f0d572f241f1bf0ff98a348a --- /dev/null +++ b/app/src/main/res/layout/activity_tache.xml @@ -0,0 +1,58 @@ +<RelativeLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="horizontal"> + + <CheckBox + android:id="@+id/checkbox1" + android:layout_width="wrap_content" + android:layout_height="wrap_content"> + </CheckBox> + + <TextView + android:id="@+id/textview1" + android:text="category" + android:textSize="60px" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_toRightOf="@id/checkbox1"> + </TextView> + + <TextView + android:id="@+id/textview2" + android:text="priority" + android:textSize="60px" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_toRightOf="@id/textview1"> + </TextView> + + <TextView + android:id="@+id/textview3" + android:text="due_date" + android:textSize="60px" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_toRightOf="@id/textview2"> + </TextView> + + <TextView + android:id="@+id/textview4" + android:text="short_description" + android:textSize="60px" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_toRightOf="@id/textview3"> + </TextView> + + + + + + + + + + +</RelativeLayout> \ No newline at end of file diff --git a/app/src/main/res/layout/main.xml b/app/src/main/res/layout/main.xml index cef4fd8889dc7e0e983d9a4abb1f11d5eae5b94b..226eab53212442a208ddaca4a2361bdf50319688 100644 --- a/app/src/main/res/layout/main.xml +++ b/app/src/main/res/layout/main.xml @@ -1,8 +1,10 @@ <RelativeLayout + xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" xmlns:android="http://schemas.android.com/apk/res/android" - android:orientation="horizontal"> + android:orientation="horizontal" + tools:context='.MainActivity'> <TextView android:id="@+id/textview1" @@ -15,7 +17,7 @@ <Button android:id="@+id/button1" - android:text="MET TÂCHES" + android:text="MES TÂCHES" android:layout_below="@id/textview1" android:layout_width="match_parent" android:layout_height="wrap_content" /> @@ -27,5 +29,28 @@ 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_below="@id/button2" + android:layout_marginStart="20dp" + android:layout_marginTop="73dp" + android:layout_marginEnd="20dp" + android:layout_marginBottom="20dp" + android:text="À faire : " + android:textSize="60px" /> + + <TextView + android:id="@+id/textview3" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@id/button2" + android:layout_marginTop="132dp" + android:text="Urgent : " + android:textAlignment="center" + android:textSize="60px" /> + + </RelativeLayout>