another commit
							
								
								
									
										9
									
								
								.idea/assetWizardSettings.xml
									
									
									
										generated
									
									
									
								
							
							
						
						| @ -63,6 +63,7 @@ | |||||||
|                                           <PersistentState> |                                           <PersistentState> | ||||||
|                                             <option name="values"> |                                             <option name="values"> | ||||||
|                                               <map> |                                               <map> | ||||||
|  |                                                 <entry key="scalingPercent" value="90" /> | ||||||
|                                                 <entry key="trimmed" value="true" /> |                                                 <entry key="trimmed" value="true" /> | ||||||
|                                               </map> |                                               </map> | ||||||
|                                             </option> |                                             </option> | ||||||
| @ -74,8 +75,8 @@ | |||||||
|                                   <option name="values"> |                                   <option name="values"> | ||||||
|                                     <map> |                                     <map> | ||||||
|                                       <entry key="backgroundAssetType" value="COLOR" /> |                                       <entry key="backgroundAssetType" value="COLOR" /> | ||||||
|                                       <entry key="backgroundColor" value="ffffff" /> |                                       <entry key="backgroundColor" value="3c3a41" /> | ||||||
|                                       <entry key="foregroundImage" value="C:\Users\adima\AndroidStudioProjects\PingPoints\app\src\main\res\drawable\icon.xml" /> |                                       <entry key="foregroundImage" value="C:\Users\adima\AndroidStudioProjects\PingPoints\app\src\main\res\drawable\ic_ping_pong_table.xml" /> | ||||||
|                                     </map> |                                     </map> | ||||||
|                                   </option> |                                   </option> | ||||||
|                                 </PersistentState> |                                 </PersistentState> | ||||||
| @ -132,8 +133,8 @@ | |||||||
|                             <entry key="assetSourceType" value="FILE" /> |                             <entry key="assetSourceType" value="FILE" /> | ||||||
|                             <entry key="autoMirrored" value="true" /> |                             <entry key="autoMirrored" value="true" /> | ||||||
|                             <entry key="color" value="ffffff" /> |                             <entry key="color" value="ffffff" /> | ||||||
|                             <entry key="outputName" value="ic_right_service" /> |                             <entry key="outputName" value="ic_ping_pong_table" /> | ||||||
|                             <entry key="sourceFile" value="C:\Users\adima\Downloads\table-tennis (1).svg" /> |                             <entry key="sourceFile" value="C:\Users\adima\Downloads\ping-pong (3).svg" /> | ||||||
|                           </map> |                           </map> | ||||||
|                         </option> |                         </option> | ||||||
|                       </PersistentState> |                       </PersistentState> | ||||||
|  | |||||||
| @ -8,11 +8,11 @@ | |||||||
|         android:label="@string/app_name" |         android:label="@string/app_name" | ||||||
|         android:roundIcon="@mipmap/ic_launcher_round" |         android:roundIcon="@mipmap/ic_launcher_round" | ||||||
|         android:supportsRtl="true" |         android:supportsRtl="true" | ||||||
|         android:theme="@style/PingPoints"> |         android:theme="@style/Theme.AppCompat.NoActionBar"> | ||||||
|         <activity |         <activity | ||||||
|             android:name=".MainActivity" |             android:name=".MainActivity" | ||||||
|             android:screenOrientation="sensorLandscape" |             android:screenOrientation="sensorLandscape" | ||||||
|             android:theme="@style/PingPoints"> |             android:theme="@style/Theme.AppCompat.NoActionBar"> | ||||||
|             <intent-filter> |             <intent-filter> | ||||||
|                 <action android:name="android.intent.action.MAIN" /> |                 <action android:name="android.intent.action.MAIN" /> | ||||||
|                 <category android:name="android.intent.category.LAUNCHER" /> |                 <category android:name="android.intent.category.LAUNCHER" /> | ||||||
| @ -20,7 +20,7 @@ | |||||||
|         </activity> |         </activity> | ||||||
|         <activity |         <activity | ||||||
|             android:name=".CreditsActivity" |             android:name=".CreditsActivity" | ||||||
|             android:theme="@style/PingPoints"> |             android:theme="@style/Theme.AppCompat.NoActionBar"> | ||||||
|         </activity> |         </activity> | ||||||
|     </application> |     </application> | ||||||
|  |  | ||||||
|  | |||||||
| Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 9.2 KiB | 
| @ -62,12 +62,12 @@ class EndOfMatchDialog: DialogFragment() { | |||||||
|                         startActivity(sendIntent) |                         startActivity(sendIntent) | ||||||
|                     } |                     } | ||||||
|             ) |             ) | ||||||
|             setNegativeButton( |             /*setNegativeButton( | ||||||
|                     R.string.quit_button, |                     R.string.quit_button, | ||||||
|                     DialogInterface.OnClickListener { dialog, id -> |                     DialogInterface.OnClickListener { dialog, id -> | ||||||
|                         activity?.finish() |                         activity?.finish() | ||||||
|                     } |                     } | ||||||
|             ) |             )*/ | ||||||
|         }.create() |         }.create() | ||||||
|     } |     } | ||||||
| } | } | ||||||
| @ -47,7 +47,7 @@ class StarterNameDialog : DialogFragment() { | |||||||
|             setView(namesView) |             setView(namesView) | ||||||
|             setPositiveButton(R.string.go_button) { dialog, id -> |             setPositiveButton(R.string.go_button) { dialog, id -> | ||||||
|                 mainActivity?.setStarterName( |                 mainActivity?.setStarterName( | ||||||
|                         when ((namesView.findViewById(R.id.radioGroup) as RadioGroup)?.checkedRadioButtonId) { |                         when ((namesView.findViewById(R.id.radioGroup) as RadioGroup).checkedRadioButtonId) { | ||||||
|                             R.id.radioLeftPlayer -> Side.LEFT |                             R.id.radioLeftPlayer -> Side.LEFT | ||||||
|                             else -> Side.RIGHT |                             else -> Side.RIGHT | ||||||
|                         }, |                         }, | ||||||
| @ -55,7 +55,7 @@ class StarterNameDialog : DialogFragment() { | |||||||
|                 ) |                 ) | ||||||
|                 dismiss() |                 dismiss() | ||||||
|             } |             } | ||||||
|             setNegativeButton(R.string.quit_button) { dialog, id -> activity?.finish() } |             //setNegativeButton(R.string.quit_button) { dialog, id -> activity?.finish() } | ||||||
|         }.create() |         }.create() | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  | |||||||
| @ -1,5 +1,7 @@ | |||||||
| <vector android:autoMirrored="true" android:height="24dp" | <vector | ||||||
|     android:viewportHeight="285.876" android:viewportWidth="285.876" |     xmlns:android="http://schemas.android.com/apk/res/android" | ||||||
|     android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android"> |     android:autoMirrored="true" | ||||||
|  |     android:height="48dp" android:width="48dp" | ||||||
|  |     android:viewportHeight="285.876" android:viewportWidth="285.876"> | ||||||
|     <path android:fillColor="#FFFFFF" android:pathData="M261.207,76.226c-8.573,9.43 -20.236,13.134 -27.668,9.293c0.605,6.751 -3.436,13.287 -10.141,15.544c-18.231,6.139 -37.408,9.21 -56.583,9.21c-10.257,0 -20.512,-0.885 -30.624,-2.643c15.289,20.576 39.358,32.753 65.156,32.753c8.284,0 15,6.716 15,15s-6.716,15 -15,15c-32.82,0 -63.598,-14.394 -84.591,-39.029l-26.497,44.097c30.164,25.599 53.935,55.258 70.763,88.411c3.749,7.387 0.801,16.415 -6.587,20.165c-2.176,1.104 -4.494,1.627 -6.777,1.627c-5.47,0 -10.742,-3.002 -13.388,-8.214c-14.607,-28.78 -35.188,-54.695 -61.282,-77.281c-3.667,27.708 -13.553,54.145 -29.537,78.86c-2.871,4.438 -7.69,6.855 -12.609,6.855c-2.792,0 -5.614,-0.778 -8.132,-2.406c-6.957,-4.499 -8.935,-13.785 -4.436,-20.741c17.485,-27.035 26.365,-56.402 26.365,-87.284v-3.058c0,-4.645 0.568,-9.303 3.111,-13.535L92.94,83.63c6.162,-13.495 19.867,-12.797 26.78,-11.028l0.941,0.311c30.074,9.922 63.158,9.825 93.164,-0.28c4.559,-1.533 9.328,-0.743 13.052,1.715c-0.392,-6.599 2.662,-14.617 8.781,-21.348c9.621,-10.583 23.14,-13.963 30.195,-7.549C272.908,51.864 270.828,65.643 261.207,76.226zM244.508,138.119c-4.768,0 -8.632,3.865 -8.632,8.632s3.865,8.632 8.632,8.632c4.768,0 8.632,-3.865 8.632,-8.632S249.276,138.119 244.508,138.119zM121.3,62.781c17.337,0 31.391,-14.054 31.391,-31.391S138.636,0 121.3,0c-17.337,0 -31.391,14.054 -31.391,31.391S103.963,62.781 121.3,62.781z"/> |     <path android:fillColor="#FFFFFF" android:pathData="M261.207,76.226c-8.573,9.43 -20.236,13.134 -27.668,9.293c0.605,6.751 -3.436,13.287 -10.141,15.544c-18.231,6.139 -37.408,9.21 -56.583,9.21c-10.257,0 -20.512,-0.885 -30.624,-2.643c15.289,20.576 39.358,32.753 65.156,32.753c8.284,0 15,6.716 15,15s-6.716,15 -15,15c-32.82,0 -63.598,-14.394 -84.591,-39.029l-26.497,44.097c30.164,25.599 53.935,55.258 70.763,88.411c3.749,7.387 0.801,16.415 -6.587,20.165c-2.176,1.104 -4.494,1.627 -6.777,1.627c-5.47,0 -10.742,-3.002 -13.388,-8.214c-14.607,-28.78 -35.188,-54.695 -61.282,-77.281c-3.667,27.708 -13.553,54.145 -29.537,78.86c-2.871,4.438 -7.69,6.855 -12.609,6.855c-2.792,0 -5.614,-0.778 -8.132,-2.406c-6.957,-4.499 -8.935,-13.785 -4.436,-20.741c17.485,-27.035 26.365,-56.402 26.365,-87.284v-3.058c0,-4.645 0.568,-9.303 3.111,-13.535L92.94,83.63c6.162,-13.495 19.867,-12.797 26.78,-11.028l0.941,0.311c30.074,9.922 63.158,9.825 93.164,-0.28c4.559,-1.533 9.328,-0.743 13.052,1.715c-0.392,-6.599 2.662,-14.617 8.781,-21.348c9.621,-10.583 23.14,-13.963 30.195,-7.549C272.908,51.864 270.828,65.643 261.207,76.226zM244.508,138.119c-4.768,0 -8.632,3.865 -8.632,8.632s3.865,8.632 8.632,8.632c4.768,0 8.632,-3.865 8.632,-8.632S249.276,138.119 244.508,138.119zM121.3,62.781c17.337,0 31.391,-14.054 31.391,-31.391S138.636,0 121.3,0c-17.337,0 -31.391,14.054 -31.391,31.391S103.963,62.781 121.3,62.781z"/> | ||||||
| </vector> | </vector> | ||||||
|  | |||||||
							
								
								
									
										5
									
								
								app/src/main/res/drawable/ic_new_match.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						| @ -0,0 +1,5 @@ | |||||||
