Project

General

Profile

« Previous | Next » 

Revision 391d680e

Added by Leszek Koltunski about 1 year ago

Improve About Dialog

View differences:

src/main/res/layout/dialog_about.xml
8 8
    <LinearLayout
9 9
        android:id="@+id/about_share_layout"
10 10
        android:layout_width="fill_parent"
11
        android:layout_height="0dp"
12
        android:layout_weight="0.12"
11
        android:layout_height="wrap_content"
13 12
        android:gravity="center|fill_horizontal"
14 13
        android:layout_marginLeft="10dp"
15 14
        android:layout_marginRight="10dp"
......
18 17

  
19 18
        <ImageView
20 19
            android:layout_gravity="top"
20
            android:adjustViewBounds="true"
21 21
            android:layout_height="wrap_content"
22 22
            android:layout_marginStart="5dp"
23
            android:layout_marginTop="5dp"
24
            android:layout_marginBottom="5dp"
23 25
            android:layout_width="0dp"
24 26
            android:layout_weight="0.2"
25 27
            android:src="@drawable/ui_share"/>
......
49 51
   <LinearLayout
50 52
        android:id="@+id/about_email_layout"
51 53
        android:layout_width="fill_parent"
52
        android:layout_height="0dp"
53
        android:layout_weight="0.12"
54
        android:layout_height="wrap_content"
54 55
        android:gravity="center|fill_horizontal"
55 56
        android:layout_marginLeft="10dp"
56 57
        android:layout_marginRight="10dp"
......
60 61

  
61 62
        <ImageView
62 63
            android:layout_gravity="top"
64
            android:adjustViewBounds="true"
63 65
            android:layout_height="wrap_content"
64 66
            android:layout_marginStart="5dp"
67
            android:layout_marginTop="5dp"
68
            android:layout_marginBottom="5dp"
65 69
            android:layout_width="0dp"
66 70
            android:layout_weight="0.2"
67 71
            android:src="@drawable/ui_contact"/>
68 72

  
69 73
        <LinearLayout
70 74
            android:layout_width="0dp"
71
            android:layout_height="match_parent"
75
            android:layout_height="wrap_content"
72 76
            android:layout_weight="1"
73 77
            android:gravity="center|fill_horizontal"
74 78
            android:background="@color/dark_grey"
......
101 105
   <LinearLayout
102 106
        android:id="@+id/about_new_layout"
103 107
        android:layout_width="fill_parent"
104
        android:layout_height="0dp"
105
        android:layout_weight="0.31"
108
        android:layout_height="wrap_content"
106 109
        android:gravity="center|fill_horizontal"
107 110
        android:layout_marginLeft="10dp"
108 111
        android:layout_marginRight="10dp"
......
112 115

  
113 116
        <ImageView
114 117
            android:layout_gravity="top"
118
            android:adjustViewBounds="true"
115 119
            android:layout_height="wrap_content"
116 120
            android:layout_marginStart="5dp"
121
            android:layout_marginTop="5dp"
122
            android:layout_marginBottom="5dp"
117 123
            android:layout_width="0dp"
118 124
            android:layout_weight="0.2"
119 125
            android:src="@drawable/ui_new"/>
......
121 127
        <ScrollView
122 128
            android:id="@+id/new_scroll"
123 129
            android:layout_width="0dp"
124
            android:layout_height="match_parent"
130
            android:layout_height="wrap_content"
125 131
            android:layout_weight="1"
126 132
            android:paddingTop="10dp"
127 133
            android:paddingBottom="10dp"
......
146 152
   <LinearLayout
147 153
        android:id="@+id/about_coming_layout"
148 154
        android:layout_width="fill_parent"
149
        android:layout_height="0dp"
150
        android:layout_weight="0.45"
155
        android:layout_height="wrap_content"
151 156
        android:gravity="center|fill_horizontal"
152 157
        android:layout_marginLeft="10dp"
153 158
        android:layout_marginRight="10dp"
......
157 162

  
158 163
        <ImageView
159 164
            android:layout_gravity="top"
165
            android:adjustViewBounds="true"
160 166
            android:layout_height="wrap_content"
161 167
            android:layout_marginStart="5dp"
168
            android:layout_marginTop="5dp"
169
            android:layout_marginBottom="5dp"
162 170
            android:layout_width="0dp"
163 171
            android:layout_weight="0.2"
164 172
            android:src="@drawable/ui_todo"/>
......
166 174
        <ScrollView
167 175
            android:id="@+id/coming_scroll"
168 176
            android:layout_width="0dp"
169
            android:layout_height="match_parent"
177
            android:layout_height="wrap_content"
170 178
            android:layout_weight="1"
171 179
            android:paddingTop="10dp"
172 180
            android:paddingBottom="10dp"

Also available in: Unified diff