Skip to content
Snippets Groups Projects
Commit b37a6cf9 authored by Axel Saint-maxin's avatar Axel Saint-maxin
Browse files

Un peu de chaque Exercice commencé

parent bd116b41
No related branches found
No related tags found
No related merge requests found
......@@ -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
package fr.iutlille.ctp2024;
public class TacheActivity {
}
<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
<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>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment