Commit c709e106 authored by rakam's avatar rakam

change save file

parent 5bd15d13
......@@ -8,59 +8,59 @@
</facet>
<facet type="android" name="Android">
<configuration>
<option name="SELECTED_BUILD_VARIANT" value="p22222Debug" />
<option name="SELECTED_BUILD_VARIANT" value="p2222Debug" />
<option name="SELECTED_TEST_ARTIFACT" value="_android_test_" />
<option name="ASSEMBLE_TASK_NAME" value="assembleP22222Debug" />
<option name="COMPILE_JAVA_TASK_NAME" value="compileP22222DebugSources" />
<option name="ASSEMBLE_TEST_TASK_NAME" value="assembleP22222DebugTest" />
<option name="SOURCE_GEN_TASK_NAME" value="generateP22222DebugSources" />
<option name="TEST_SOURCE_GEN_TASK_NAME" value="generateP22222DebugTestSources" />
<option name="ASSEMBLE_TASK_NAME" value="assembleP2222Debug" />
<option name="COMPILE_JAVA_TASK_NAME" value="compileP2222DebugSources" />
<option name="ASSEMBLE_TEST_TASK_NAME" value="assembleP2222DebugTest" />
<option name="SOURCE_GEN_TASK_NAME" value="generateP2222DebugSources" />
<option name="TEST_SOURCE_GEN_TASK_NAME" value="generateP2222DebugTestSources" />
<option name="ALLOW_USER_CONFIGURATION" value="false" />
<option name="MANIFEST_FILE_RELATIVE_PATH" value="/src/main/AndroidManifest.xml" />
<option name="RES_FOLDER_RELATIVE_PATH" value="/src/main/res" />
<option name="RES_FOLDERS_RELATIVE_PATH" value="file://$MODULE_DIR$/src/main/res;file://$MODULE_DIR$/src/p22222/res" />
<option name="RES_FOLDERS_RELATIVE_PATH" value="file://$MODULE_DIR$/src/main/res;file://$MODULE_DIR$/src/p2222/res" />
<option name="ASSETS_FOLDER_RELATIVE_PATH" value="/src/main/assets" />
</configuration>
</facet>
</component>
<component name="NewModuleRootManager" inherit-compiler-output="false">
<output url="file://$MODULE_DIR$/build/intermediates/classes/p22222/debug" />
<output-test url="file://$MODULE_DIR$/build/intermediates/classes/test/p22222/debug" />
<output url="file://$MODULE_DIR$/build/intermediates/classes/p2222/debug" />
<output-test url="file://$MODULE_DIR$/build/intermediates/classes/test/p2222/debug" />
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/r/p22222/debug" isTestSource="false" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/aidl/p22222/debug" isTestSource="false" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/p22222/debug" isTestSource="false" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/rs/p22222/debug" isTestSource="false" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/p22222/debug" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/generated/p22222/debug" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/p22222Debug/res" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/p22222Debug/resources" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/p22222Debug/assets" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/p22222Debug/aidl" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/p22222Debug/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/p22222Debug/jni" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/p22222Debug/rs" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/r/test/p22222/debug" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/aidl/test/p22222/debug" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/test/p22222/debug" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/rs/test/p22222/debug" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/test/p22222/debug" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/generated/test/p22222/debug" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/p22222/res" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/p22222/resources" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/p22222/assets" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/p22222/aidl" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/p22222/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/p22222/jni" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/p22222/rs" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTestP22222/res" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTestP22222/resources" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTestP22222/assets" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTestP22222/aidl" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTestP22222/java" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTestP22222/jni" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTestP22222/rs" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/r/p2222/debug" isTestSource="false" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/aidl/p2222/debug" isTestSource="false" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/p2222/debug" isTestSource="false" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/rs/p2222/debug" isTestSource="false" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/p2222/debug" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/generated/p2222/debug" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/p2222Debug/res" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/p2222Debug/resources" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/p2222Debug/assets" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/p2222Debug/aidl" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/p2222Debug/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/p2222Debug/jni" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/p2222Debug/rs" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/r/test/p2222/debug" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/aidl/test/p2222/debug" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/test/p2222/debug" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/rs/test/p2222/debug" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/test/p2222/debug" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/generated/test/p2222/debug" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/p2222/res" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/p2222/resources" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/p2222/assets" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/p2222/aidl" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/p2222/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/p2222/jni" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/p2222/rs" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTestP2222/res" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTestP2222/resources" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTestP2222/assets" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTestP2222/aidl" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTestP2222/java" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTestP2222/jni" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTestP2222/rs" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/debug/res" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/debug/resources" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/debug/assets" type="java-resource" />
......
......@@ -24,6 +24,10 @@ android {
applicationId "fr.istic.master.android.p22222"
versionName "AceCream 1.1 p22222"
}
p32222 {
applicationId "fr.istic.master.android.p32222"
versionName "AceCream 1.1 p32222"
}
}
buildTypes {
release {
......
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="fr.istic.masteru.android">
package="fr.istic.masteru.android">
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<application
android:name=".AceCreamApplication"
......@@ -17,25 +17,25 @@
android:screenOrientation="sensorLandscape"
android:windowSoftInputMode="stateHidden|adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".activities.MatchSetupActivity"
android:screenOrientation="sensorLandscape"
android:theme="@android:style/Theme.Holo.Light.NoActionBar"/>
android:theme="@android:style/Theme.Holo.Light.NoActionBar" />
<activity
android:name=".activities.SingleMatchActivity"
android:screenOrientation="sensorLandscape"
android:theme="@android:style/Theme.Holo.Light.NoActionBar"/>
android:theme="@android:style/Theme.Holo.Light.NoActionBar" />
<activity
android:name=".activities.DoubleMatchActivity"
android:screenOrientation="sensorLandscape"
android:theme="@android:style/Theme.Holo.Light.NoActionBar"/>
android:theme="@android:style/Theme.Holo.Light.NoActionBar" />
</application>
......
......@@ -6,6 +6,7 @@ import android.app.FragmentTransaction;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.WindowManager;
import com.google.gson.JsonObject;
......@@ -150,7 +151,13 @@ public class MatchSetupActivity extends Activity implements OnMatchSelectedListe
@Override
public void onCompleted(Exception e, JsonObject result) {
if (e != null || result != null && result.get("code").getAsInt() != 0) {
startMatch(dialogToClose);
Handler handler = new Handler();
handler.postDelayed(new Runnable() {
@Override
public void run() {
startMatch(dialogToClose);
}
}, 1000);
} else {
dialogToClose.cancel();
if (refereeingType == Constants.SIMPLE) {
......
......@@ -10,6 +10,8 @@ import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import fr.istic.masteru.android.R;
public class FileManager {
/* Création du fichier */
......@@ -86,9 +88,11 @@ public class FileManager {
return false;
}
public static File getDocumentsStorageDir(Context context, String fileName) {
// Get the directory for the user's public pictures directory.
File file = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_NOTIFICATIONS), fileName);
public static File getSaveFile(Context context) {
String root = Environment.getExternalStorageDirectory().toString();
File myDir = new File(root + "/acecream");
myDir.mkdirs();
File file = new File(myDir, "save_" + context.getString(R.string.app_name));
return file;
}
......@@ -98,7 +102,7 @@ public class FileManager {
BufferedWriter bufferWritter;
File file;
if (isExternalStorageWritable()) {
file = getDocumentsStorageDir(context, "save.txt");
file = getSaveFile(context);
try {
fileWriter = new FileWriter(file, true);
......@@ -115,14 +119,13 @@ public class FileManager {
}
public static String ReadScore(Context context) {
FileReader fileReader;
BufferedReader bufferedReader;
File file;
String data = null;
if (isExternalStorageWritable()) {
file = getDocumentsStorageDir(context, "save.txt");
file = getSaveFile(context);
try {
fileReader = new FileReader(file);
......@@ -143,8 +146,8 @@ public class FileManager {
public static void deleteFile(Context context) {
boolean result;
File file;
file = getDocumentsStorageDir(context, "save.txt");
result = file.delete();
file = getSaveFile(context);
file.delete();
}
public static void deleteLast(Context context) {
......@@ -158,7 +161,7 @@ public class FileManager {
public static boolean fileExist(Context context) {
File file;
file = getDocumentsStorageDir(context, "save.txt");
file = getSaveFile(context);
return file.exists();
}
}
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/decelerate_interpolator">
android:interpolator="@android:anim/decelerate_interpolator">
<translate
android:duration="800"
android:fromXDelta="-20%p"
android:fromYDelta="0%"
android:toXDelta="0%"
android:toYDelta="0%"/>
android:toYDelta="0%" />
<alpha
android:duration="@integer/slide_duration"
android:fromAlpha="0"
android:toAlpha="1"/>
android:toAlpha="1" />
</set>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/decelerate_interpolator">
android:interpolator="@android:anim/decelerate_interpolator">
<translate
android:duration="800"
android:fromXDelta="20%p"
android:fromYDelta="0%"
android:toXDelta="0%"
android:toYDelta="0%"/>
android:toYDelta="0%" />
<alpha
android:duration="@integer/slide_duration"
android:fromAlpha="0"
android:toAlpha="1"/>
android:toAlpha="1" />
</set>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/accelerate_interpolator">
android:interpolator="@android:anim/accelerate_interpolator">
<translate
android:duration="800"
android:fromXDelta="0%"
android:fromYDelta="0%"
android:toXDelta="-20%p"
android:toYDelta="0%"/>
android:toYDelta="0%" />
<alpha
android:duration="@integer/slide_duration"
android:fromAlpha="1"
android:toAlpha="0"/>
android:toAlpha="0" />
</set>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/accelerate_interpolator">
android:interpolator="@android:anim/accelerate_interpolator">
<translate
android:duration="800"
android:fromXDelta="0%"
android:fromYDelta="0%"
android:toXDelta="20%p"
android:toYDelta="0%"/>
android:toYDelta="0%" />
<alpha
android:duration="@integer/slide_duration"
android:fromAlpha="1"
android:toAlpha="0"/>
android:toAlpha="0" />
</set>
\ No newline at end of file
......@@ -3,17 +3,17 @@
<set xmlns:android="http://schemas.android.com/apk/res/android">
<objectAnimator xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="500"
android:propertyName="translationX"
android:valueFrom="1000"
android:valueTo="0"
android:valueType="floatType"/>
android:duration="500"
android:propertyName="translationX"
android:valueFrom="1000"
android:valueTo="0"
android:valueType="floatType" />
<objectAnimator
android:duration="500"
android:propertyName="alpha"
android:valueFrom="0.0"
android:valueTo="1.0"
android:valueType="floatType"/>
android:valueType="floatType" />
</set>
\ No newline at end of file
......@@ -3,16 +3,16 @@
<set xmlns:android="http://schemas.android.com/apk/res/android">
<objectAnimator xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="500"
android:propertyName="translationX"
android:valueFrom="-1000"
android:valueTo="0"
android:valueType="floatType"/>
android:duration="500"
android:propertyName="translationX"
android:valueFrom="-1000"
android:valueTo="0"
android:valueType="floatType" />
<objectAnimator
android:duration="500"
android:propertyName="alpha"
android:valueFrom="0.0"
android:valueTo="1.0"
android:valueType="floatType"/>
android:valueType="floatType" />
</set>
\ No newline at end of file
......@@ -3,16 +3,16 @@
<set xmlns:android="http://schemas.android.com/apk/res/android">
<objectAnimator xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="500"
android:propertyName="translationX"
android:valueFrom="0"
android:valueTo="-1000"
android:valueType="floatType"/>
android:duration="500"
android:propertyName="translationX"
android:valueFrom="0"
android:valueTo="-1000"
android:valueType="floatType" />
<objectAnimator
android:duration="500"
android:propertyName="alpha"
android:valueFrom="1.0"
android:valueTo="0"
android:valueType="floatType"/>
android:valueType="floatType" />
</set>
\ No newline at end of file
......@@ -3,16 +3,16 @@
<set xmlns:android="http://schemas.android.com/apk/res/android">
<objectAnimator xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="500"
android:propertyName="translationX"
android:valueFrom="0"
android:valueTo="1000"
android:valueType="floatType"/>
android:duration="500"
android:propertyName="translationX"
android:valueFrom="0"
android:valueTo="1000"
android:valueType="floatType" />
<objectAnimator
android:duration="500"
android:propertyName="alpha"
android:valueFrom="1.0"
android:valueTo="0"
android:valueType="floatType"/>
android:valueType="floatType" />
</set>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="#bbb" android:state_enabled="false"/>
<item android:color="#eee" android:state_selected="true"/>
<item android:color="#555" android:state_checked="true"/>
<item android:color="#555" android:state_pressed="true"/>
<item android:color="#555"/>
<item android:color="#bbb" android:state_enabled="false" />
<item android:color="#eee" android:state_selected="true" />
<item android:color="#555" android:state_checked="true" />
<item android:color="#555" android:state_pressed="true" />
<item android:color="#555" />
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/ac_button_disabled" android:state_enabled="false"/>
<item android:drawable="@drawable/ac_button_selected" android:state_selected="true"/>
<item android:drawable="@drawable/ac_button_pressed" android:state_checked="true"/>
<item android:drawable="@drawable/ac_button_pressed" android:state_pressed="true"/>
<item android:drawable="@drawable/ac_button_normal"/>
<item android:drawable="@drawable/ac_button_disabled" android:state_enabled="false" />
<item android:drawable="@drawable/ac_button_selected" android:state_selected="true" />
<item android:drawable="@drawable/ac_button_pressed" android:state_checked="true" />
<item android:drawable="@drawable/ac_button_pressed" android:state_pressed="true" />
<item android:drawable="@drawable/ac_button_normal" />
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
android:shape="rectangle">
<solid android:color="#888"/>
<solid android:color="#888" />
<stroke
android:width="1dp"
android:color="#888"/>
android:color="#888" />
<corners
android:bottomRightRadius="3dp"
android:bottomLeftRadius="3dp"
android:topLeftRadius="3dp"
android:topRightRadius="3dp"/>
android:topRightRadius="3dp" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
android:shape="rectangle">
<solid android:color="@android:color/transparent"/>
<solid android:color="@android:color/transparent" />
<stroke
android:width="1dp"
android:color="#aaa"/>
android:color="#aaa" />
<corners
android:bottomRightRadius="3dp"
android:bottomLeftRadius="3dp"
android:topLeftRadius="3dp"
android:topRightRadius="3dp"/>
android:topRightRadius="3dp" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
android:shape="rectangle">
<solid android:color="#eee"/>
<solid android:color="#eee" />
<stroke
android:width="1dp"
android:color="#aaa"/>
android:color="#aaa" />
<corners
android:bottomRightRadius="3dp"
android:bottomLeftRadius="3dp"
android:topLeftRadius="3dp"
android:topRightRadius="3dp"/>
android:topRightRadius="3dp" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
android:shape="rectangle">
<solid android:color="#a98258"/>
<solid android:color="#a98258" />
<stroke
android:width="1dp"
android:color="#888"/>
android:color="#888" />
<corners
android:bottomRightRadius="3dp"
android:bottomLeftRadius="3dp"
android:topLeftRadius="3dp"
android:topRightRadius="3dp"/>
android:topRightRadius="3dp" />
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@color/darker_grey" android:state_selected="true"/>
<item android:drawable="@color/darker_grey" android:state_checked="true"/>
<item android:drawable="@color/darker_grey" android:state_pressed="true"/>
<item android:drawable="@color/dark_grey"/>
<item android:drawable="@color/darker_grey" android:state_selected="true" />
<item android:drawable="@color/darker_grey" android:state_checked="true" />
<item android:drawable="@color/darker_grey" android:state_pressed="true" />
<item android:drawable="@color/dark_grey" />
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@color/grey_button" android:state_selected="true"/>
<item android:drawable="@color/grey_button" android:state_checked="true"/>
<item android:drawable="@color/grey_button" android:state_pressed="true"/>
<item android:drawable="@color/light_grey_button"/>
<item android:drawable="@color/grey_button" android:state_selected="true" />
<item android:drawable="@color/grey_button" android:state_checked="true" />
<item android:drawable="@color/grey_button" android:state_pressed="true" />
<item android:drawable="@color/light_grey_button" />
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/left_button_pressed" android:state_selected="true"/>
<item android:drawable="@drawable/left_button_pressed" android:state_checked="true"/>
<item android:drawable="@drawable/left_button_pressed" android:state_pressed="true"/>
<item android:drawable="@drawable/left_button_pressed" android:state_enabled="false"/>
<item android:drawable="@drawable/left_button_normal"/>
<item android:drawable="@drawable/left_button_pressed" android:state_selected="true" />
<item android:drawable="@drawable/left_button_pressed" android:state_checked="true" />
<item android:drawable="@drawable/left_button_pressed" android:state_pressed="true" />
<item android:drawable="@drawable/left_button_pressed" android:state_enabled="false" />
<item android:drawable="@drawable/left_button_normal" />
</selector>
\ No newline at end of file