Skip to content

Commit 9aa0f15

Browse files
author
=
committed
half login screen
1 parent d8fd14c commit 9aa0f15

18 files changed

+47
-10
lines changed

app/src/main/AndroidManifest.xml

+9-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,15 @@
2424
<category android:name="android.intent.category.LAUNCHER" />
2525
</intent-filter>
2626
</activity>
27-
<activity android:name=".activities.RegisterActivity" />
28-
<activity android:name=".activities.LoginActivity"></activity>
27+
28+
<!--This was difficult for me to find; that's what happens when you abandon a work for too long-->
29+
<activity
30+
android:name=".activities.RegisterActivity"
31+
android:theme="@style/NoActionBarTheme"/>
32+
33+
<activity
34+
android:name=".activities.LoginActivity"
35+
android:theme="@style/NoActionBarTheme"/>
2936
</application>
3037

3138
</manifest>

app/src/main/java/com/example/abeeb/alat/activities/LoginActivity.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import com.example.abeeb.alat.R;
77

8-
public class LoginActivity extends AppCompatActivity {
8+
public class LoginActivity extends AbstractActivity {
99

1010
@Override
1111
protected void onCreate(Bundle savedInstanceState) {

app/src/main/java/com/example/abeeb/alat/activities/RegisterActivity.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import com.example.abeeb.alat.R;
77

8-
public class RegisterActivity extends AppCompatActivity {
8+
public class RegisterActivity extends AbstractActivity {
99

1010
@Override
1111
protected void onCreate(Bundle savedInstanceState) {

app/src/main/java/com/example/abeeb/alat/models/User.java

+1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@
55
*/
66

77
public class User {
8+
89
}
Loading
Loading
642 Bytes
Loading
Loading
885 Bytes
Loading
Loading
Loading
Loading
Loading
Loading
+31-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,38 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
2+
<LinearLayout
3+
xmlns:android="http://schemas.android.com/apk/res/android"
34
xmlns:app="http://schemas.android.com/apk/res-auto"
45
xmlns:tools="http://schemas.android.com/tools"
56
android:layout_width="match_parent"
67
android:layout_height="match_parent"
78
tools:context="com.example.abeeb.alat.activities.LoginActivity">
89

9-
</android.support.constraint.ConstraintLayout>
10+
<RelativeLayout
11+
android:layout_width="match_parent"
12+
android:layout_height="wrap_content">
13+
14+
<ImageView
15+
android:layout_width="wrap_content"
16+
android:layout_height="wrap_content"
17+
android:src="@drawable/24_hour_support"/>
18+
<!--the name of the resource needs to be changed; also export all images used in the mock-ups-->
19+
20+
21+
22+
<Button
23+
android:layout_width="match_parent"
24+
android:layout_height="wrap_content"
25+
android:text="@string/login"
26+
android:id="@+id/login"
27+
android:background="@drawable/rounded_button"
28+
android:textColor="@color/dark_wine"
29+
android:layout_weight="0.5"
30+
android:textSize="@dimen/login_btn_size"
31+
android:layout_marginBottom="20dp"
32+
android:textAlignment="center"/>
33+
34+
35+
</RelativeLayout>
36+
37+
38+
</LinearLayout>

app/src/main/res/layout/activity_main.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@
2626
</RelativeLayout>
2727

2828
<ImageView
29-
android:layout_width="wrap_content"
29+
android:layout_width="85dp"
3030
android:layout_height="wrap_content"
3131
android:scaleType="center"
32-
android:src="@mipmap/logo_white"
33-
android:layout_weight="8"
32+
android:src="@drawable/alat_coloured_copy_3"
33+
android:layout_weight="3.47"
3434
android:layout_marginBottom="150dp"
3535
android:layout_gravity="center_horizontal"
3636
android:contentDescription="@string/alat_logo" />

app/src/main/white_logo-web.png

6.61 KB
Loading

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
jcenter()
66
}
77
dependencies {
8-
classpath 'com.android.tools.build:gradle:2.3.2'
8+
classpath 'com.android.tools.build:gradle:2.3.3'
99

1010
// NOTE: Do not place your application dependencies here; they belong
1111
// in the individual module build.gradle files

0 commit comments

Comments
 (0)