목차
- 안드로이드 Date API로 날짜 값 비교 계산 예제 이전 포스팅 링크 및 설명
- 안드로이드 SimpleDateFormat 날짜 문자열 파싱 예제 이전 포스팅 링크 및 설명
- 안드로이드 ConnectivityManager 클래스로 현재 Wi-Fi 연결 상태 확인 예제 이전 포스팅 링크 및 설명
- 안드로이드 로그인 기능을 위한 Login Activity 뷰 생성 예제(아이디, 비밀번호 입력창 및 버튼)
- 안드로이드 앱 실행 후 로그인 창 뷰 확인 예제
안드로이드 Date API로 날짜 값 비교 계산 예제 이전 포스팅 링크 및 설명
과거에 공유된 글에서는 안드로이드 앱에서 Date API를 활용하여 날짜 값을 비교하고 계산하는 방법을 소개하고 있습니다. 안드로이드에서는 Date 클래스를 이용하여 날짜 값을 다룰 수 있습니다. 이전 포스팅에서는 Date API를 사용하여 날짜 값의 비교, 계산, 형식 변환 등 다양한 작업을 어떻게 수행하는지 상세히 다루고 있습니다. Date API를 활용하여 날짜 값에 대한 다양한 처리 방법을 알고 싶다면 해당 글을 참고하세요.
2023.07.27 - [Android] - [안드로이드] Date 날짜 및 시간 비교 및 계산하기
[안드로이드] Date 날짜 및 시간 비교 및 계산하기
목차 Date 클래스란? Date 활용 두 개 날짜 더하기 예제 Date 활용 두 개 날짜 빼기 예제 Date 두 날짜 비교하기 예제 Date 활용 예제 2 1. Date 클래스란? Date 클래스는 안드로이드에서 날짜와 시간을 표현
salguworld.tistory.com
안드로이드 SimpleDateFormat 날짜 문자열 파싱 예제 이전 포스팅 링크 및 설명
다음으로 이전 포스팅에서는 SimpleDateFormat을 사용하여 안드로이드 앱에서 날짜 문자열을 파싱하는 방법을 다루고 있습니다. SimpleDateFormat은 날짜와 시간을 원하는 형식의 문자열로 파싱하거나 형식화할 때 사용됩니다. 안드로이드에서 SimpleDateFormat을 활용하여 날짜 문자열을 파싱하는 방법과 이를 활용하여 다양한 포맷의 날짜 문자열로 변환하는 방법을 상세히 설명하고 있습니다. SimpleDateFormat을 이용한 날짜 문자열 처리에 관심이 있다면 해당 글을 참고하세요.
2023.07.27 - [Android] - [안드로이드] SimpleDateFormat 날짜 및 시간 파싱하기
[안드로이드] SimpleDateFormat 날짜 및 시간 파싱하기
목차 SimpleDateFormat 클래스란? SimpleDateFormat 초기화 예제 날짜 문자열 파싱 예제 현재 날짜와 시간의 문자열 출력 예제 다양한 포맷 날짜 출력 예제 1. SimpleDateFormat 클래스란? SimpleDateFormat 클래스는
salguworld.tistory.com
안드로이드 ConnectivityManager 클래스로 현재 Wi-Fi 연결 상태 확인 예제 이전 포스팅 링크 및 설명
마지막으로 안드로이드의 ConnectivityManager 클래스를 활용하여 현재 Wi-Fi 연결 상태를 확인하는 방법을 이전포스팅에서 알아보았습니다. 안드로이드에서는 ConnectivityManager를 사용하여 네트워크 연결 상태를 확인할 수 있습니다. 이전 포스팅에서는 ConnectivityManager 클래스를 이용하여 현재 Wi-Fi 연결 상태를 체크하고 다양한 네트워크 관련 정보를 가져오는 방법을 상세히 다루고 있습니다. Wi-Fi 연결 상태 확인 및 네트워크 관련 정보에 대해 더 알고 싶다면 해당 글을 확인하세요.
2023.07.27 - [Android] - [안드로이드] ConnectivityManager Wi-Fi 연결 및 해제 이벤트 받기
[안드로이드] ConnectivityManager Wi-Fi 연결 및 해제 이벤트 받기
목차 ConnectivityManager 클래스란? ConnectivityManager 초기화 예제 Wi-Fi 연결 상태 확인을 위한 NetworkRequest 초기화 예제 ConnectivityManager에 콜백 등록 예제 ConnectivityManager에 등록된 콜백 삭제 예제 1. Connecti
salguworld.tistory.com
안드로이드 로그인 기능을 위한 Login Activity 뷰 생성 예제(아이디, 비밀번호 입력창 및 버튼)
아래는 안드로이드 앱에서 로그인 기능을 구현하기 위한 Login Activity의 뷰를 생성하는 예제입니다. 안드로이드에서는 로그인을 위해 아이디와 비밀번호 입력창 그리고 로그인 버튼 등을 포함하는 화면을 만들어야 합니다. Login Activity의 뷰를 어떻게 구성하는지에 대한 설명입니다.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/textViewUsername"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="16dp"
android:text="아이디"
android:textSize="16sp" />
<EditText
android:id="@+id/editTextUsername"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_toEndOf="@id/textViewUsername"
android:layout_margin="16dp"
android:hint="Username" />
<TextView
android:id="@+id/textViewPassword"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/editTextUsername"
android:layout_margin="16dp"
android:text="패스워드"
android:textSize="16sp" />
<EditText
android:id="@+id/editTextPassword"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/textViewPassword"
android:layout_toEndOf="@id/textViewPassword"
android:layout_margin="16dp"
android:inputType="textPassword"
android:hint="Password" />
<Button
android:id="@+id/buttonLogin"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/editTextPassword"
android:layout_margin="16dp"
android:text="Login" />
</RelativeLayout>
안드로이드 앱 실행 후 로그인 창 뷰 확인 예제
아래는 안드로이드 앱을 실행했을 때 로그인 창 뷰가 올바르게 나타나는지 확인하는 예제입니다. 앱을 실행했을 때 로그인 창 뷰가 제대로 나타나는지 확인하는 목적입니다. 이제 다음 포스팅에서는 이 뷰를 이용하여 버튼 클릭 이벤트도 추가하고 실제 로그인 기능을 구현해보겠습니다.
<Button
android:id="@+id/buttonLogin"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/editTextPassword"
android:layout_margin="16dp"
android:text="Login" />