Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
development
Commits
58ce6f06
Commit
58ce6f06
authored
13 years ago
by
Dianne Hackborn
Browse files
Options
Download
Email Patches
Plain Diff
A few little tweaks to system ui flag demos.
Change-Id: Ib4c3b45e8d67200a2b4f3a8b0daee198b24bad0f
parent
285ee4b3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
samples/ApiDemos/AndroidManifest.xml
samples/ApiDemos/AndroidManifest.xml
+1
-1
samples/ApiDemos/res/layout/content_browser.xml
samples/ApiDemos/res/layout/content_browser.xml
+2
-2
samples/ApiDemos/src/com/example/android/apis/view/VideoPlayerActivity.java
...rc/com/example/android/apis/view/VideoPlayerActivity.java
+2
-1
No files found.
samples/ApiDemos/AndroidManifest.xml
View file @
58ce6f06
...
...
@@ -2225,7 +2225,7 @@
<activity
android:name=
".view.ContentBrowserActivity"
android:label=
"Views/System UI Visibility/Content Browser"
android:theme=
"@android:style/Theme.Holo.Light"
android:theme=
"@android:style/Theme.Holo.Light
.DarkActionBar
"
android:uiOptions=
"splitActionBarWhenNarrow"
>
<intent-filter>
<action
android:name=
"android.intent.action.MAIN"
/>
...
...
This diff is collapsed.
Click to expand it.
samples/ApiDemos/res/layout/content_browser.xml
View file @
58ce6f06
...
...
@@ -34,9 +34,9 @@
android:layout_height=
"wrap_content"
android:layout_gravity=
"top|center_horizontal"
android:textColor=
"#ff000000"
android:background=
"#c0f
0f0f0
"
android:background=
"#c0f
fffff
"
android:textAppearance=
"?android:attr/textAppearanceLarge"
android:gravity=
"
left
"
android:gravity=
"
center
"
android:padding=
"16dp"
android:text=
"A title goes here"
/>
...
...
This diff is collapsed.
Click to expand it.
samples/ApiDemos/src/com/example/android/apis/view/VideoPlayerActivity.java
View file @
58ce6f06
...
...
@@ -147,6 +147,7 @@ public class VideoPlayerActivity extends Activity
void
setPlayPaused
(
boolean
paused
)
{
mPaused
=
paused
;
mPlayButton
.
setText
(
paused
?
R
.
string
.
play
:
R
.
string
.
pause
);
setKeepScreenOn
(!
paused
);
setNavVisibility
(
true
);
}
...
...
@@ -166,7 +167,7 @@ public class VideoPlayerActivity extends Activity
h
.
removeCallbacks
(
mNavHider
);
if
(!
mMenusOpen
&&
!
mPaused
)
{
// If the menus are open or play is paused, we will not auto-hide.
h
.
postDelayed
(
mNavHider
,
30
00
);
h
.
postDelayed
(
mNavHider
,
15
00
);
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment