BUG: 12876556 Minor changes to test app to make persisting an option. Change-Id: I1b40347878ec5ca44cd717ebfeb544f6c58473b5
179 lines
7.8 KiB
XML
179 lines
7.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical" >
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="100dp">
|
|
<TextView
|
|
android:id="@+id/onstart_textview"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:background="@color/none_received"
|
|
android:gravity="center"
|
|
android:text="@string/onstarttask"/>
|
|
<TextView
|
|
android:id="@+id/onstop_textview"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:background="@color/none_received"
|
|
android:gravity="center"
|
|
android:text="@string/onstoptask"/>
|
|
</LinearLayout>
|
|
<Button
|
|
android:id="@+id/finished_button"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="20dp"
|
|
android:layout_marginBottom="5dp"
|
|
android:onClick="finishJob"
|
|
android:text="@string/finish_job_button_text"/>
|
|
|
|
<TextView
|
|
android:id="@+id/task_params"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/defaultparamtext"
|
|
android:gravity="center"
|
|
android:textSize="20dp"
|
|
|
|
android:padding="15dp"
|
|
android:layout_marginBottom="10dp" />
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/constraints"
|
|
android:layout_margin="15dp"
|
|
android:textSize="18dp"/>
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:layout_marginLeft="10dp">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/connectivity"
|
|
android:layout_marginRight="10dp"/>
|
|
<RadioGroup
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
<RadioButton android:id="@+id/checkbox_any"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/any"/>
|
|
<RadioButton android:id="@+id/checkbox_unmetered"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/unmetered"/>
|
|
</RadioGroup>
|
|
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/timing"/>
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="15dp"
|
|
android:textSize="17dp"
|
|
android:text="@string/delay"/>
|
|
<EditText
|
|
android:id="@+id/delay_time"
|
|
android:layout_width="60dp"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="number"/>
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/deadline"
|
|
android:textSize="17dp"/>
|
|
<EditText
|
|
android:id="@+id/deadline_time"
|
|
android:layout_width="60dp"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="number"/>
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/charging_caption"
|
|
android:layout_marginRight="15dp"/>
|
|
<CheckBox
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:id="@+id/checkbox_charging"
|
|
android:text="@string/charging_text"/>
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/idle_caption"
|
|
android:layout_marginRight="15dp"/>
|
|
<CheckBox
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:id="@+id/checkbox_idle"
|
|
android:text="@string/idle_mode_text"/>
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/persisted_caption"
|
|
android:layout_marginRight="15dp"/>
|
|
<CheckBox
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:id="@+id/checkbox_persisted"
|
|
android:text="@string/persisted_mode_text"/>
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
<Button
|
|
android:id="@+id/schedule_button"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="20dp"
|
|
android:layout_marginLeft="40dp"
|
|
android:layout_marginRight="40dp"
|
|
android:onClick="scheduleJob"
|
|
android:text="@string/schedule_job_button_text"/>
|
|
<Button
|
|
android:id="@+id/cancel_button"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="40dp"
|
|
android:layout_marginRight="40dp"
|
|
android:onClick="cancelAllJobs"
|
|
android:text="@string/cancel_all_jobs_button_text"/>
|
|
</LinearLayout>
|
|
</ScrollView>
|