|  | <vector android:autoMirrored="true" android:height="24dp" | ||||||
|  |     android:viewportHeight="430.556" android:viewportWidth="430.556" | ||||||
|  |     android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android"> | ||||||
|  |     <path android:fillColor="#FFFFFF" android:pathData="M139.689,93.625c0.552,-4.94 5.006,-8.496 9.944,-7.945c4.94,0.552 8.497,5.004 7.945,9.943c-0.398,3.566 3.715,14.81 21.66,34.326c16.172,17.59 39.202,37.165 64.845,55.121c17.287,12.104 35.165,23.035 51.702,31.609c4.413,2.288 6.135,7.721 3.847,12.133c-1.602,3.089 -4.743,4.859 -7.997,4.859c-1.396,0 -2.811,-0.325 -4.135,-1.012c-17.231,-8.935 -35.814,-20.293 -53.741,-32.846C184.855,165.572 136.803,119.458 139.689,93.625zM52.83,91.751c-4.802,-1.301 -9.739,1.543 -11.036,6.341c-5.789,21.428 -4.187,44.349 4.51,64.541c2.622,6.087 5.887,11.938 9.705,17.391l25.55,36.492c11.818,16.878 28.379,29.397 47.893,36.205c0.981,0.342 1.981,0.505 2.964,0.505c3.721,0 7.203,-2.326 8.498,-6.038c1.637,-4.693 -0.84,-9.825 -5.533,-11.463c-15.926,-5.556 -29.438,-15.768 -39.076,-29.533l-25.551,-36.493c-3.116,-4.45 -5.78,-9.223 -7.917,-14.186c-7.098,-16.478 -8.399,-35.203 -3.666,-52.727C60.468,97.988 57.629,93.047 52.83,91.751zM306.703,198.433c3.112,0 6.139,-1.616 7.805,-4.507c2.483,-4.306 1.005,-9.81 -3.301,-12.292c-11.505,-6.634 -23.224,-14.118 -34.83,-22.244c-21.658,-15.165 -41.119,-31.282 -56.278,-46.611c-3.495,-3.532 -9.192,-3.565 -12.728,-0.07c-3.534,3.495 -3.566,9.193 -0.07,12.728c15.907,16.085 36.223,32.925 58.752,48.698c12.036,8.428 24.203,16.197 36.163,23.094C303.632,198.044 305.177,198.433 306.703,198.433zM179.468,105.23c4.071,2.851 9.683,1.86 12.535,-2.21l27.736,-39.611c16.175,-23.102 40.497,-38.542 68.484,-43.477c27.986,-4.938 56.124,1.255 79.227,17.431c42.257,29.588 57.098,86.902 34.521,133.317c-2.174,4.47 -0.313,9.855 4.157,12.03c1.268,0.616 2.609,0.908 3.93,0.908c3.336,0 6.542,-1.863 8.1,-5.065c12.747,-26.206 15.785,-56.35 8.555,-84.876c-7.311,-28.845 -24.69,-54.08 -48.939,-71.059C350.733,3.685 317.821,-3.568 285.097,2.205c-32.722,5.77 -61.17,23.839 -80.103,50.879l-27.736,39.611C174.406,96.767 175.396,102.379 179.468,105.23zM349.668,380.735c2.235,3.19 3.094,7.069 2.416,10.92c-0.679,3.851 -2.812,7.203 -6.006,9.439l-37.92,26.552c-2.546,1.781 -5.469,2.636 -8.363,2.637c-4.613,0 -9.154,-2.171 -11.994,-6.224l-23.765,-33.94c-0.015,-0.021 -0.03,-0.042 -0.045,-0.063c-0.015,-0.021 -0.029,-0.042 -0.044,-0.063l-26.687,-38.114c-0.039,-0.053 -0.077,-0.105 -0.114,-0.159c-0.037,-0.054 -0.074,-0.107 -0.11,-0.161l-10.572,-15.099c-2.851,-4.071 -1.861,-9.684 2.21,-12.534c4.072,-2.853 9.684,-1.862 12.535,2.21l5.521,7.886l39.754,-27.834c4.072,-2.852 9.684,-1.862 12.535,2.21l26.714,38.153c0.044,0.061 0.088,0.121 0.131,0.183s0.085,0.123 0.126,0.186L349.668,380.735zM273.574,372.358l32.381,-22.673l-16.519,-23.593l-32.381,22.673L273.574,372.358zM332.984,388.288l-16.705,-23.858l-32.381,22.673l16.706,23.859L332.984,388.288zM424.708,240.113c0,29.289 -23.828,53.117 -53.117,53.117c-15.028,0 -29.419,-6.41 -39.483,-17.587c-8.792,-9.765 -13.634,-22.383 -13.634,-35.53c0,-29.289 23.828,-53.117 53.117,-53.117S424.708,210.823 424.708,240.113zM406.708,240.113c0,-19.363 -15.753,-35.117 -35.117,-35.117s-35.117,15.754 -35.117,35.117c0,8.691 3.2,17.032 9.011,23.485c6.655,7.393 16.171,11.632 26.106,11.632C390.955,275.23 406.708,259.476 406.708,240.113zM118.872,288.815c3.721,0 7.203,-2.326 8.498,-6.038c1.637,-4.693 -0.841,-9.825 -5.534,-11.462c-21.089,-7.355 -38.982,-20.88 -51.746,-39.112L37.09,185.075c-16.176,-23.103 -22.366,-51.238 -17.431,-79.226c4.935,-27.988 20.377,-52.31 43.48,-68.486c36.03,-25.229 84.706,-25.36 121.124,-0.324c4.097,2.815 9.7,1.778 12.515,-2.318c2.816,-4.097 1.778,-9.699 -2.318,-12.516C151.887,-7.061 94.963,-6.895 52.815,22.619C25.774,41.552 7.703,70.001 1.933,102.724s1.479,65.635 20.413,92.676l32.998,47.126c14.943,21.346 35.886,37.178 60.564,45.785C116.889,288.653 117.888,288.815 118.872,288.815zM236.791,289.807l-16.505,23.571c-0.001,0.001 -0.001,0.002 -0.002,0.003c-0.001,0.002 -0.002,0.004 -0.003,0.005l-77.493,110.67c-2.839,4.056 -7.382,6.229 -11.995,6.229c-2.894,0 -5.815,-0.855 -8.361,-2.636l-37.924,-26.557c-3.194,-2.235 -5.327,-5.587 -6.006,-9.437c-0.679,-3.85 0.18,-7.729 2.417,-10.923l23.721,-33.877c0.028,-0.041 0.057,-0.083 0.085,-0.124c0.029,-0.042 0.059,-0.083 0.088,-0.123l26.655,-38.067c0.033,-0.049 0.066,-0.097 0.1,-0.146c0.034,-0.049 0.068,-0.097 0.103,-0.145l26.631,-38.032c0.036,-0.054 0.073,-0.107 0.111,-0.161c0.037,-0.054 0.076,-0.107 0.114,-0.16l16.389,-23.406c-17.779,-23.404 -26.645,-52.261 -25.064,-82.017c0.263,-4.964 4.5,-8.781 9.465,-8.51c4.963,0.264 8.773,4.501 8.51,9.465c-1.461,27.494 7.484,54.077 25.188,74.851c2.659,3.12 2.874,7.643 0.522,11l-15.216,21.73l32.381,22.674l15.216,-21.73c2.351,-3.357 6.672,-4.702 10.515,-3.271c20.884,7.781 44.326,8.711 66.005,2.615c4.785,-1.345 9.755,1.443 11.1,6.229s-1.443,9.754 -6.228,11.1C284.255,297.106 259.48,296.782 236.791,289.807zM146.689,387.102l-32.38,-22.673l-16.707,23.859l32.38,22.673L146.689,387.102zM173.533,348.767l-32.381,-22.674l-16.519,23.591l32.381,22.674L173.533,348.767zM200.377,310.429l-32.38,-22.673l-16.52,23.593l32.38,22.673L200.377,310.429z"/> | ||||||
|  | </vector> | ||||||
| @ -1,5 +1,7 @@ | |||||||
| <vector android:autoMirrored="true" android:height="24dp" | <vector | ||||||
|     android:viewportHeight="285.876" android:viewportWidth="285.876" |     xmlns:android="http://schemas.android.com/apk/res/android" | ||||||
|     android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android"> |     android:autoMirrored="true" | ||||||
|  |     android:height="48dp" android:width="48dp" | ||||||
|  |     android:viewportHeight="285.876" android:viewportWidth="285.876"> | ||||||
|     <path android:fillColor="#ffffff" android:pathData="m24.693,76.226c8.573,9.43 20.236,13.134 27.668,9.293 -0.605,6.751 3.436,13.287 10.141,15.544 18.231,6.139 37.408,9.21 56.583,9.21 10.257,0 20.512,-0.885 30.624,-2.643 -15.289,20.576 -39.358,32.753 -65.156,32.753 -8.284,0 -15,6.716 -15,15 -0,8.284 6.716,15 15,15 32.82,0 63.598,-14.394 84.591,-39.029l26.497,44.097c-30.164,25.599 -53.935,55.258 -70.763,88.411 -3.749,7.387 -0.801,16.415 6.587,20.165 2.176,1.104 4.494,1.627 6.777,1.627 5.47,0 10.742,-3.002 13.388,-8.214 14.607,-28.78 35.188,-54.695 61.282,-77.281 3.667,27.708 13.553,54.145 29.537,78.86 2.871,4.438 7.69,6.855 12.609,6.855 2.792,0 5.614,-0.778 8.132,-2.406 6.957,-4.499 8.935,-13.785 4.436,-20.741 -17.485,-27.035 -26.365,-56.402 -26.365,-87.284l-0,-3.058c-0,-4.645 -0.568,-9.303 -3.111,-13.535L192.96,83.63c-6.162,-13.495 -19.867,-12.797 -26.78,-11.028l-0.941,0.311c-30.074,9.922 -63.158,9.825 -93.164,-0.28 -4.559,-1.533 -9.328,-0.743 -13.052,1.715 0.392,-6.599 -2.662,-14.617 -8.781,-21.348 -9.621,-10.583 -23.14,-13.963 -30.195,-7.549 -7.055,6.413 -4.975,20.192 4.646,30.775zM41.392,138.119c4.768,0 8.632,3.865 8.632,8.632 -0,4.767 -3.865,8.632 -8.632,8.632 -4.768,0 -8.632,-3.865 -8.632,-8.632 -0,-4.767 3.864,-8.632 8.632,-8.632zM164.6,62.781c-17.337,0 -31.391,-14.054 -31.391,-31.391C133.209,14.053 147.264,0 164.6,0 181.937,0 195.991,14.054 195.991,31.391c-0,17.337 -14.054,31.39 -31.391,31.39z"/> |     <path android:fillColor="#ffffff" android:pathData="m24.693,76.226c8.573,9.43 20.236,13.134 27.668,9.293 -0.605,6.751 3.436,13.287 10.141,15.544 18.231,6.139 37.408,9.21 56.583,9.21 10.257,0 20.512,-0.885 30.624,-2.643 -15.289,20.576 -39.358,32.753 -65.156,32.753 -8.284,0 -15,6.716 -15,15 -0,8.284 6.716,15 15,15 32.82,0 63.598,-14.394 84.591,-39.029l26.497,44.097c-30.164,25.599 -53.935,55.258 -70.763,88.411 -3.749,7.387 -0.801,16.415 6.587,20.165 2.176,1.104 4.494,1.627 6.777,1.627 5.47,0 10.742,-3.002 13.388,-8.214 14.607,-28.78 35.188,-54.695 61.282,-77.281 3.667,27.708 13.553,54.145 29.537,78.86 2.871,4.438 7.69,6.855 12.609,6.855 2.792,0 5.614,-0.778 8.132,-2.406 6.957,-4.499 8.935,-13.785 4.436,-20.741 -17.485,-27.035 -26.365,-56.402 -26.365,-87.284l-0,-3.058c-0,-4.645 -0.568,-9.303 -3.111,-13.535L192.96,83.63c-6.162,-13.495 -19.867,-12.797 -26.78,-11.028l-0.941,0.311c-30.074,9.922 -63.158,9.825 -93.164,-0.28 -4.559,-1.533 -9.328,-0.743 -13.052,1.715 0.392,-6.599 -2.662,-14.617 -8.781,-21.348 -9.621,-10.583 -23.14,-13.963 -30.195,-7.549 -7.055,6.413 -4.975,20.192 4.646,30.775zM41.392,138.119c4.768,0 8.632,3.865 8.632,8.632 -0,4.767 -3.865,8.632 -8.632,8.632 -4.768,0 -8.632,-3.865 -8.632,-8.632 -0,-4.767 3.864,-8.632 8.632,-8.632zM164.6,62.781c-17.337,0 -31.391,-14.054 -31.391,-31.391C133.209,14.053 147.264,0 164.6,0 181.937,0 195.991,14.054 195.991,31.391c-0,17.337 -14.054,31.39 -31.391,31.39z"/> | ||||||
| </vector> | </vector> | ||||||
|  | |||||||
| @ -7,123 +7,141 @@ | |||||||
|     tools:context=".MainActivity" |     tools:context=".MainActivity" | ||||||
|     tools:layout_editor_absoluteY="73dp"> |     tools:layout_editor_absoluteY="73dp"> | ||||||
|  |  | ||||||
|     <android.support.v7.widget.Toolbar |     <FrameLayout | ||||||
|         android:id="@+id/toolbar" |  | ||||||
|         android:layout_width="match_parent" |         android:layout_width="match_parent" | ||||||
|         android:layout_height="?attr/actionBarSize" |         android:layout_height="match_parent"> | ||||||
|         android:background="?attr/colorPrimary" |  | ||||||
|         android:elevation="4dp" |  | ||||||
|         android:theme="@style/ThemeOverlay.AppCompat.ActionBar" |  | ||||||
|         app:popupTheme="@style/ThemeOverlay.AppCompat.Light"/> |  | ||||||
|  |  | ||||||
|     <LinearLayout |  | ||||||
|             android:id="@+id/linearLayoutText" |  | ||||||
|             android:layout_width="0dp" |  | ||||||
|             android:layout_height="wrap_content" |  | ||||||
|             android:layout_marginEnd="8dp" |  | ||||||
|             android:layout_marginLeft="8dp" |  | ||||||
|             android:layout_marginRight="8dp" |  | ||||||
|             android:layout_marginStart="8dp" |  | ||||||
|             android:layout_marginTop="8dp" |  | ||||||
|             android:orientation="horizontal" |  | ||||||
|             app:layout_constraintEnd_toEndOf="parent" |  | ||||||
|             app:layout_constraintStart_toStartOf="parent" |  | ||||||
|             app:layout_constraintTop_toTopOf="parent"> |  | ||||||
|  |  | ||||||
|         <TextView |  | ||||||
|                 android:id="@+id/textService" |  | ||||||
|                 android:layout_width="match_parent" |  | ||||||
|                 android:layout_height="wrap_content" |  | ||||||
|                 android:layout_marginEnd="8dp" |  | ||||||
|                 android:layout_marginStart="8dp" |  | ||||||
|                 android:layout_weight="1" |  | ||||||
|                 android:paddingLeft="16dp" |  | ||||||
|                 android:paddingRight="16dp" |  | ||||||
|                 android:textAppearance="@style/TextAppearance.AppCompat.Large" |  | ||||||
|                 app:layout_constraintBottom_toTopOf="@+id/linearLayoutButtons" |  | ||||||
|                 app:layout_constraintEnd_toEndOf="parent" |  | ||||||
|                 app:layout_constraintHorizontal_bias="1.0" |  | ||||||
|                 app:layout_constraintStart_toEndOf="@+id/textScore" |  | ||||||
|                 app:layout_constraintTop_toTopOf="parent" /> |  | ||||||
|  |  | ||||||
|             <TextView |  | ||||||
|                 android:id="@+id/textScore" |  | ||||||
|                 android:layout_width="match_parent" |  | ||||||
|                 android:layout_height="wrap_content" |  | ||||||
|                 android:layout_marginLeft="8dp" |  | ||||||
|                 android:layout_marginStart="8dp" |  | ||||||
|                 android:layout_weight="1" |  | ||||||
|                 android:paddingLeft="16dp" |  | ||||||
|                 android:paddingRight="16dp" |  | ||||||
|                 android:textAppearance="@style/TextAppearance.AppCompat.Large" |  | ||||||
|                 app:layout_constraintStart_toStartOf="parent" |  | ||||||
|                 app:layout_constraintTop_toTopOf="parent" /> |  | ||||||
|         </LinearLayout> |  | ||||||
|  |  | ||||||
|         <LinearLayout |         <LinearLayout | ||||||
|             android:id="@+id/linearLayoutButtons" |             android:layout_width="match_parent" | ||||||
|             android:layout_width="0dp" |             android:layout_height="match_parent" | ||||||
|             android:layout_height="0dp" |             android:orientation="vertical"> | ||||||
|             android:layout_marginBottom="8dp" |  | ||||||
|             android:layout_marginEnd="8dp" |  | ||||||
|             android:layout_marginLeft="8dp" |  | ||||||
|             android:layout_marginRight="8dp" |  | ||||||
|             android:layout_marginStart="8dp" |  | ||||||
|             android:layout_marginTop="8dp" |  | ||||||
|             android:orientation="horizontal" |  | ||||||
|             app:layout_constraintBottom_toBottomOf="parent" |  | ||||||
|             app:layout_constraintEnd_toEndOf="parent" |  | ||||||
|             app:layout_constraintStart_toStartOf="parent" |  | ||||||
|             app:layout_constraintTop_toBottomOf="@+id/linearLayoutText"> |  | ||||||
|  |  | ||||||
|             <Button |             <android.support.v7.widget.Toolbar | ||||||
|                 android:id="@+id/buttonLeftPlayer" |                 android:id="@+id/toolbar" | ||||||
|                 style="@style/Base.Widget.AppCompat.Button.Colored" |  | ||||||
|                 android:layout_width="match_parent" |                 android:layout_width="match_parent" | ||||||
|                 android:layout_height="match_parent" |                 android:layout_height="?attr/actionBarSize" | ||||||
|                 android:layout_marginBottom="8dp" |                 android:layout_marginBottom="8dp" | ||||||
|  |                 android:background="@color/colorPrimary" | ||||||
|  |                 android:elevation="4dp" | ||||||
|  |                 android:theme="@style/ThemeOverlay.AppCompat.ActionBar" | ||||||
|  |                 app:layout_constraintBottom_toTopOf="@+id/linearLayoutText" | ||||||
|  |                 app:popupTheme="@style/ThemeOverlay.AppCompat.Light" /> | ||||||
|  |  | ||||||
|  |             <LinearLayout | ||||||
|  |                 android:id="@+id/linearLayoutText" | ||||||
|  |                 android:layout_width="match_parent" | ||||||
|  |                 android:layout_height="wrap_content" | ||||||
|                 android:layout_marginEnd="8dp" |                 android:layout_marginEnd="8dp" | ||||||
|                 android:layout_marginLeft="8dp" |                 android:layout_marginLeft="8dp" | ||||||
|                 android:layout_marginRight="8dp" |                 android:layout_marginRight="8dp" | ||||||
|                 android:layout_marginStart="8dp" |                 android:layout_marginStart="8dp" | ||||||
|                 android:layout_marginTop="8dp" |                 android:orientation="horizontal" | ||||||
|                 android:layout_weight="1" |  | ||||||
|                 android:bufferType="spannable" |  | ||||||
|                 android:drawableLeft="@drawable/ic_left_service" |  | ||||||
|                 android:onClick="onClickLeftPlayer" |  | ||||||
|                 android:textAllCaps="false" |  | ||||||
|                 android:textAppearance="@style/TextAppearance.AppCompat.Button" |  | ||||||
|                 android:textSize="24sp" |  | ||||||
|                 android:textStyle="bold" |  | ||||||
|                 app:layout_constraintBottom_toTopOf="@+id/textScore" |  | ||||||
|                 app:layout_constraintEnd_toStartOf="@+id/buttonRightPlayer" |  | ||||||
|                 app:layout_constraintHorizontal_chainStyle="spread_inside" |  | ||||||
|                 app:layout_constraintStart_toStartOf="parent" |  | ||||||
|                 app:layout_constraintTop_toBottomOf="@+id/textService" /> |  | ||||||
|  |  | ||||||
|             <Button |  | ||||||
|                 android:id="@+id/buttonRightPlayer" |  | ||||||
|                 style="@style/Widget.AppCompat.Button.Colored" |  | ||||||
|                 android:layout_width="match_parent" |  | ||||||
|                 android:layout_height="match_parent" |  | ||||||
|                 android:layout_marginBottom="8dp" |  | ||||||
|                 android:layout_marginEnd="8dp" |  | ||||||
|                 android:layout_marginLeft="8dp" |  | ||||||
|                 android:layout_marginRight="8dp" |  | ||||||
|                 android:layout_marginStart="8dp" |  | ||||||
|                 android:layout_marginTop="8dp" |  | ||||||
|                 android:layout_weight="1" |  | ||||||
|                 android:bufferType="spannable" |  | ||||||
|                 android:drawableRight="@drawable/ic_relaunch" |  | ||||||
|                 android:onClick="onClickRightPlayer" |  | ||||||
|                 android:textAllCaps="false" |  | ||||||
|                 android:textAppearance="@style/TextAppearance.AppCompat.Button" |  | ||||||
|                 android:textSize="24sp" |  | ||||||
|                 android:textStyle="bold" |  | ||||||
|                 app:layout_constraintBottom_toTopOf="@+id/textScore" |  | ||||||
|                 app:layout_constraintEnd_toEndOf="parent" |                 app:layout_constraintEnd_toEndOf="parent" | ||||||
|                 app:layout_constraintStart_toEndOf="@+id/buttonLeftPlayer" |                 app:layout_constraintStart_toStartOf="parent" | ||||||
|                 app:layout_constraintTop_toBottomOf="@+id/textService" /> |                 tools:layout_editor_absoluteY="8dp"> | ||||||
|  |  | ||||||
|  |                 <TextView | ||||||
|  |                     android:id="@+id/textService" | ||||||
|  |                     android:layout_width="match_parent" | ||||||
|  |                     android:layout_height="wrap_content" | ||||||
|  |                     android:layout_marginEnd="8dp" | ||||||
|  |                     android:layout_marginStart="8dp" | ||||||
|  |                     android:layout_weight="1" | ||||||
|  |                     android:paddingLeft="16dp" | ||||||
|  |                     android:paddingRight="16dp" | ||||||
|  |                     android:textAppearance="@style/TextAppearance.AppCompat.Large" | ||||||
|  |                     app:layout_constraintBottom_toTopOf="@+id/linearLayoutButtons" | ||||||
|  |                     app:layout_constraintEnd_toEndOf="parent" | ||||||
|  |                     app:layout_constraintHorizontal_bias="1.0" | ||||||
|  |                     app:layout_constraintStart_toEndOf="@+id/textScore" | ||||||
|  |                     app:layout_constraintTop_toTopOf="parent" | ||||||
|  |                     tools:text="@string/service" /> | ||||||
|  |  | ||||||
|  |                 <TextView | ||||||
|  |                     android:id="@+id/textScore" | ||||||
|  |                     android:layout_width="match_parent" | ||||||
|  |                     android:layout_height="wrap_content" | ||||||
|  |                     android:layout_marginLeft="8dp" | ||||||
|  |                     android:layout_marginStart="8dp" | ||||||
|  |                     android:layout_weight="1" | ||||||
|  |                     android:paddingLeft="16dp" | ||||||
|  |                     android:paddingRight="16dp" | ||||||
|  |                     android:textAppearance="@style/TextAppearance.AppCompat.Large" | ||||||
|  |                     app:layout_constraintStart_toStartOf="parent" | ||||||
|  |                     app:layout_constraintTop_toTopOf="parent" | ||||||
|  |                     tools:text="@string/score" /> | ||||||
|  |             </LinearLayout> | ||||||
|  |  | ||||||
|  |             <LinearLayout | ||||||
|  |                 android:id="@+id/linearLayoutButtons" | ||||||
|  |                 android:layout_width="match_parent" | ||||||
|  |                 android:layout_height="match_parent" | ||||||
|  |                 android:layout_marginBottom="8dp" | ||||||
|  |                 android:layout_marginEnd="8dp" | ||||||
|  |                 android:layout_marginLeft="8dp" | ||||||
|  |                 android:layout_marginRight="8dp" | ||||||
|  |                 android:layout_marginStart="8dp" | ||||||
|  |                 android:layout_marginTop="8dp" | ||||||
|  |                 android:orientation="horizontal" | ||||||
|  |                 app:layout_constraintBottom_toBottomOf="parent" | ||||||
|  |                 app:layout_constraintEnd_toEndOf="parent" | ||||||
|  |                 app:layout_constraintStart_toStartOf="parent" | ||||||
|  |                 app:layout_constraintTop_toBottomOf="@+id/linearLayoutText"> | ||||||
|  |  | ||||||
|  |                 <Button | ||||||
|  |                     android:id="@+id/buttonLeftPlayer" | ||||||
|  |                     style="@style/Base.Widget.AppCompat.Button.Colored" | ||||||
|  |                     android:layout_width="match_parent" | ||||||
|  |                     android:layout_height="match_parent" | ||||||
|  |                     android:layout_marginBottom="8dp" | ||||||
|  |                     android:layout_marginEnd="8dp" | ||||||
|  |                     android:layout_marginLeft="8dp" | ||||||
|  |                     android:layout_marginRight="8dp" | ||||||
|  |                     android:layout_marginStart="8dp" | ||||||
|  |                     android:layout_marginTop="8dp" | ||||||
|  |                     android:layout_weight="1" | ||||||
|  |                     android:background="@color/colorAccent" | ||||||
|  |                     android:bufferType="spannable" | ||||||
|  |                     android:drawableLeft="@drawable/ic_left_service" | ||||||
|  |                     android:onClick="onClickLeftPlayer" | ||||||
|  |                     android:textAllCaps="false" | ||||||
|  |                     android:textAppearance="@style/TextAppearance.AppCompat.Button" | ||||||
|  |                     android:textSize="24sp" | ||||||
|  |                     android:textStyle="bold" | ||||||
|  |                     app:layout_constraintBottom_toTopOf="@+id/textScore" | ||||||
|  |                     app:layout_constraintEnd_toStartOf="@+id/buttonRightPlayer" | ||||||
|  |                     app:layout_constraintHorizontal_chainStyle="spread_inside" | ||||||
|  |                     app:layout_constraintStart_toStartOf="parent" | ||||||
|  |                     app:layout_constraintTop_toBottomOf="@+id/textService" | ||||||
|  |                     tools:text="@string/button_text" /> | ||||||
|  |  | ||||||
|  |                 <Button | ||||||
|  |                     android:id="@+id/buttonRightPlayer" | ||||||
|  |                     style="@style/Widget.AppCompat.Button.Colored" | ||||||
|  |                     android:layout_width="match_parent" | ||||||
|  |                     android:layout_height="match_parent" | ||||||
|  |                     android:layout_marginBottom="8dp" | ||||||
|  |                     android:layout_marginEnd="8dp" | ||||||
|  |                     android:layout_marginLeft="8dp" | ||||||
|  |                     android:layout_marginRight="8dp" | ||||||
|  |                     android:layout_marginStart="8dp" | ||||||
|  |                     android:layout_marginTop="8dp" | ||||||
|  |                     android:layout_weight="1" | ||||||
|  |                     android:background="@color/colorAccent" | ||||||
|  |                     android:bufferType="spannable" | ||||||
|  |                     android:onClick="onClickRightPlayer" | ||||||
|  |                     android:textAllCaps="false" | ||||||
|  |                     android:textAppearance="@style/TextAppearance.AppCompat.Button" | ||||||
|  |                     android:textSize="24sp" | ||||||
|  |                     android:textStyle="bold" | ||||||
|  |                     app:layout_constraintBottom_toTopOf="@+id/textScore" | ||||||
|  |                     app:layout_constraintEnd_toEndOf="parent" | ||||||
|  |                     app:layout_constraintStart_toEndOf="@+id/buttonLeftPlayer" | ||||||
|  |                     app:layout_constraintTop_toBottomOf="@+id/textService" | ||||||
|  |                     tools:text="@string/button_text" /> | ||||||
|  |             </LinearLayout> | ||||||
|         </LinearLayout> |         </LinearLayout> | ||||||
|  |  | ||||||
|  |     </FrameLayout> | ||||||
|  |  | ||||||
| </android.support.constraint.ConstraintLayout> | </android.support.constraint.ConstraintLayout> | ||||||
| @ -1,10 +1,16 @@ | |||||||
| <menu xmlns:android="http://schemas.android.com/apk/res/android" | <menu xmlns:app="http://schemas.android.com/apk/res-auto" | ||||||
|     xmlns:app="http://schemas.android.com/apk/res-auto"> |     xmlns:android="http://schemas.android.com/apk/res/android"> | ||||||
|  |  | ||||||
|  |     <item | ||||||
|  |         android:id="@+id/action_new_match" | ||||||
|  |         android:icon="@drawable/ic_new_match" | ||||||
|  |         android:title="@string/new_match" | ||||||
|  |         app:showAsAction="ifRoom" /> | ||||||
|  |  | ||||||
|     <item |     <item | ||||||
|         android:id="@+id/action_about" |         android:id="@+id/action_about" | ||||||
|         android:icon="@drawable/ic_about" |         android:icon="@drawable/ic_about" | ||||||
|         android:title="@string/about" |         android:title="@string/about" | ||||||
|         app:showAsAction="ifRoom"/> |         app:showAsAction="ifRoom" /> | ||||||
|  |  | ||||||
| </menu> | </menu> | ||||||
| Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 1.2 KiB | 
| Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 3.0 KiB | 
| Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 1.0 KiB | 
| Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 2.0 KiB | 
| Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 1.6 KiB | 
| Before Width: | Height: | Size: 8.8 KiB After Width: | Height: | Size: 4.1 KiB | 
| Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 2.3 KiB | 
| Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 6.0 KiB | 
| Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 3.2 KiB | 
| Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 8.7 KiB | 
| @ -1,6 +1,6 @@ | |||||||
| <?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||||||
| <resources> | <resources> | ||||||
|     <color name="colorPrimary">#4caf50</color> |     <color name="colorPrimary">#016DF5</color> | ||||||
|     <color name="colorPrimaryDark">#009688</color> |     <color name="colorPrimaryDark">#004aa7</color> | ||||||
|     <color name="colorAccent">#69f0ae</color> |     <color name="colorAccent">#0088FF</color> | ||||||
| </resources> | </resources> | ||||||
| @ -1,4 +1,4 @@ | |||||||
| <?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||||||
| <resources> | <resources> | ||||||
|     <color name="ic_launcher_background">#FFFFFF</color> |     <color name="ic_launcher_background">#3C3A41</color> | ||||||
| </resources> | </resources> | ||||||
| @ -5,7 +5,7 @@ | |||||||
|     <string name="info">Click on the scoring player</string> |     <string name="info">Click on the scoring player</string> | ||||||
|     <string name="service">Service: %s</string> |     <string name="service">Service: %s</string> | ||||||
|     <string name="score">Score: %d - %d</string> |     <string name="score">Score: %d - %d</string> | ||||||
|     <string name="button_text" translatable="false">%s <br /> <br /> <big> <big> %d </big> </big></string> |     <string name="button_text" translatable="false">%s <br /> <br /> <big> <big> %d </big> </big></string> | ||||||
|     <string name="end_match_dialog_title">Congratulations, %s!</string> |     <string name="end_match_dialog_title">Congratulations, %s!</string> | ||||||
|     <string-array name="default_players_names"> |     <string-array name="default_players_names"> | ||||||
|         <item>Player 1</item> |         <item>Player 1</item> | ||||||
| @ -16,9 +16,9 @@ | |||||||
|     <string name="name">Name</string> |     <string name="name">Name</string> | ||||||
|     <string name="share_button">Share</string> |     <string name="share_button">Share</string> | ||||||
|     <string name="share_subject">Ping Points Match: %s vs. %s</string> |     <string name="share_subject">Ping Points Match: %s vs. %s</string> | ||||||
|     <string name="share_message">%s vs. %s: %s won by %d to %d Get Ping Points on Google Play</string> |     <string name="share_message">%s vs. %s:\n%s won by %d to %d\n\nGet Ping Points on Google Play</string> | ||||||
|     <string name="radioText" translatable="false"></string> |     <string name="radioText" translatable="false"></string> | ||||||
|     <string name="PingPointsCredits">Ping Points by Adrien Malingrey</string> |     <string name="PingPointsCredits">Ping Points by Adrien Malingrey</string> | ||||||
|     <string name="iconCredits"><div>Icons made by <a href="http://www.freepik.com" title="Freepik">Freepik</a> from <a href="https://www.flaticon.com/" title="Flaticon">www.flaticon.com</a> is licensed by <a href="http://creativecommons.org/licenses/by/3.0/" title="Creative Commons BY 3.0" target="_blank">CC 3.0 BY</a></div></string> |     <string name="iconCredits">Icons made by <a href="http://www.freepik.com" title="Freepik">Freepik</a> from <a href="https://www.flaticon.com/" title="Flaticon">www.flaticon.com</a> is licensed by <a href="http://creativecommons.org/licenses/by/3.0/" title="Creative Commons BY 3.0" target="_blank">CC 3.0 BY</a></string> | ||||||
|     <string name="about">About</string> |     <string name="about">About</string> | ||||||
| </resources> | </resources> | ||||||
|  | |||||||
| @ -1,11 +0,0 @@ | |||||||
| <resources> |  | ||||||
|  |  | ||||||
|     <!-- Base application theme. --> |  | ||||||
|     <style name="PingPoints" parent="Theme.AppCompat.NoActionBar"> |  | ||||||
|         <!-- Customize your theme here. --> |  | ||||||
|         <item name="colorPrimary">@color/colorPrimary</item> |  | ||||||
|         <item name="colorPrimaryDark">@color/colorPrimaryDark</item> |  | ||||||
|         <item name="colorAccent">@color/colorAccent</item> |  | ||||||
|     </style> |  | ||||||
|  |  | ||||||
| </resources> |  | ||||||