summaryrefslogtreecommitdiffstats
path: root/mobile/android/base/resources/layout/zoomed_view.xml
blob: fd5684303af72ccef18ed5768f4318ae132ce189 (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
40
41
42
43
44
45
46
47
48
49
50
51
<?xml version="1.0" encoding="utf-8"?>
<!--
   This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/.
-->

<org.mozilla.gecko.ZoomedView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:gecko="http://schemas.android.com/apk/res-auto"
    android:id="@+id/zoomed_view_container"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:background="@drawable/dropshadow"
    android:padding="@dimen/drawable_dropshadow_size"
    android:visibility="gone">

    <RelativeLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:layout_alignParentTop="true"
        android:background="@drawable/toolbar_grey_round">
        <!--
           Zoom factor button is invisible by default. Set ui.zoomedview.simplified to false
           in order to display the button in the zoomed view tool bar
        -->
        <TextView
            android:id="@+id/change_zoom_factor"
            android:layout_width="wrap_content"
            android:layout_height="@dimen/zoomed_view_toolbar_height"
            android:background="@android:color/transparent"
            android:padding="12dip"
            android:layout_alignLeft="@+id/zoomed_image_view"
            android:textSize="16sp"
            android:textColor="@color/text_and_tabs_tray_grey"
            android:visibility="invisible"/>
        <ImageView
            android:id="@+id/dialog_close"
            android:scaleType="center"
            android:layout_width="@dimen/zoomed_view_toolbar_height"
            android:layout_height="@dimen/zoomed_view_toolbar_height"
            android:layout_alignRight="@id/zoomed_image_view"
            android:src="@drawable/close_edit_mode_selector"/>
        <ImageView
            android:id="@id/zoomed_image_view"
            android:layout_below="@id/change_zoom_factor"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"/>
    </RelativeLayout>

</org.mozilla.gecko.ZoomedView>