diff options
author | Roman Birg <roman@cyngn.com> | 2014-06-02 15:59:48 -0700 |
---|---|---|
committer | Ricardo Cerqueira <ricardo@cyngn.com> | 2015-11-12 13:57:23 +0000 |
commit | c82a981a36b9b14f8ea534243dbf3a1d2f7b2970 (patch) | |
tree | ab7019a4b0eb89f91c319552b74b6128f1e0bba2 /res | |
parent | e99158c230c2b84f982b94800cd36dd050206226 (diff) | |
download | android_packages_apps_Screencast-c82a981a36b9b14f8ea534243dbf3a1d2f7b2970.tar.gz android_packages_apps_Screencast-c82a981a36b9b14f8ea534243dbf3a1d2f7b2970.tar.bz2 android_packages_apps_Screencast-c82a981a36b9b14f8ea534243dbf3a1d2f7b2970.zip |
Screencast: add stop button
When a user went back into the screencast app after starting a
screencast, the UI would not reflect the recording status and would
allow the user to start another recording, putting the app in a
strange state.
Now, we add a stop button which reflects the state. After starting the
screencast, hide the activity. But if a user returns to the activity
while recording, allow them to stop and start another recording.
Change-Id: Ia549a04475cbddea84a2258e525ad55a22c4a0f2
Signed-off-by: Roman Birg <roman@cyngn.com>
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/main.xml | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/res/layout/main.xml b/res/layout/main.xml index 77a5ad5..bd4a002 100644 --- a/res/layout/main.xml +++ b/res/layout/main.xml @@ -14,10 +14,23 @@ android:layout_width="wrap_content" android:layout_height="wrap_content"/> - <Button - android:id="@+id/start_screencast" - android:layout_marginTop="20dp" - android:text="@string/start_screencast" - android:layout_width="wrap_content" - android:layout_height="wrap_content"/> + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center_horizontal" + android:layout_marginTop="20dp"> + <Button + android:id="@+id/start_screencast" + android:text="@string/start_screencast" + android:layout_width="wrap_content" + android:layout_height="wrap_content"/> + + <Button + android:id="@+id/stop_screencast" + android:text="@string/stop" + android:enabled="false" + android:layout_width="wrap_content" + android:layout_height="wrap_content"/> + </LinearLayout> + </LinearLayout>
\ No newline at end of file |