|
@@ -2,180 +2,182 @@ |
2 |
2 |
|
xmlns:tools="http://schemas.android.com/tools" |
3 |
3 |
|
android:layout_width="match_parent" |
4 |
4 |
|
android:layout_height="match_parent" |
5 |
|
- |
|
6 |
5 |
|
tools:context="it.fedeloper.smartcharging.Controller.LoginActivity"> |
7 |
6 |
|
|
8 |
|
- |
|
9 |
|
- |
<LinearLayout |
10 |
|
- |
android:orientation="vertical" |
11 |
|
- |
android:layout_width="match_parent" |
12 |
|
- |
android:layout_height="match_parent"> |
13 |
|
- |
|
14 |
|
- |
<ImageView |
15 |
|
- |
android:layout_width="wrap_content" |
16 |
|
- |
android:layout_height="wrap_content" |
17 |
|
- |
android:id="@+id/imageView2" |
18 |
|
- |
android:scaleType="fitCenter" |
19 |
|
- |
android:layout_centerHorizontal="true" |
20 |
|
- |
android:src="@drawable/screen1" |
21 |
|
- |
android:background="#3cdbff" |
22 |
|
- |
android:layout_weight="0.7" /> |
23 |
|
- |
|
24 |
7 |
|
<LinearLayout |
25 |
8 |
|
android:orientation="vertical" |
26 |
9 |
|
android:layout_width="match_parent" |
27 |
10 |
|
android:layout_height="match_parent" |
28 |
|
- |
android:layout_weight="0.5"> |
|
11 |
+ |
android:weightSum="5"> |
29 |
12 |
|
|
30 |
|
- |
<LinearLayout |
31 |
|
- |
android:orientation="vertical" |
32 |
|
- |
android:layout_width="match_parent" |
33 |
|
- |
android:layout_height="match_parent" |
34 |
|
- |
android:layout_gravity="center_vertical" |
35 |
|
- |
android:gravity="center_vertical"> |
36 |
|
- |
|
37 |
|
- |
<LinearLayout |
38 |
|
- |
android:orientation="horizontal" |
39 |
|
- |
android:layout_width="match_parent" |
|
13 |
+ |
<ImageView |
|
14 |
+ |
android:layout_width="wrap_content" |
40 |
15 |
|
android:layout_height="wrap_content" |
41 |
|
- |
android:layout_marginLeft="40dp" |
42 |
|
- |
android:layout_marginRight="40dp" |
43 |
|
- |
android:background="#f0f0f0" |
44 |
|
- |
android:layout_marginBottom="10dp"> |
45 |
|
- |
|
46 |
|
- |
<TextView |
47 |
|
- |
android:id="@+id/textView" |
48 |
|
- |
android:layout_width="wrap_content" |
49 |
|
- |
android:layout_height="wrap_content" |
50 |
|
- |
android:layout_alignParentLeft="true" |
51 |
|
- |
android:layout_alignParentStart="true" |
52 |
|
- |
android:layout_below="@+id/imageView2" |
53 |
|
- |
android:text="@string/username" |
54 |
|
- |
android:textAppearance="?android:attr/textAppearanceSmall" |
55 |
|
- |
android:layout_marginLeft="20dp" |
56 |
|
- |
android:layout_marginRight="20dp" |
57 |
|
- |
android:background="#f0f0f0" /> |
58 |
|
- |
|
59 |
|
- |
<EditText |
60 |
|
- |
android:id="@+id/editText2" |
61 |
|
- |
android:layout_width="match_parent" |
62 |
|
- |
android:layout_height="50dp" |
63 |
|
- |
android:layout_alignParentEnd="true" |
64 |
|
- |
android:layout_alignParentLeft="true" |
65 |
|
- |
android:layout_alignParentRight="true" |
66 |
|
- |
android:layout_alignParentStart="true" |
67 |
|
- |
android:layout_below="@+id/textView" |
68 |
|
- |
android:background="#f0f0f0" /> |
69 |
|
- |
</LinearLayout> |
|
16 |
+ |
android:id="@+id/imageView2" |
|
17 |
+ |
android:scaleType="fitCenter" |
|
18 |
+ |
android:elevation="5dp" |
|
19 |
+ |
android:src="@drawable/screen1" |
|
20 |
+ |
android:background="#3cdbff" |
|
21 |
+ |
android:layout_weight="3" /> |
70 |
22 |
|
|
71 |
23 |
|
<LinearLayout |
72 |
|
- |
android:orientation="horizontal" |
|
24 |
+ |
android:orientation="vertical" |
73 |
25 |
|
android:layout_width="match_parent" |
74 |
|
- |
android:layout_height="wrap_content" |
75 |
|
- |
android:layout_marginLeft="40dp" |
76 |
|
- |
android:layout_marginRight="40dp" |
77 |
|
- |
android:background="#f0f0f0"> |
78 |
|
- |
|
79 |
|
- |
<TextView |
80 |
|
- |
android:id="@+id/textView2" |
81 |
|
- |
android:layout_width="wrap_content" |
82 |
|
- |
android:layout_height="wrap_content" |
83 |
|
- |
android:layout_alignParentLeft="true" |
84 |
|
- |
android:layout_alignParentStart="true" |
85 |
|
- |
android:layout_below="@+id/editText2" |
86 |
|
- |
android:text="@string/password" |
87 |
|
- |
android:textAppearance="?android:attr/textAppearanceSmall" |
88 |
|
- |
android:layout_marginRight="20dp" |
89 |
|
- |
android:layout_marginLeft="20dp" |
90 |
|
- |
android:background="#f0f0f0" /> |
91 |
|
- |
|
92 |
|
- |
<EditText |
93 |
|
- |
android:id="@+id/editText3" |
94 |
|
- |
android:layout_width="match_parent" |
95 |
|
- |
android:layout_height="50dp" |
96 |
|
- |
android:layout_alignParentEnd="true" |
97 |
|
- |
android:layout_alignParentLeft="true" |
98 |
|
- |
android:layout_alignParentRight="true" |
99 |
|
- |
android:layout_alignParentStart="true" |
100 |
|
- |
android:layout_below="@+id/textView2" |
101 |
|
- |
android:ems="10" |
102 |
|
- |
android:inputType="textPassword" |
103 |
|
- |
android:background="#f0f0f0" /> |
104 |
|
- |
</LinearLayout> |
105 |
|
- |
|
106 |
|
- |
<Button |
107 |
|
- |
android:id="@+id/button2" |
108 |
|
- |
android:layout_width="fill_parent" |
109 |
|
- |
android:layout_height="50dp" |
110 |
|
- |
android:layout_alignParentLeft="true" |
111 |
|
- |
android:layout_alignParentStart="true" |
112 |
|
- |
android:layout_below="@+id/editText3" |
113 |
|
- |
android:onClick="loginclick" |
114 |
|
- |
android:text="@string/login" |
115 |
|
- |
android:layout_marginLeft="40dp" |
116 |
|
- |
android:layout_marginRight="40dp" |
117 |
|
- |
android:background="@drawable/back" |
118 |
|
- |
android:textColor="#574a67" |
119 |
|
- |
android:layout_marginTop="10dp" /> |
|
26 |
+ |
android:layout_height="match_parent" |
|
27 |
+ |
android:padding="@dimen/space_16dp" |
|
28 |
+ |
android:layout_weight="2"> |
120 |
29 |
|
|
121 |
|
- |
<LinearLayout |
122 |
|
- |
android:orientation="horizontal" |
123 |
|
- |
android:layout_width="match_parent" |
124 |
|
- |
android:layout_height="wrap_content" |
125 |
|
- |
android:layout_gravity="center_horizontal" |
126 |
|
- |
android:layout_marginLeft="40dp" |
127 |
|
- |
android:layout_marginRight="40dp" |
128 |
|
- |
android:layout_marginTop="10dp"> |
129 |
|
- |
|
130 |
|
- |
<Button |
131 |
|
- |
android:id="@+id/button4" |
132 |
|
- |
android:layout_width="wrap_content" |
133 |
|
- |
android:visibility="gone" |
134 |
|
- |
android:layout_height="50dp" /> |
135 |
|
- |
|
136 |
|
- |
<RelativeLayout |
137 |
|
- |
android:layout_width="match_parent" |
138 |
|
- |
android:layout_height="50dp" |
139 |
|
- |
> |
140 |
|
- |
<Button |
141 |
|
- |
android:id="@+id/facebook_login_button" |
|
30 |
+ |
<LinearLayout |
|
31 |
+ |
android:orientation="vertical" |
142 |
32 |
|
android:layout_width="match_parent" |
143 |
|
- |
android:layout_height="match_parent" /> |
144 |
|
- |
<ImageView |
145 |
|
- |
android:src="@drawable/facebook" |
146 |
|
- |
android:background="@drawable/facebook_bordered_rectangle" |
147 |
|
- |
android:layout_width="wrap_content" |
148 |
|
- |
android:layout_height="wrap_content" /> |
149 |
|
- |
</RelativeLayout> |
150 |
|
- |
</LinearLayout> |
151 |
|
- |
<Button |
152 |
|
- |
android:id="@+id/button3" |
153 |
|
- |
android:layout_width="wrap_content" |
154 |
|
- |
android:layout_height="wrap_content" |
155 |
|
- |
android:layout_alignParentEnd="true" |
156 |
|
- |
android:layout_alignParentRight="true" |
157 |
|
- |
android:layout_below="@+id/editText3" |
158 |
|
- |
android:layout_toEndOf="@+id/imageView2" |
159 |
|
- |
android:onClick="btnregister" |
160 |
|
- |
android:text="@string/btnRegistrazione" |
161 |
|
- |
android:background="#00fffcac" |
162 |
|
- |
android:textColor="#676767" |
163 |
|
- |
android:layout_gravity="bottom|center_horizontal" /> |
164 |
|
- |
|
165 |
|
- |
<Button |
166 |
|
- |
android:id="@+id/button6" |
167 |
|
- |
android:layout_width="wrap_content" |
168 |
|
- |
android:layout_height="wrap_content" |
169 |
|
- |
|
170 |
|
- |
android:text="@string/ignora_btn" |
171 |
|
- |
android:layout_marginRight="10dp" |
172 |
|
- |
android:onClick="ignoraclick" |
173 |
|
- |
android:textColor="#676767" |
174 |
|
- |
android:background="#0045d6ff" |
175 |
|
- |
android:layout_gravity="right" /> |
176 |
|
- |
</LinearLayout> |
|
33 |
+ |
android:layout_height="match_parent" |
|
34 |
+ |
android:layout_gravity="center_vertical" |
|
35 |
+ |
android:gravity="center_vertical"> |
|
36 |
+ |
|
|
37 |
+ |
<RelativeLayout |
|
38 |
+ |
android:layout_width="match_parent" |
|
39 |
+ |
android:layout_height="50dp"> |
|
40 |
+ |
<Button |
|
41 |
+ |
android:id="@+id/facebook_login_button" |
|
42 |
+ |
android:stateListAnimator="@null" |
|
43 |
+ |
android:layout_width="match_parent" |
|
44 |
+ |
android:layout_height="match_parent" /> |
|
45 |
+ |
<ImageView |
|
46 |
+ |
android:src="@drawable/facebook" |
|
47 |
+ |
android:background="@drawable/facebook_bordered_rectangle" |
|
48 |
+ |
android:layout_width="match_parent" |
|
49 |
+ |
android:layout_height="match_parent" /> |
|
50 |
+ |
</RelativeLayout> |
|
51 |
+ |
|
|
52 |
+ |
<LinearLayout |
|
53 |
+ |
android:id="@+id/or_divider" |
|
54 |
+ |
android:layout_width="match_parent" |
|
55 |
+ |
android:layout_height="wrap_content" |
|
56 |
+ |
android:orientation="horizontal" |
|
57 |
+ |
android:layout_marginTop="10dp" |
|
58 |
+ |
android:weightSum="4"> |
|
59 |
+ |
<View |
|
60 |
+ |
android:background="#574a67" |
|
61 |
+ |
android:layout_gravity="center_vertical" |
|
62 |
+ |
android:layout_width="match_parent" |
|
63 |
+ |
android:layout_height="1dp" |
|
64 |
+ |
android:layout_marginRight="5dp" |
|
65 |
+ |
android:layout_weight="2"/> |
|
66 |
+ |
<TextView |
|
67 |
+ |
android:text="@string/login_o_divider" |
|
68 |
+ |
android:textColor="#574a67" |
|
69 |
+ |
android:layout_width="20dp" |
|
70 |
+ |
android:gravity="center_horizontal" |
|
71 |
+ |
android:layout_height="wrap_content"/> |
|
72 |
+ |
<View |
|
73 |
+ |
android:background="#574a67" |
|
74 |
+ |
android:layout_gravity="center_vertical" |
|
75 |
+ |
android:layout_width="match_parent" |
|
76 |
+ |
android:layout_marginLeft="5dp" |
|
77 |
+ |
android:layout_height="1dp" |
|
78 |
+ |
android:layout_weight="2"/> |
|
79 |
+ |
</LinearLayout> |
|
80 |
+ |
|
|
81 |
+ |
<LinearLayout |
|
82 |
+ |
android:orientation="horizontal" |
|
83 |
+ |
android:layout_width="match_parent" |
|
84 |
+ |
android:layout_height="wrap_content" |
|
85 |
+ |
android:background="#f0f0f0" |
|
86 |
+ |
android:layout_marginTop="10dp"> |
|
87 |
+ |
|
|
88 |
+ |
<TextView |
|
89 |
+ |
android:id="@+id/textView" |
|
90 |
+ |
android:layout_width="wrap_content" |
|
91 |
+ |
android:layout_height="wrap_content" |
|
92 |
+ |
android:text="@string/username" |
|
93 |
+ |
android:textAppearance="?android:attr/textAppearanceSmall" |
|
94 |
+ |
android:layout_marginLeft="@dimen/space_16dp" |
|
95 |
+ |
android:layout_marginRight="@dimen/space_16dp" |
|
96 |
+ |
android:background="#f0f0f0" /> |
|
97 |
+ |
|
|
98 |
+ |
<EditText |
|
99 |
+ |
android:id="@+id/editText2" |
|
100 |
+ |
android:layout_width="match_parent" |
|
101 |
+ |
android:layout_height="50dp" |
|
102 |
+ |
android:background="#f0f0f0" /> |
|
103 |
+ |
</LinearLayout> |
|
104 |
+ |
|
|
105 |
+ |
<LinearLayout |
|
106 |
+ |
android:orientation="horizontal" |
|
107 |
+ |
android:layout_width="match_parent" |
|
108 |
+ |
android:layout_height="wrap_content" |
|
109 |
+ |
android:layout_marginTop="10dp" |
|
110 |
+ |
android:background="#f0f0f0"> |
|
111 |
+ |
|
|
112 |
+ |
<TextView |
|
113 |
+ |
android:id="@+id/textView2" |
|
114 |
+ |
android:layout_width="wrap_content" |
|
115 |
+ |
android:layout_height="wrap_content" |
|
116 |
+ |
android:text="@string/password" |
|
117 |
+ |
android:textAppearance="?android:attr/textAppearanceSmall" |
|
118 |
+ |
android:layout_marginLeft="@dimen/space_16dp" |
|
119 |
+ |
android:layout_marginRight="@dimen/space_16dp" |
|
120 |
+ |
android:background="#f0f0f0" /> |
|
121 |
+ |
|
|
122 |
+ |
<EditText |
|
123 |
+ |
android:id="@+id/editText3" |
|
124 |
+ |
android:layout_width="match_parent" |
|
125 |
+ |
android:layout_height="50dp" |
|
126 |
+ |
android:ems="10" |
|
127 |
+ |
android:inputType="textPassword" |
|
128 |
+ |
android:background="#f0f0f0" /> |
|
129 |
+ |
</LinearLayout> |
|
130 |
+ |
|
|
131 |
+ |
<Button |
|
132 |
+ |
android:id="@+id/button2" |
|
133 |
+ |
android:layout_width="fill_parent" |
|
134 |
+ |
android:layout_height="50dp" |
|
135 |
+ |
android:onClick="loginclick" |
|
136 |
+ |
android:layout_marginLeft="@dimen/space_16dp" |
|
137 |
+ |
android:layout_marginRight="@dimen/space_16dp" |
|
138 |
+ |
android:text="@string/login" |
|
139 |
+ |
style="@style/DefaultButtonRed" |
|
140 |
+ |
android:textColor="@color/md_white" |
|
141 |
+ |
android:layout_marginTop="@dimen/space_16dp" /> |
|
142 |
+ |
|
|
143 |
+ |
<LinearLayout |
|
144 |
+ |
android:orientation="horizontal" |
|
145 |
+ |
android:layout_width="match_parent" |
|
146 |
+ |
android:layout_height="wrap_content" |
|
147 |
+ |
android:layout_gravity="center_horizontal" |
|
148 |
+ |
android:layout_marginLeft="40dp" |
|
149 |
+ |
android:layout_marginRight="40dp" |
|
150 |
+ |
android:layout_marginTop="10dp"> |
|
151 |
+ |
|
|
152 |
+ |
<Button |
|
153 |
+ |
android:id="@+id/button4" |
|
154 |
+ |
android:layout_width="wrap_content" |
|
155 |
+ |
android:visibility="gone" |
|
156 |
+ |
android:layout_height="50dp" /> |
|
157 |
+ |
|
|
158 |
+ |
|
|
159 |
+ |
</LinearLayout> |
|
160 |
+ |
<Button |
|
161 |
+ |
android:id="@+id/button3" |
|
162 |
+ |
android:layout_marginTop="@dimen/space_16dp" |
|
163 |
+ |
android:layout_width="wrap_content" |
|
164 |
+ |
android:layout_height="wrap_content" |
|
165 |
+ |
android:onClick="btnregister" |
|
166 |
+ |
android:text="@string/btnRegistrazione" |
|
167 |
+ |
style="@style/BorderlessButton" |
|
168 |
+ |
android:layout_gravity="center_horizontal" /> |
|
169 |
+ |
|
|
170 |
+ |
<Button |
|
171 |
+ |
android:id="@+id/button6" |
|
172 |
+ |
android:layout_width="wrap_content" |
|
173 |
+ |
android:layout_gravity="center_horizontal" |
|
174 |
+ |
android:layout_height="wrap_content" |
|
175 |
+ |
style="@style/BorderlessButton" |
|
176 |
+ |
android:text="@string/ignora_btn" |
|
177 |
+ |
android:onClick="ignoraclick"/> |
|
178 |
+ |
</LinearLayout> |
177 |
179 |
|
|
|
180 |
+ |
</LinearLayout> |
178 |
181 |
|
</LinearLayout> |
179 |
|
- |
</LinearLayout> |
180 |
182 |
|
|
181 |
183 |
|
</RelativeLayout> |