diff --git a/app/src/main/java/com/cc/wee/opensource_projectapp/model/ChatModel.kt b/app/src/main/java/com/cc/wee/opensource_projectapp/model/ChatModel.kt new file mode 100644 index 0000000000000000000000000000000000000000..7a74713f4a79d38eae826761bf261db6e2c65a92 --- /dev/null +++ b/app/src/main/java/com/cc/wee/opensource_projectapp/model/ChatModel.kt @@ -0,0 +1,7 @@ +package com.cc.wee.opensource_projectapp.model + +/** + * Created by wee on 2018. 4. 13.. + */ +class ChatModel { +} \ No newline at end of file diff --git a/app/src/main/java/com/cc/wee/opensource_projectapp/model/OnDataChanged.kt b/app/src/main/java/com/cc/wee/opensource_projectapp/model/OnDataChanged.kt new file mode 100644 index 0000000000000000000000000000000000000000..1a8435f58968b72a134c83b3f11852b0cbac6405 --- /dev/null +++ b/app/src/main/java/com/cc/wee/opensource_projectapp/model/OnDataChanged.kt @@ -0,0 +1,7 @@ +package com.cc.wee.opensource_projectapp.model + +/** + * Created by wee on 2018. 4. 13.. + */ +interface OnDataChanged { +} \ No newline at end of file diff --git a/app/src/main/java/com/cc/wee/opensource_projectapp/model/OnUploadImage.kt b/app/src/main/java/com/cc/wee/opensource_projectapp/model/OnUploadImage.kt new file mode 100644 index 0000000000000000000000000000000000000000..a9511a225f10e7b924c69d99e91ad2962ae43c1a --- /dev/null +++ b/app/src/main/java/com/cc/wee/opensource_projectapp/model/OnUploadImage.kt @@ -0,0 +1,7 @@ +package com.cc.wee.opensource_projectapp.model + +/** + * Created by wee on 2018. 4. 13.. + */ +interface OnUploadImage { +} \ No newline at end of file diff --git a/app/src/main/java/com/cc/wee/opensource_projectapp/model/UserModel.kt b/app/src/main/java/com/cc/wee/opensource_projectapp/model/UserModel.kt new file mode 100644 index 0000000000000000000000000000000000000000..dac264c5874efea906d63bc3324b9fb06960c125 --- /dev/null +++ b/app/src/main/java/com/cc/wee/opensource_projectapp/model/UserModel.kt @@ -0,0 +1,7 @@ +package com.cc.wee.opensource_projectapp.model + +/** + * Created by wee on 2018. 4. 13.. + */ +class UserModel { +} \ No newline at end of file diff --git a/app/src/main/java/com/cc/wee/opensource_projectapp/ui/LoginActivity.kt b/app/src/main/java/com/cc/wee/opensource_projectapp/ui/LoginActivity.kt new file mode 100644 index 0000000000000000000000000000000000000000..02919956ea37be3d8e2dd7b5725345ce158390ed --- /dev/null +++ b/app/src/main/java/com/cc/wee/opensource_projectapp/ui/LoginActivity.kt @@ -0,0 +1,7 @@ +package com.cc.wee.opensource_projectapp.ui + +/** + * Created by wee on 2018. 4. 13.. + */ +class LoginActivity { +} \ No newline at end of file diff --git a/app/src/main/res/layout/activity_login.xml b/app/src/main/res/layout/activity_login.xml new file mode 100755 index 0000000000000000000000000000000000000000..ab96adb0d81e3b8ff416ba574e5ad219366eaac1 --- /dev/null +++ b/app/src/main/res/layout/activity_login.xml @@ -0,0 +1,67 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/layout" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + + <ProgressBar + android:id="@+id/progress_bar" + android:visibility="invisible" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:layout_centerHorizontal="true" + android:layout_marginBottom="20dp" /> + + + <android.support.design.widget.TextInputLayout + android:id="@+id/email_edit_layout" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerInParent="true"> + + <EditText + android:id="@+id/email_edit" + android:layout_width="250dp" + android:layout_height="wrap_content" + android:hint="email" + android:inputType="textEmailAddress" + android:text="test@gmail.com" /> + + </android.support.design.widget.TextInputLayout> + + <android.support.design.widget.TextInputLayout + android:id="@+id/password_edit_layout" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@id/email_edit_layout" + android:layout_centerInParent="true" + android:hint="password"> + + <EditText + android:id="@+id/password_edit" + android:layout_width="250dp" + android:layout_height="wrap_content" + android:text="123456" + android:inputType="textPassword" /> + </android.support.design.widget.TextInputLayout> + + + <Button + android:id="@+id/login_button" + style="@style/Base.Widget.AppCompat.Button.Colored" + android:layout_width="250dp" + android:layout_height="wrap_content" + android:layout_below="@id/password_edit_layout" + android:layout_centerInParent="true" + android:text="Login" /> + + <com.google.android.gms.common.SignInButton + android:id="@+id/google_login_button" + android:layout_width="250dp" + android:layout_height="wrap_content" + android:layout_below="@id/login_button" + android:layout_centerInParent="true" /> + +</RelativeLayout> \ No newline at end of file diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml old mode 100644 new mode 100755 index 337b283cbb455935c89dd1db2f19d24f3360ba77..da588a7786f4bd6175d6d779c51af7d073651010 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -1,18 +1,57 @@ <?xml version="1.0" encoding="utf-8"?> -<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:app="http://schemas.android.com/apk/res-auto" +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - tools:context="com.cc.wee.opensource_projectapp.ui.MainActivity"> + tools:context="cc.foxtail.firebaseapp.ui.MainActivity"> - <TextView - android:layout_width="wrap_content" + + <LinearLayout + android:id="@+id/linearLayout" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:layout_alignParentStart="true" + android:background="#ffffff" + android:weightSum="1"> + + <android.support.design.widget.TextInputLayout + android:id="@+id/password_edit_layout" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:hint="Message"> + + <EditText + android:id="@+id/chat_edit" + android:layout_width="250dp" + android:layout_height="wrap_content" + /> + </android.support.design.widget.TextInputLayout> + + + <Button + android:id="@+id/chat_button" + style="@style/Base.Widget.AppCompat.Button.Colored" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="Send" /> + + <Button + android:id="@+id/photo_button" + style="@style/Base.Widget.AppCompat.Button.Colored" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="Photo" /> + + + </LinearLayout> + + <android.support.v7.widget.RecyclerView + android:id="@+id/recycler_view" + android:layout_width="match_parent" android:layout_height="wrap_content" - android:text="Hello World!" - app:layout_constraintBottom_toBottomOf="parent" - app:layout_constraintLeft_toLeftOf="parent" - app:layout_constraintRight_toRightOf="parent" - app:layout_constraintTop_toTopOf="parent" /> + android:layout_above="@id/linearLayout" + android:layout_alignParentStart="true" /> -</android.support.constraint.ConstraintLayout> +</RelativeLayout> diff --git a/app/src/main/res/layout/recycler_item_chat.xml b/app/src/main/res/layout/recycler_item_chat.xml new file mode 100755 index 0000000000000000000000000000000000000000..f7bff4a4d0e42ca74cfa3ee973ced6b6392e94eb --- /dev/null +++ b/app/src/main/res/layout/recycler_item_chat.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <ImageView + android:id="@+id/chat_image_view" + android:layout_gravity="center" + android:layout_width="200dp" + android:layout_height="200dp" /> + + <TextView + android:id="@+id/chat_text_view" + style="@style/TextAppearance.AppCompat.Large" + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + +</LinearLayout> \ No newline at end of file