summaryrefslogtreecommitdiffstats
path: root/mobile/android/geckoview_example/src/main/res/layout/browser_action.xml
blob: fa06e95e88936092910f873d920ffa3958cb88ff (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
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="?android:actionBarSize"
    android:layout_height="?android:actionBarSize"
    android:gravity="center"
    android:orientation="vertical">

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        >
        <ImageView
            android:id="@+id/browser_action_icon"
            android:layout_width="36dp"
            android:layout_height="36dp"
            android:layout_centerInParent="true"
            />
    </RelativeLayout>

    <TextView
        android:id="@+id/browser_action_badge"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:background="@drawable/rounded_bg"
        android:textColor="@color/colorPrimaryDark"
        android:layout_alignParentRight="true"
        android:paddingLeft="3dp"
        android:paddingRight="3dp"
        android:layout_marginTop="3dp"
        android:layout_marginRight="3dp"
        android:text="12"
        />
</RelativeLayout>