분류 전체보기(278)
-
[챕터 2-6-3] 레이아웃 커스터마이징
결과화면 이미지 변경 버튼 클릭 시 프로젝트명 : MyLayout layout1 방향 : 가로 레이아웃 가로 : 80dp 레이아웃 세로 : 80dp 레이아웃 무게 : 없음 리니어 레이아웃 세로 : wrap_content 레이아웃 높이 : wrap_content 레이아웃 마진 왼쪽 : 8dp 전화번호 레이아웃 마진탑 : 4dp 파일명 : Layout1 슈퍼클래스 : android.widget.LinearLayout Layout1.java 더보기 package org.minokuma.mylayout; import android.content.Context; import android.util.AttributeSet; import android.view.LayoutInflater; import android...
2020.02.18 -
[챕터 2-6-2] 버튼 커스터마이징
결과화면 버튼 클릭 시 프로젝트명 : MyView 이름 : MyButton 슈퍼클래스 : androidx.appcompat.widget.AppCompatButton 더보기 package org.minokuma.myview; import android.content.Context; import android.util.AttributeSet; import androidx.appcompat.widget.AppCompatButton; public class MyButton extends AppCompatButton { public MyButton(Context context) { super(context); } public MyButton(Context context, AttributeSet attrs) { s..
2020.02.18 -
[챕터 2-6-1] 나인패치 이미지
결과화면 (*) 이미지 버튼의 효과 확인 프로젝트명 : MyNinePatch res/drawable/ 에 격납 상위 버튼 3개에 이미지 01 버튼 적용 하위 버튼 3개에 이밎 버튼02 적용 텍스트 폰트색상 흰색으로 변경
2020.02.18 -
[챕터 2-5-2] 리시버
결과화면 에뮬레이터 우측의 ... 를 클릭 후 수신자번호와 SMS 메시지내용을 작성 후 SEND MESSAGE 버튼 클릭 메시지가 전송완료 시, 수신화면 프로젝트명 : MyReceiver SmsReceiver AndroidManifest.xml 더보기 SmsReceiver.java 더보기 package org.minokuma.myreceiver; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.os.Build; import android.os.Bundle; import android.telephony.SmsMessage; import and..
2020.02.17 -
[챕터 2-5-1] 서비스와 수신자
결과화면 텍스트 입력 후 서비스 시작 버튼을 클릭한 후, 5초 후 서비스 : 백그라운드 프로젝트명 : MyService 더보기 package org.minokuma.myservice; import android.app.Service; import android.content.Intent; import android.os.IBinder; public class MyService extends Service { public MyService() { } @Override public void onCreate() { super.onCreate(); } @Override public int onStartCommand(Intent intent, int flags, int startId) { return super...
2020.02.17 -
[챕터 2-4-7] 햄버거 메뉴
결과화면 프로젝트 선택 : 네비게이션 드로어 액티비티 프로젝트명 : MyDrawer 생략
2020.02.17