Skip to content
Snippets Groups Projects
Commit 45e68404 authored by MAUGEZ Emeline's avatar MAUGEZ Emeline
Browse files

Ajout red cocktail

parent 4bd46f05
No related branches found
No related tags found
No related merge requests found
Showing
with 90 additions and 4 deletions
......@@ -79,8 +79,8 @@
<option name="values">
<map>
<entry key="color" value="000000" />
<entry key="imagePath" value="C:\Users\Emeline\Documents\RobotTease\sotb.webp" />
<entry key="scalingPercent" value="129" />
<entry key="imagePath" value="C:\Users\Emeline\Documents\imt_atlantique\ProCom\cocktail_image.jpg" />
<entry key="scalingPercent" value="169" />
<entry key="trimmed" value="true" />
</map>
</option>
......@@ -113,7 +113,7 @@
</option>
<option name="values">
<map>
<entry key="outputName" value="cocktails_icone" />
<entry key="outputName" value="red_cocktails_icone" />
</map>
</option>
</PersistentState>
......
......@@ -16,6 +16,7 @@ public class Recettes {
public ArrayList<String> cocktailsNames;
public ArrayList<Integer> cocktailsImages;
public ArrayList<ArrayList<IngredientItem>> cocktailsIngredients;
ArrayList<Integer> cocktailDefaultImages = new ArrayList<>(Arrays.asList(R.mipmap.cocktails_icone, R.mipmap.blue_lagoon_icone, R.mipmap.red_cocktails_icone));
......@@ -72,7 +73,8 @@ public class Recettes {
ArrayList<IngredientItem> cocktailIngredient = new ArrayList<IngredientItem>();
cocktailIngredient.add(new IngredientItem(infoCocktail[3], Integer.parseInt(infoCocktail[4]), Integer.parseInt(infoCocktail[2])));
cocktailsIngredients.add(cocktailIngredient);
cocktailsImages.add(R.mipmap.cocktails_icone);
int index_random = (int) (Math.random()*cocktailDefaultImages.size());
cocktailsImages.add(cocktailDefaultImages.get(index_random));
}
}
......
app/src/main/red_cocktails_icone-playstore.png

535 KiB

<?xml version="1.0" encoding="utf-8"?>
<vector
android:height="108dp"
android:width="108dp"
android:viewportHeight="108"
android:viewportWidth="108"
xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#3DDC84"
android:pathData="M0,0h108v108h-108z"/>
<path android:fillColor="#00000000" android:pathData="M9,0L9,108"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M19,0L19,108"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M29,0L29,108"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M39,0L39,108"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M49,0L49,108"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M59,0L59,108"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M69,0L69,108"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M79,0L79,108"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M89,0L89,108"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M99,0L99,108"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M0,9L108,9"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M0,19L108,19"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M0,29L108,29"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M0,39L108,39"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M0,49L108,49"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M0,59L108,59"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M0,69L108,69"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M0,79L108,79"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M0,89L108,89"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M0,99L108,99"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M19,29L89,29"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M19,39L89,39"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M19,49L89,49"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M19,59L89,59"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M19,69L89,69"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M19,79L89,79"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M29,19L29,89"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M39,19L39,89"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M49,19L49,89"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M59,19L59,89"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M69,19L69,89"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
<path android:fillColor="#00000000" android:pathData="M79,19L79,89"
android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/>
</vector>
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/red_cocktails_icone_background"/>
<foreground android:drawable="@mipmap/red_cocktails_icone_foreground"/>
</adaptive-icon>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/red_cocktails_icone_background"/>
<foreground android:drawable="@mipmap/red_cocktails_icone_foreground"/>
</adaptive-icon>
\ No newline at end of file
app/src/main/res/layout/items/mipmap-hdpi/red_cocktails_icone.png

11.2 KiB

app/src/main/res/layout/items/mipmap-hdpi/red_cocktails_icone_foreground.png

53.7 KiB

app/src/main/res/layout/items/mipmap-hdpi/red_cocktails_icone_round.png

12.6 KiB

app/src/main/res/layout/items/mipmap-mdpi/red_cocktails_icone.png

5.54 KiB

app/src/main/res/layout/items/mipmap-mdpi/red_cocktails_icone_foreground.png

24.8 KiB

app/src/main/res/layout/items/mipmap-mdpi/red_cocktails_icone_round.png

6.06 KiB

app/src/main/res/layout/items/mipmap-xhdpi/red_cocktails_icone.png

19.4 KiB

app/src/main/res/layout/items/mipmap-xhdpi/red_cocktails_icone_foreground.png

91.4 KiB

app/src/main/res/layout/items/mipmap-xhdpi/red_cocktails_icone_round.png

21.5 KiB

app/src/main/res/layout/items/mipmap-xxhdpi/red_cocktails_icone.png

40.6 KiB

app/src/main/res/layout/items/mipmap-xxhdpi/red_cocktails_icone_foreground.png

190 KiB

app/src/main/res/layout/items/mipmap-xxhdpi/red_cocktails_icone_round.png

44.5 KiB

app/src/main/res/layout/items/mipmap-xxxhdpi/red_cocktails_icone.png

69 KiB

app/src/main/res/layout/items/mipmap-xxxhdpi/red_cocktails_icone_foreground.png

313 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment