aboutsummaryrefslogtreecommitdiff
path: root/WordPress/src/main/res/layout/media_edit_fragment.xml
blob: f160f31b8a6ea98d492daddd9553e5eb864b6a7a (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    xmlns:tools="http://schemas.android.com/tools">

    <LinearLayout
        android:id="@+id/media_edit_linear_layout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:padding="@dimen/margin_extra_large"
        android:visibility="invisible"
        tools:visibility="visible">

        <org.wordpress.android.widgets.WPTextView
            android:id="@+id/media_edit_title_text"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:paddingLeft="@dimen/margin_large"
            android:text="@string/media_edit_title_text"
            android:textSize="@dimen/text_sz_large" />

        <RelativeLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content">

            <Button
                android:id="@+id/media_edit_save_button"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentRight="true"
                android:layout_marginLeft="20dp"
                android:background="@drawable/media_blue_button_selector"
                android:paddingLeft="20dp"
                android:paddingRight="20dp"
                android:text="@string/save"
                android:textColor="@color/white"
                android:visibility="@integer/media_editor_save_button_visibility"
                tools:visibility="visible"/>

            <org.wordpress.android.widgets.WPEditText
                android:id="@+id/media_edit_fragment_title"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_alignBaseline="@id/media_edit_save_button"
                android:layout_toLeftOf="@id/media_edit_save_button"
                android:hint="@string/media_edit_title_hint"
                android:inputType="textCapSentences|textAutoCorrect" />
        </RelativeLayout>

        <org.wordpress.android.widgets.WPTextView
            android:id="@+id/media_edit_caption_text"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:paddingLeft="@dimen/margin_large"
            android:layout_marginTop="@dimen/margin_extra_large"
            android:text="@string/media_edit_caption_text"
            android:textSize="@dimen/text_sz_large" />

        <org.wordpress.android.widgets.WPEditText
            android:id="@+id/media_edit_fragment_caption"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:hint="@string/media_edit_caption_hint"
            android:inputType="textCapSentences|textAutoCorrect" />

        <org.wordpress.android.widgets.WPTextView
            android:id="@+id/media_edit_description_text"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/margin_extra_large"
            android:paddingLeft="@dimen/margin_large"
            android:text="@string/media_edit_description_text"
            android:textSize="@dimen/text_sz_large" />

        <org.wordpress.android.widgets.WPEditText
            android:id="@+id/media_edit_fragment_description"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:gravity="top|start"
            android:hint="@string/media_edit_description_hint"
            android:inputType="textCapSentences|textAutoCorrect"
            android:lines="3" />

        <FrameLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/margin_large">

            <include
                android:id="@+id/media_edit_fragment_image_local"
                layout="@layout/media_grid_image_local" />

            <include
                android:id="@+id/media_edit_fragment_image_network"
                layout="@layout/media_grid_image_network" />
        </FrameLayout>
    </LinearLayout>

</ScrollView>