Commit 79346b2e authored by rakam's avatar rakam
Browse files

New API (Abandon)

parent 387c0a14
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:gravity="center_horizontal"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity">
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:gravity="center_horizontal"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity">
<EditText
android:id="@+id/number"
......@@ -20,48 +20,48 @@
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:hint="number..."
android:inputType="number" />
android:inputType="number"/>
<Button
android:id="@+id/sendButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="14dp"
android:text="@string/send" />
android:text="@string/send"/>
<View
android:layout_width="match_parent"
android:layout_height="1px"
android:layout_marginTop="14dp"
android:background="#333" />
android:background="#333"/>
<Button
android:id="@+id/simpleButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="14dp"
android:text="Test Simple" />
android:text="Test Simple"/>
<Button
android:id="@+id/doubleButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="14dp"
android:text="Test Double" />
android:text="Test Double"/>
<Button
android:id="@+id/doubleProButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="14dp"
android:text="Test Double Pro" />
android:text="Test Double Pro"/>
<fr.istic.masteru.android.views.SecureDelayButton
android:id="@+id/testButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="14dp"
android:text="Test SecureDelayButton" />
android:text="Test SecureDelayButton"/>
</LinearLayout>
</ScrollView>
......@@ -2,9 +2,9 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:id="@+id/_title"
......@@ -16,7 +16,7 @@
android:text="@string/select_court"
android:textColor="#ffffff"
android:textSize="20sp"
android:textStyle="bold" />
android:textStyle="bold"/>
<Button
android:id="@+id/previousButton"
......@@ -31,7 +31,7 @@
android:text="@string/previous"
android:textColor="#777"
android:textSize="22sp"
android:visibility="visible" />
android:visibility="visible"/>
<Button
android:id="@+id/nextButton"
......@@ -46,7 +46,7 @@
android:text="@string/next"
android:textColor="#777"
android:textSize="22sp"
android:visibility="invisible" />
android:visibility="invisible"/>
<LinearLayout
android:layout_width="match_parent"
......@@ -80,7 +80,7 @@
android:background="@color/light_grey"
android:text="Court Central"
android:textColor="#444"
android:textSize="22sp" />
android:textSize="22sp"/>
<Button
android:id="@+id/court2"
......@@ -91,7 +91,7 @@
android:background="@color/light_grey"
android:text="Court 1"
android:textColor="#444"
android:textSize="22sp" />
android:textSize="22sp"/>
<Button
android:id="@+id/court3"
......@@ -102,7 +102,7 @@
android:background="@color/light_grey"
android:text="Court 2"
android:textColor="#444"
android:textSize="22sp" />
android:textSize="22sp"/>
<Button
android:id="@+id/court4"
......@@ -113,7 +113,7 @@
android:background="@color/light_grey"
android:text="Court 3"
android:textColor="#444"
android:textSize="22sp" />
android:textSize="22sp"/>
</LinearLayout>
......@@ -136,7 +136,7 @@
android:background="@color/light_grey"
android:text="Court 4"
android:textColor="#444"
android:textSize="22sp" />
android:textSize="22sp"/>
<Button
android:id="@+id/court6"
......@@ -147,7 +147,7 @@
android:background="@color/light_grey"
android:text="Court 5"
android:textColor="#444"
android:textSize="22sp" />
android:textSize="22sp"/>
<Button
android:id="@+id/court7"
......@@ -158,7 +158,7 @@
android:background="@color/light_grey"
android:text="Court 6"
android:textColor="#444"
android:textSize="22sp" />
android:textSize="22sp"/>
</LinearLayout>
......
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#dadada">
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#dadada">
<TextView
android:id="@+id/categorie"
......@@ -13,14 +13,14 @@
android:layout_marginTop="4dp"
android:text="MEN'S DOUBLE 1/2 "
android:textSize="18sp"
android:textStyle="bold" />
android:textStyle="bold"/>
<ImageView
android:id="@+id/playerLeft1Photo"
android:layout_width="71dp"
android:layout_height="78dp"
android:layout_margin="8dp"
android:scaleType="centerCrop" />
android:scaleType="centerCrop"/>
<ImageView
......@@ -29,7 +29,7 @@
android:layout_height="78dp"
android:layout_margin="8dp"
android:layout_toRightOf="@id/playerLeft1Photo"
android:scaleType="centerCrop" />
android:scaleType="centerCrop"/>
<TextView
android:id="@+id/playerLeft1NameTV"
......@@ -39,7 +39,7 @@
android:layout_toRightOf="@id/playerLeft2Photo"
android:text="Joueur A1"
android:textSize="20sp"
android:textStyle="bold" />
android:textStyle="bold"/>
<TextView
android:id="@+id/playerLeft2NameTV"
......@@ -49,7 +49,7 @@
android:layout_toRightOf="@id/playerLeft2Photo"
android:text="Joueur A2"
android:textSize="20sp"
android:textStyle="bold" />
android:textStyle="bold"/>
<TextView
android:id="@+id/playerLeftNatTV"
......@@ -57,7 +57,7 @@
android:layout_height="wrap_content"
android:layout_below="@id/playerLeft2NameTV"
android:layout_toRightOf="@id/playerLeft2Photo"
android:text="(SU)" />
android:text="(SU)"/>
<fr.istic.masteru.android.views.SecureDelayButton
android:id="@+id/pointLeftButton"
......@@ -71,7 +71,7 @@
android:paddingRight="50dp"
android:paddingTop="20dp"
android:text="Point"
android:textColor="#ddd" />
android:textColor="#ddd"/>
<ImageView
android:id="@+id/playerRight1Photo"
......@@ -79,7 +79,7 @@
android:layout_height="90dp"
android:layout_alignParentRight="true"
android:layout_margin="8dp"
android:scaleType="centerCrop" />
android:scaleType="centerCrop"/>
<ImageView
android:id="@+id/playerRight2Photo"
......@@ -87,7 +87,7 @@
android:layout_height="90dp"
android:layout_margin="8dp"
android:layout_toLeftOf="@id/playerRight1Photo"
android:scaleType="centerCrop" />
android:scaleType="centerCrop"/>
<TextView
android:id="@+id/playerRight1NameTV"
......@@ -97,7 +97,7 @@
android:layout_toLeftOf="@id/playerRight2Photo"
android:text="Joueur B1"
android:textSize="20sp"
android:textStyle="bold" />
android:textStyle="bold"/>
<TextView
android:id="@+id/playerRight2NameTV"
......@@ -107,7 +107,7 @@
android:layout_toLeftOf="@id/playerRight2Photo"
android:text="Joueur B2"
android:textSize="20sp"
android:textStyle="bold" />
android:textStyle="bold"/>
<TextView
android:id="@+id/playerRightNatTV"
......@@ -115,7 +115,7 @@
android:layout_height="wrap_content"
android:layout_below="@id/playerRight2NameTV"
android:layout_toLeftOf="@id/playerRight2Photo"
android:text="(FR)" />
android:text="(FR)"/>
<fr.istic.masteru.android.views.SecureDelayButton
android:id="@+id/pointRightButton"
......@@ -130,7 +130,7 @@
android:paddingRight="50dp"
android:paddingTop="20dp"
android:text="Point"
android:textColor="#ddd" />
android:textColor="#ddd"/>
<TextView
android:id="@+id/_scoreMiddle"
......@@ -142,7 +142,7 @@
android:layout_marginRight="5dp"
android:text="-"
android:textSize="28sp"
android:textStyle="bold" />
android:textStyle="bold"/>
<TextView
android:id="@+id/scoreLeft"
......@@ -154,7 +154,7 @@
android:layout_toLeftOf="@id/_scoreMiddle"
android:text="0"
android:textSize="28sp"
android:textStyle="bold" />
android:textStyle="bold"/>
<TextView
android:id="@+id/scoreRight"
......@@ -166,7 +166,7 @@
android:layout_toRightOf="@id/_scoreMiddle"
android:text="0"
android:textSize="28sp"
android:textStyle="bold" />
android:textStyle="bold"/>
<ImageView
android:id="@+id/serviceLeft"
......@@ -175,7 +175,7 @@
android:layout_alignBottom="@id/_scoreMiddle"
android:layout_below="@id/playerLeftNatTV"
android:layout_toLeftOf="@id/scoreLeft"
android:src="@drawable/tennis_ball" />
android:src="@drawable/tennis_ball"/>
<ImageView
android:id="@+id/serviceRight"
......@@ -185,7 +185,7 @@
android:layout_below="@id/playerLeftNatTV"
android:layout_toRightOf="@id/scoreRight"
android:src="@drawable/tennis_ball"
android:visibility="gone" />
android:visibility="gone"/>
<View
android:layout_width="1px"
......@@ -193,7 +193,7 @@
android:layout_alignParentBottom="true"
android:layout_below="@id/_scoreMiddle"
android:layout_centerHorizontal="true"
android:background="#999" />
android:background="#999"/>
<Button
android:id="@+id/optionsButton"
......@@ -206,7 +206,7 @@
android:paddingLeft="22dp"
android:paddingRight="22dp"
android:paddingTop="4dp"
android:text="@string/options" />
android:text="@string/options"/>
<RelativeLayout
android:id="@+id/footer"
......@@ -220,7 +220,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginLeft="6dp" />
android:layout_marginLeft="6dp"/>
<Button
......@@ -235,7 +235,7 @@
android:text="« Back to previous point"
android:textColor="@color/white"
android:textSize="18sp"
android:textStyle="bold" />
android:textStyle="bold"/>
<Button
android:id="@+id/gameTime"
......@@ -250,7 +250,7 @@
android:textColor="@color/white"
android:textSize="18sp"
android:textStyle="bold"
android:visibility="invisible" />
android:visibility="invisible"/>
</RelativeLayout>
......
......@@ -2,9 +2,9 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:id="@+id/_title"
......@@ -16,7 +16,7 @@
android:text="@string/first_service"
android:textColor="#ffffff"
android:textSize="20sp"
android:textStyle="bold" />
android:textStyle="bold"/>
<Button
android:id="@+id/previousButton"
......@@ -31,7 +31,7 @@
android:text="@string/previous"
android:textColor="#777"
android:textSize="22sp"
android:visibility="visible" />
android:visibility="visible"/>
<Button
android:id="@+id/nextButton"
......@@ -46,7 +46,7 @@
android:text="@string/next"
android:textColor="#777"
android:textSize="22sp"
android:visibility="invisible" />
android:visibility="invisible"/>
<LinearLayout
android:layout_width="match_parent"
......@@ -68,7 +68,7 @@
android:layout_weight="50"
android:background="@color/light_grey"
android:textColor="#444"
android:textSize="22sp" />
android:textSize="22sp"/>
<Button
android:id="@+id/countryB"
......@@ -77,7 +77,7 @@
android:layout_weight="50"
android:background="@color/light_grey"
android:textColor="#444"
android:textSize="22sp" />
android:textSize="22sp"/>
</LinearLayout>
......
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="20dp"
android:paddingLeft="40dp"
android:paddingRight="40dp"
android:paddingTop="20dp">
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="20dp"
android:paddingLeft="40dp"
android:paddingRight="40dp"
android:paddingTop="20dp">
<TextView
android:id="@+id/_title"
......@@ -14,7 +14,7 @@
android:layout_height="wrap_content"
android:text="Master U 2014"
android:textSize="30sp"
android:textStyle="bold" />
android:textStyle="bold"/>
<LinearLayout
android:layout_width="match_parent"
......@@ -32,7 +32,7 @@
android:layout_weight="50"
android:text="@string/start_match"
android:textColor="#444"
android:textSize="22sp" />
android:textSize="22sp"/>
<Button
android:id="@+id/resumeMatchButton"
......@@ -41,7 +41,7 @@
android:layout_weight="50"
android:text="@string/resume_match"
android:textColor="#444"
android:textSize="22sp" />
android:textSize="22sp"/>
</LinearLayout>
......
......@@ -2,9 +2,9 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:id="@+id/_title"
......@@ -16,7 +16,7 @@
android:text="@string/select_left_team"
android:textColor="#ffffff"
android:textSize="20sp"
android:textStyle="bold" />
android:textStyle="bold"/>
<Button
android:id="@+id/previousButton"
......@@ -31,7 +31,7 @@
android:text="@string/previous"
android:textColor="#777"
android:textSize="22sp"
android:visibility="visible" />
android:visibility="visible"/>
<Button
android:id="@+id/nextButton"
......@@ -46,7 +46,7 @@
android:text="@string/next"
android:textColor="#777"
android:textSize="22sp"
android:visibility="invisible" />
android:visibility="invisible"/>
<LinearLayout
android:layout_width="match_parent"
......@@ -68,7 +68,7 @@
android:layout_weight="50"
android:background="@color/light_grey"
android:textColor="#444"
android:textSize="22sp" />
android:textSize="22sp"/>
<Button
android:id="@+id/countryB"
......@@ -77,7 +77,7 @@
android:layout_weight="50"
android:background="@color/light_grey"
android:textColor="#444"
android:textSize="22sp" />
android:textSize="22sp"/>
</LinearLayout>
......
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_gravity="center_horizontal"
android:background="#eee"
android:gravity="center_horizontal"
android:paddingBottom="10dp"
android:paddingLeft="20dp"
android:paddingRight="20dp"
android:paddingTop="10dp">
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_gravity="center_horizontal"
android:background="#eee"
android:gravity="center_horizontal"
android:paddingBottom="10dp"
android:paddingLeft="20dp"
android:paddingRight="20dp"
android:paddingTop="10dp">
<LinearLayout
android:id="@+id/_header"
......@@ -24,7 +24,7 @@
android:id="@+id/drapeauA"
android:layout_width="100dp"
android:layout_height="40dp"
android:src="@drawable/france" />
android:src="@drawable/france"/>
<TextView
android:id="@+id/paysA"
......@@ -32,7 +32,7 @@
android:layout_height="wrap_content"
android:text="France"
android:textColor="#444"
android:textSize="22sp" />
android:textSize="22sp"/>
<TextView
android:id="@+id/_vs"
......@@ -41,7 +41,7 @@
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:text="vs"
android:textColor="#444" />
android:textColor="#444"/>
<TextView
android:id="@+id/paysB"
......@@ -49,13 +49,13 @@
android:layout_height="wrap_content"
android:text="USA"
android:textColor="#444"
android:textSize="22sp" />
android:textSize="22sp"/>
<ImageView
android:id="@+id/drapeauB"
android:layout_width="100dp"
android:layout_height="40dp"
android:src="@drawable/usa" />
android:src="@drawable/usa"/>
</LinearLayout>
<LinearLayout
......@@ -72,7 +72,7 @@
android:layout_height="wrap_content"
android:text="Simple Homme"
android:textColor="#444"
android:textSize="18sp" />
android:textSize="18sp"/>
<TextView
android:layout_width="wrap_content"
......@@ -81,7 +81,7 @@
android:layout_marginRight="10dp"
android:text="-"
android:textColor="#444"
android:textSize="18sp" />
android:textSize="18sp"/>
<TextView
android:id="@+id/tableau"
......@@ -89,7 +89,7 @@
android:layout_height="wrap_content"
android:text="Quarts de finale"
android:textColor="#444"