Welcome to mirror list, hosted at ThFree Co, Russian Federation.

toolbar_layout.xml « layout « res « main « src « News-Android-App - github.com/nextcloud/news-android.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b31d4bc68c3671b141114a07ea439fc5b93608ca (plain)
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
<?xml version="1.0" encoding="utf-8"?>
<com.google.android.material.appbar.AppBarLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <androidx.appcompat.widget.Toolbar
            android:id="@+id/toolbar"
            android:layout_width="0dp"
            android:layout_height="?attr/actionBarSize"
            android:layout_weight="1"
            android:theme="@style/ToolbarTheme"
            app:popupTheme="@style/ToolbarOptionMenuBackgroundTheme" />

        <FrameLayout
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:background="@color/colorPrimary">

            <ImageButton
                android:id="@+id/avatar"
                android:layout_width="48dp"
                android:layout_height="48dp"
                android:layout_gravity="center"
                android:layout_marginEnd="@dimen/spacer_1x"
                android:background="@null"
                android:contentDescription="@string/switch_account"
                android:padding="@dimen/spacer_1x"
                android:visibility="gone"
                app:srcCompat="@drawable/ic_baseline_account_circle_24"
                tools:visibility="visible" />
        </FrameLayout>
    </LinearLayout>
</com.google.android.material.appbar.AppBarLayout>