Skip to content

Commit

Permalink
Amélioration de l'interface graphique #121
Browse files Browse the repository at this point in the history
  • Loading branch information
Ossama98 committed Apr 16, 2020
1 parent d189b98 commit b8d8c91
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -285,12 +285,10 @@ public boolean onOptionsItemSelected(MenuItem item) {
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();

//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
return true;
}

return super.onOptionsItemSelected(item);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseExpandableListAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;

Expand Down Expand Up @@ -118,8 +119,6 @@ public View getChildView(final int groupPosition, final int childPosition,
mRecyclerView.setAdapter(mAdapter);
mAdapter.notifyDataSetChanged();
AdapterCollection.put(groupPosition, mAdapter);


return mRecyclerView;
}

Expand Down
8 changes: 8 additions & 0 deletions AndroidApp/app/src/main/res/drawable/custom_button4.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">

<solid android:color="#FF0F00" > </solid>

<corners android:radius="100dp"/>

</shape>
2 changes: 1 addition & 1 deletion AndroidApp/app/src/main/res/layout/activity_home.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
android:id="@+id/imageView"
android:layout_width="wrap_content"
android:layout_height="188dp"
app:srcCompat="@drawable/uni_logo"
app:srcCompat="@mipmap/uni_logo"
tools:layout_editor_absoluteX="8dp"
tools:layout_editor_absoluteY="29dp" />

Expand Down
3 changes: 3 additions & 0 deletions AndroidApp/app/src/main/res/layout/activity_inscription.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@
android:id="@+id/buttonValiderInscription"
android:layout_width="358dp"
android:layout_height="70dp"
android:textSize="20sp"
android:textColor="#FFFFFF"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:background="@drawable/custom_button4"
android:text="Valider" />
</LinearLayout>
61 changes: 30 additions & 31 deletions AndroidApp/app/src/main/res/layout/activity_recap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@

</LinearLayout>


<Button
android:id="@+id/RetourArriereRecap"
android:layout_width="358dp"
Expand All @@ -124,36 +125,34 @@
android:background="@drawable/custom_button"
android:text="Recommencer mon parcours" />

<Button
android:id="@+id/buttonConfirmation"
android:layout_width="358dp"
android:layout_height="70dp"
android:textSize="20sp"
android:layout_marginStart="8dp"
android:layout_marginLeft="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:layout_marginRight="8dp"
android:layout_marginBottom="8dp"
android:background="@drawable/custom_button"
android:onClick="onClickBtn"
android:text="Finaliser mon inscription" />

<Button
android:id="@+id/buttonPartager"
android:layout_width="100dp"
android:layout_height="100dp"
android:textSize="20sp"
android:layout_marginStart="8dp"
android:layout_marginLeft="8dp"
android:layout_marginTop="60dp"
android:layout_marginEnd="8dp"
android:layout_marginRight="8dp"
android:layout_marginBottom="8dp"
android:layout_gravity="bottom|right"
android:background="@drawable/custom_button3"
android:onClick="onClickBtn"
android:textColor="#FFFFFF"
android:text="Partager"/>
<Button
android:id="@+id/buttonConfirmation"
android:layout_width="358dp"
android:layout_height="70dp"
android:layout_marginStart="8dp"
android:layout_marginLeft="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:layout_marginRight="8dp"
android:layout_marginBottom="8dp"
android:background="@drawable/custom_button"
android:text="Finaliser mon inscription"
android:textSize="20sp" />

<Button
android:id="@+id/buttonPartager"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_gravity="bottom|right"
android:layout_marginStart="8dp"
android:layout_marginLeft="8dp"
android:layout_marginTop="60dp"
android:layout_marginEnd="8dp"
android:layout_marginRight="8dp"
android:layout_marginBottom="8dp"
android:background="@drawable/custom_button3"
android:text="Partager"
android:textColor="#FFFFFF"
android:textSize="20sp" />

</LinearLayout>

0 comments on commit b8d8c91

Please sign in to comment.