Victory!
This commit is contained in:
		
							
								
								
									
										5
									
								
								app/src/main/res/drawable/ic_share.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								app/src/main/res/drawable/ic_share.xml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,5 @@ | ||||
| <vector android:height="24dp" android:tint="#FFFFFF" | ||||
|     android:viewportHeight="24.0" android:viewportWidth="24.0" | ||||
|     android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android"> | ||||
|     <path android:fillColor="#FF000000" android:pathData="M18,16.08c-0.76,0 -1.44,0.3 -1.96,0.77L8.91,12.7c0.05,-0.23 0.09,-0.46 0.09,-0.7s-0.04,-0.47 -0.09,-0.7l7.05,-4.11c0.54,0.5 1.25,0.81 2.04,0.81 1.66,0 3,-1.34 3,-3s-1.34,-3 -3,-3 -3,1.34 -3,3c0,0.24 0.04,0.47 0.09,0.7L8.04,9.81C7.5,9.31 6.79,9 6,9c-1.66,0 -3,1.34 -3,3s1.34,3 3,3c0.79,0 1.5,-0.31 2.04,-0.81l7.12,4.16c-0.05,0.21 -0.08,0.43 -0.08,0.65 0,1.61 1.31,2.92 2.92,2.92 1.61,0 2.92,-1.31 2.92,-2.92s-1.31,-2.92 -2.92,-2.92z"/> | ||||
| </vector> | ||||
| @ -25,10 +25,60 @@ | ||||
|                 android:theme="@style/ThemeOverlay.AppCompat.ActionBar" | ||||
|                 app:popupTheme="@style/ThemeOverlay.AppCompat.Light" android:layout_weight="0"/> | ||||
|         <TextView | ||||
|                 android:text="TextView" | ||||
|                 android:layout_width="wrap_content" | ||||
|                 android:layout_height="wrap_content" tools:layout_editor_absoluteY="106dp" | ||||
|                 tools:layout_editor_absoluteX="57dp" android:id="@+id/textView"/> | ||||
|                 android:layout_height="wrap_content" | ||||
|                 android:id="@+id/congrats" | ||||
|                 android:textAppearance="@style/TextAppearance.AppCompat.Headline" | ||||
|                 android:layout_marginTop="13dp" app:layout_constraintTop_toBottomOf="@+id/toolbar" | ||||
|                 android:layout_marginEnd="8dp" app:layout_constraintEnd_toEndOf="parent" | ||||
|                 android:layout_marginRight="8dp" android:layout_marginStart="8dp" | ||||
|                 app:layout_constraintStart_toStartOf="parent" android:layout_marginLeft="8dp" | ||||
|                 android:text="@string/congrats"/> | ||||
|         <TextView | ||||
|                 android:text="@string/score_names" | ||||
|                 android:layout_width="wrap_content" | ||||
|                 android:layout_height="wrap_content" | ||||
|                 android:id="@+id/scoreNames" android:layout_marginTop="8dp" | ||||
|                 app:layout_constraintTop_toBottomOf="@+id/congrats" app:layout_constraintEnd_toEndOf="parent" | ||||
|                 android:layout_marginEnd="8dp" android:layout_marginRight="8dp" | ||||
|                 app:layout_constraintStart_toStartOf="parent" android:layout_marginLeft="8dp" | ||||
|                 android:layout_marginStart="8dp" android:textAppearance="@style/TextAppearance.AppCompat.Large"/> | ||||
|         <TextView | ||||
|                 android:text="@string/previous_matches" | ||||
|                 android:layout_width="wrap_content" | ||||
|                 android:layout_height="wrap_content" | ||||
|                 android:id="@+id/textView3" android:layout_marginTop="24dp" | ||||
|                 app:layout_constraintTop_toBottomOf="@+id/scoreNames" app:layout_constraintEnd_toEndOf="parent" | ||||
|                 android:layout_marginEnd="8dp" android:layout_marginRight="8dp" | ||||
|                 app:layout_constraintStart_toStartOf="parent" android:layout_marginLeft="7dp" | ||||
|                 android:layout_marginStart="7dp" | ||||
|                 android:textAppearance="@style/TextAppearance.AppCompat.Medium" android:textAllCaps="true"/> | ||||
|         <Button | ||||
|                 android:text="@string/new_match" | ||||
|                 android:layout_width="wrap_content" | ||||
|                 android:layout_height="wrap_content" | ||||
|                 android:id="@+id/button3" app:layout_constraintEnd_toEndOf="parent" android:layout_marginEnd="8dp" | ||||
|                 android:layout_marginRight="8dp" android:layout_marginBottom="8dp" | ||||
|                 app:layout_constraintBottom_toBottomOf="parent" android:drawableStart="@drawable/ic_new_match" | ||||
|                 android:onClick="newMatch"/> | ||||
|         <Button | ||||
|                 android:text="@string/share" | ||||
|                 android:layout_width="wrap_content" | ||||
|                 android:layout_height="wrap_content" | ||||
|                 android:id="@+id/button4" android:layout_marginBottom="8dp" | ||||
|                 app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintStart_toStartOf="parent" | ||||
|                 android:layout_marginLeft="8dp" android:layout_marginStart="8dp" | ||||
|                 android:drawableStart="@drawable/ic_share" android:onClick="share"/> | ||||
|         <TextView | ||||
|                 android:text="TextView" | ||||
|                 android:layout_width="0dp" | ||||
|                 android:layout_height="0dp" | ||||
|                 android:id="@+id/previousMatches" app:layout_constraintEnd_toEndOf="parent" | ||||
|                 android:layout_marginEnd="8dp" | ||||
|                 android:layout_marginRight="8dp" app:layout_constraintStart_toStartOf="parent" | ||||
|                 android:layout_marginLeft="8dp" android:layout_marginStart="8dp" android:layout_marginTop="8dp" | ||||
|                 app:layout_constraintTop_toBottomOf="@+id/textView3" android:layout_marginBottom="8dp" | ||||
|                 android:gravity="center_horizontal" app:layout_constraintBottom_toBottomOf="parent"/> | ||||
|  | ||||
|     </android.support.constraint.ConstraintLayout> | ||||
|  | ||||
|  | ||||
| @ -29,4 +29,12 @@ Vous pouvez à tout moment changer la permission dans les paramètres Android." | ||||
|     <string name="button_hint">Cliquez sur le joueur qui a marqué</string> | ||||
|     <string name="redo">Rétablir</string> | ||||
|     <string name="undo">Annuler</string> | ||||
|     <string name="congrats">Bravo %s !</string> | ||||
|     <string name="previous_matches">Matchs précédents</string> | ||||
|     <string name="new_match">Nouveau match</string> | ||||
|     <string name="share">Partager</string> | ||||
|     <string name="victory_speech">%s gagne par %d à %d.</string> | ||||
|     <string name="share_subject">Match Ping Points : %s contre %s</string> | ||||
|     <string name="share_message">"%s contre %s:\n%s a gagné par %s\nPing Points est disponible sur Google Play\n "</string> | ||||
|     <string name="score_only">%d - %d</string> | ||||
| </resources> | ||||
| @ -34,4 +34,13 @@ | ||||
|     <string name="button_hint">Click on the scoring player</string> | ||||
|     <string name="undo">Undo</string> | ||||
|     <string name="redo">Redo</string> | ||||
|     <string name="congrats">Congratulations, %s!</string> | ||||
|     <string name="previous_matches">Previous matches</string> | ||||
|     <string name="new_match">New match</string> | ||||
|     <string name="share">Share</string> | ||||
|     <string name="score_names" translatable="false">%s  %s  %s</string> | ||||
|     <string name="victory_speech">%s wins by %d to %d.</string> | ||||
|     <string name="share_subject">Ping Points Match: %s vs. %s</string> | ||||
|     <string name="share_message">%s vs. %s:\n%s won by %s\nGet Ping Points on Google Play</string> | ||||
|     <string name="score_only">%d - %d</string> | ||||
| </resources> | ||||
|  | ||||
		Reference in New Issue
	
	Block a user