강의 링크 : https://youtu.be/f7_ORwhSx2E
1.
처음 생성하는 액티비티 이름을 LoginActivity 로 하여 프로젝트를 생성
2.
라이브러리 추가
GradleScripts/ build.gradleModule:app |
apply plugin: 'com.android.application'
|
volley는 http네트워크통신과 관련된 라이브러리.
3.
액티비티 추가.
기존에 LoginActivity 에 더하여 MainActivity, RegisterActivity 두개를 추가 & 화면구성강의에서는relativelayout으로만들지만,안드로이드스튜디오가constraintlayout으로자동생성하길래그냥그대로만듬
activity_login.xml |
<?xml version="1.0" encoding="utf-8"?> <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" |
activity_main.xml |
<?xml version="1.0" encoding="utf-8"?> <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" |
activity_register.xml |
<?xml version="1.0" encoding="utf-8"?> <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" |
강의 링크 : https://youtu.be/5ZMVRKis1eI
- 각 액티비티 사이의 연결을 다룸
LoginActivity |
package com.example.han.member;
|
RegisterActivity |
package com.example.han.member;
|
MainActivity |
package com.example.han.member;
|
'개발 > 모바일' 카테고리의 다른 글
stanford CS 193A 16sp Lecture 03: More widgets and lists 0 | 2018.01.10 |
---|---|
stanford CS 193A 16sp Lecture 15: Databases and SQL 0 | 2018.01.10 |
안드로이드 스튜디오 Lec10 레이아웃Layout 0 | 2018.01.09 |
안드로이드 스튜디오 Lec9 이미지 슬라이더ImageSlider 0 | 2018.01.08 |
안드로이드 스튜디오 Lec8 버튼 이미지 애니메이션ImageButton 0 | 2018.01.08 |