Home
last modified time | relevance | path

Searched refs:bar (Results 1 – 25 of 266) sorted by relevance

1234567891011

/frameworks/base/docs/html/training/appbar/
Dindex.jd16 <li><a href="http://www.google.com/design/spec/layout/structure.html#structure-app-bar">
24 The <em>app bar</em>, also known as the <em>action bar</em>, is one of the most
27 users. Using the app bar makes your app consistent with other Android apps,
30 The key functions of the app bar
55 android.support.v7.widget.Toolbar} widget as an app bar. There are other ways
56 to implement an app bar—for example, some themes set up an {@link
57 android.app.ActionBar} as an app bar by default—but using the appcompat
58 {@link android.support.v7.widget.Toolbar} makes it easy to set up an app bar
60 customize your app bar later on as your app develops.
72 activity, and set it as the activity's app bar.
[all …]
Dsetting-up.jd28 In its most basic form, the action bar displays the title for the activity on
30 form, the app bar provides useful information to the users, and helps to give
38 <p class="img-caption"><strong>Figure 1.</strong> An app bar with the app
44 as an app bar. However, app bar features have gradually been added to the
61 bar doesn't support material design unless the device is running Android 5.0
68 as your activity's app bar:
87 that uses a {@link android.support.v7.widget.Toolbar} as an app bar.
96 {@link android.app.ActionBar} class to provide the app bar. For example:
130 since you are using it as an app bar.
138 sets the toolbar as the app bar for the activity. For example:
[all …]
Dactions.jd37 The app bar allows you to add buttons for user actions. This feature lets you
46 Space in the app bar is limited. If an app declares more actions than can
47 fit in the app bar, the app bar send the excess actions to an
49 be shown in the overflow menu, instead of being displayed on the app bar.
58 <strong>Figure 1.</strong> An app bar with a single action button and an
68 add actions to the action bar, create a new XML file in your project's
75 element for each item you want to include in the action bar, as shown in this
99 should be shown as a button on the app bar. If you set
101 if there is room in the app bar for it; if there is not enough room, excess
104 overflow menu, not displayed in the app bar.
[all …]
/frameworks/base/docs/html/training/system-ui/
Dnavigation.jd43 <p>This lesson describes how to hide the navigation bar, which was introduced in
47 navigation bar, you should design your app to hide the status bar
53 <img src="{@docRoot}images/training/navigation-bar.png"
55 <p class="img-caption"><strong>Figure 1.</strong> Navigation bar.</p>
61 <p>You can hide the navigation bar using the
63 the navigation bar and the status bar:</p>
65 // Hide both the navigation bar and the status bar.
67 // a general rule, you should design your app to hide the status bar whenever you
68 // hide the navigation bar.
76 <li>With this approach, touching anywhere on the screen causes the navigation bar (and
[all …]
Dstatus.jd44 This lesson describes how to hide the status bar on different versions of
45 Android. Hiding the status bar (and optionally, the navigation bar) lets the
51 Figure 1 shows an app with a visible status bar:
56 <p class="img-caption"><strong>Figure 1.</strong> Visible status bar.</p>
59 Figure 2 shows an app with a hidden status bar. Note that the action bar is hidden too.
60 You should never show the action bar without the status bar.
65 <p class="img-caption"><strong>Figure 2.</strong> Hidden status bar.</p>
69 <p>You can hide the status bar on Android 4.0 (API level 14) and lower by setting
72 manifest file is the preferred approach if the status bar should always remain
94 This approach makes it easier to hide and show the status bar as the user interacts with
[all …]
Dvisibility.jd64 // adjustments to your UI, such as showing the action bar or
68 // adjustments to your UI, such as hiding the action bar or
74 <p>It's generally good practice to keep your UI in sync with changes in system bar
75 visibility. For example, you could use this listener to hide and show the action bar in
76 concert with the status bar hiding and showing.</p>
Ddim.jd49 visually recede. As soon as the user touches either the status bar or the navigation bar area of
66 <p>As soon as the user touches the status or navigation bar, the flag is cleared,
70 <p>Figure 1 shows a gallery image in which the navigation bar is dimmed (note that the Gallery app
71 completely hides the status bar; it doesn't dim it). Notice that the navigation bar (right
Dindex.jd66 bar, and [2] navigation bar.</p>
74 can temporarily dim the system bar icons for a less distracting experience,
100 Learn how to hide the status bar on different versions of Android.
106 Learn how to hide the navigation bar, in addition to the status bar.
/frameworks/base/docs/html/design/patterns/
Dactionbar.jd3 page.metaDescription=The Action bar is an essential design element for all apps. Learn about what t…
9 …signers-material" href="http://www.google.com/design/spec/layout/structure.html#structure-app-bar">
23 <p>The <em>action bar</em> is a dedicated piece of real estate at the top of each screen that is ge…
31 <p>If you're new to writing Android apps, note that the action bar is one of the most important des…
34 <p>The action bar is split into four different functional areas that apply to most apps.</p>
66 If your app displays data in different views, this segment of the action bar allows users to switch
81 action bar are moved automatically to the action overflow. Long-press on an icon to view the action…
100 …adapt to such changes by using <em>split action bars</em>, which allow you to distribute action bar
101 content across multiple bars located below the main action bar or at the bottom of the screen.</p>
105 Split action bar showing action buttons at the bottom of the screen in vertical orientation.
[all …]
Dcompatibility.jd27 <p>Android apps written for Android 3.0 and later display actions in the action bar. Actions that d…
28 fit in the action bar or aren't important enough to be displayed at the top level appear in the
30 <p>Users access the action overflow by touching it in the action bar.</p>
44 …ndroid phones with traditional navigation hardware keys don't display the virtual navigation bar at
61 controls, an action overflow control appears at the right side of the virtual navigation bar. You
/frameworks/base/docs/html/guide/practices/ui_guidelines/
Dicon_design_status_bar.jd52 <p>Status bar icons are used to represent notifications from your application in
53 the status bar.</p>
71 <p><strong>Warning:</strong>The style and dimensions of status bar icons have changed dramatically
76 <li>Place status bar icons for Android 3.0 and later in the
79 <li>Place status bar icons for Android 2.3 in the
82 <li>Place status bar icons for previous versions in
94 <p>The following guidelines describe how to design status bar icons for Android
100 <p>The design for status bar (notification) icons has been revised in Android 3.0. Status bar icons
105 <li>Status bar icons are composed simply of <strong>white pixels on a transparent
109 small amount of internal padding can help maintain balance across status bar icons. See
[all …]
/frameworks/compile/libbcc/tests/debuginfo/target-tests/
Dbreakpoint_inlined_sourceline.rs30 static int bar() {
35 return bar();
39 bar();
Dbreakpoint_inlined_function.rs31 static int bar() {
36 return bar();
40 bar();
Dcrash.rs26 static int bar() {
31 return bar();
35 bar();
Dbreakpoint_function.rs27 static int bar() {
32 return bar();
36 bar();
Dbreakpoint_sourceline.rs26 static int bar() {
31 return bar();
35 bar();
Dglobal_int.rs32 static int bar() {
37 return bar();
41 bar();
/frameworks/base/docs/html/guide/practices/
Dtablets-and-handsets.jd14 <li><a href="#SplitActionBar">Using split action bar</a></li>
62 optimized user experience on both handsets and tablets, using fragments and the action bar.</p>
92 <li><strong>Use the action bar</strong>, but follow best practices and ensure your design
93 is flexible enough for the system to adjust the action bar layout based on the screen size.
96 title bar at the top of the screen. By default, the action bar includes the application logo on the
100 <p>You can enable items from the options menu to appear directly in the action bar as "action
101 items". You can also add navigation features to the action bar, such as tabs or a drop-down list,
106 <p>This guide provides some tips for using the action bar in ways that support both tablets and
107 handsets. For a detailed discussion of the action bar APIs, read the <a
128 <p class="note"><strong>Note:</strong> Aside from one feature in the action bar, all the
[all …]
/frameworks/base/docs/html/training/material/
Dtheme.jd31 according to your brand identity with a color palette you control. You can tint the action bar and
32 the status bar using theme attributes, as shown in <a href="#fig3">Figure 3</a>.</p>
84 &lt;!-- your app branding color for the app bar -->
86 &lt;!-- darker variant for the status bar and contextual app bars -->
103 <p>The material theme lets you easily customize the status bar, so you can specify a
105 set a custom color for the status bar, use the <code>android:statusBarColor</code> attribute when
109 <p>You can also draw behind the status bar yourself. For example, if you want to show
110 the status bar transparently over a photo, with a subtle dark gradient to ensure the white
117 <strong>Note:</strong> The status bar should almost always have a clear delineation from the
123 only the status bar. The navigation bar should remain black in all other cases.</p>
/frameworks/base/docs/html/training/notify-user/
Ddisplay-progress.jd46 (a progress bar). If you can't estimate the length of the operation, use the
61 To display a determinate progress bar, add the bar to your notification by calling
65 progress bar is indeterminate (<strong>true</strong>) or determinate (<strong>false</strong>).
74 You can either leave the progress bar showing when the operation is done, or remove it. In
76 To remove the progress bar, call
101 // Displays the progress bar for the first time.
114 // Removes the progress bar
133 <strong>Figure 1.</strong> The progress bar during and after the operation.</p>
141 that has the same style as a progress bar, except that its animation is ongoing.
164 call is set to {@code true} to indicate that the progress bar is
/frameworks/compile/libbcc/tests/debuginfo/host-tests/
Dtest_info_sources.cpp25 static int bar() { in bar() function
30 return bar(); in main()
Dfunc_invoke_and_crash.cpp23 static int bar() { in bar() function
28 return bar(); in main()
Daggregate-indirect-arg.cpp19 void bar(SVal &v) {} in bar() function
22 void foo(SVal v) { bar(v); } in foo()
/frameworks/compile/slang/lit-tests/P_ref_count/
Dref_count.rs9 static rs_element bar() {
15 rs_element e = bar();
/frameworks/base/core/tests/coretests/src/android/text/
DTextUtilsTest.java51 SpannableString bar = new SpannableString("bar"); in testBasic() local
52 bar.setSpan("bar", 1, 2, Spannable.SPAN_EXCLUSIVE_INCLUSIVE); in testBasic()
58 assertEquals("foobar", TextUtils.concat(foo, bar).toString()); in testBasic()
59 assertEquals("foobarbaz", TextUtils.concat(foo, bar, baz).toString()); in testBasic()
63 assertEquals(1, ((Spanned) TextUtils.concat(foo, bar)).getSpanStart("foo")); in testBasic()
64 assertEquals(4, ((Spanned) TextUtils.concat(foo, bar)).getSpanStart("bar")); in testBasic()
66 assertEquals(1, ((Spanned) TextUtils.concat(foo, bar, baz)).getSpanStart("foo")); in testBasic()
67 assertEquals(4, ((Spanned) TextUtils.concat(foo, bar, baz)).getSpanStart("bar")); in testBasic()
68 assertEquals(7, ((Spanned) TextUtils.concat(foo, bar, baz)).getSpanStart("baz")); in testBasic()
71 assertTrue(TextUtils.concat(foo, bar) instanceof SpannedString); in testBasic()

1234567891011