File: toolbar_phone.xml

package info (click to toggle)
chromium 138.0.7204.183-1~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-proposed-updates
  • size: 6,080,960 kB
  • sloc: cpp: 34,937,079; ansic: 7,176,967; javascript: 4,110,704; python: 1,419,954; asm: 946,768; xml: 739,971; pascal: 187,324; sh: 89,623; perl: 88,663; objc: 79,944; sql: 50,304; cs: 41,786; fortran: 24,137; makefile: 21,811; php: 13,980; tcl: 13,166; yacc: 8,925; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (73 lines) | stat: -rw-r--r-- 2,857 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2015 The Chromium Authors
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->

<!-- The toolbar containing the URL bar, back button, and NTP button.
-->

<org.chromium.chrome.browser.toolbar.top.ToolbarPhone
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/toolbar"
    android:layout_width="match_parent"
    android:layout_height="@dimen/toolbar_height_no_shadow" >

    <org.chromium.chrome.browser.toolbar.home_button.HomeButton
        android:id="@+id/home_button"
        style="@style/ToolbarHoverableButton"
        android:src="@drawable/btn_toolbar_home"
        android:contentDescription="@string/accessibility_toolbar_btn_home"
        android:tooltipText="@string/accessibility_toolbar_btn_home"
        android:visibility="gone"
        app:menuVerticalOverlapAnchor="false"
        app:menuMaxWidth="@dimen/home_button_list_menu_width"
        app:menuPositionedAtStart="true"
        app:tint="@color/default_icon_color_tint_list" />

    <ViewStub
        android:layout_height="match_parent"
        android:layout_width="wrap_content"
        android:id="@+id/home_page_buttons_stub"
        android:layout="@layout/home_page_buttons_layout"
        android:visibility="gone" />

    <org.chromium.chrome.browser.omnibox.LocationBarPhone
        android:id="@+id/location_bar"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_gravity="top"
        android:paddingStart="@dimen/location_bar_start_padding"
        android:paddingEnd="@dimen/location_bar_end_padding"/>

    <LinearLayout android:id="@+id/toolbar_buttons"
        android:orientation="horizontal"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="top|end"
        android:focusable="false"
        android:focusableInTouchMode="false">

        <ViewStub
            android:id="@+id/optional_button_stub"
            android:inflatedId="@+id/optional_toolbar_button_container"
            android:layout_gravity="top"
            android:visibility="gone"
            android:layout_width="52dp"
            style="@style/ToolbarHoverableButton" />

        <org.chromium.chrome.browser.toolbar.top.ToggleTabStackButton
            android:id="@+id/tab_switcher_button"
            style="@style/ToolbarHoverableButton"
            android:layout_gravity="top"
            android:clickable="false"
            app:menuMaxWidth="@dimen/tab_switcher_menu_width"
            app:menuVerticalOverlapAnchor="false" />

        <include layout="@layout/menu_button"/>

    </LinearLayout>

</org.chromium.chrome.browser.toolbar.top.ToolbarPhone>