본문 바로가기

Mobile/Android

[Android]Widgets Text TextView, EditText, Password, PlainText, E-mail, Phone, Postal Address, Multiline Text, Time, Date, Number ... Buttons Button, ImageButton, Chip, CheckBox, Radio, Toggle, Switch, FloatingAction... Widgets View, ImageView, WebView, VideoView, CalendarView, ProgressBar, SeekBar, SearchView, TextureView... Layouts ConstraintLayout, LinearLayout, FrameLayout... Containers Spinner, RecyclerView,..
[Android] Log Error Log.e("tag", "Error msg") Warning Log.e("tag", "Warning msg") Information Log.e("tag", "Information msg") Debugging Log.e("tag", "Debugging msg") Verbose Log.e("tag", "Verbose msg") >> 상단에서 부터 심각성 높은 단계 >> 예상 할 수 있는 문제에 대한 심각성에 따라 각각의 로그를 적재적소에 남기는 것을 연습하는 것이 좋다. >> 협업시에는 필수적으로 관리 되어야 하는 부분
[Android] Activity Life Cycle onCreate() 레이아웃 정의, 요소 정의(Button, EditText...) onStart() 레이아웃 정의, 요소 정의(Button, EditText...) onResume() 다른 액티비티가 호출되면 onPause()가 자동으로 호출 됨, 화면이 켜질때 처리해야 하는 것들을 작성 onPause() 화면이 사라질때 처리해야하는 것들을 작성 onStop() 실행된지 시간이 지난 앱들이 정지되는 단계, 자동으로 Destroy 되기전에 처리해야하는 것들을 작성 onDestroy() 앱을 완전 종료하는 단계, 시점을 알수 없으므로 되도록 사용하지 않는게 좋음
[Android] 안드로이드 구성요소 Activity 사용자가 눈으로 볼 수 있는 화면을 구성하는 요소 Fragment 액티비티 내에서 독자적으로 동작하는 화면의 구성 요소 Broadcast Receiver 안드로이드 시스템에서 제공하는 정보를 수신, 특정 정보를 수신하는 요소 Service 백그라운드에서 실행되는 요소, 다운로드, 음악 플레이 등 Content Provider 안드로이드 애플리케이션 간의 데이터를 공유하기 위한 표준 인터페이스 제공 Notification 특정 이벤트를 알리는 요소, 기기 상단에 표시되는 메시지 Intent 안드로이드 구성 요소에 다양한 정보를 전달하기 위한 객체(메시지 객체) Intent Filter 다양한 인텐트를 필터링 하여 원하는 인텐트만 수신할 수 있도록 하는 요소
[Android Resources] include xml layout layout="@layout/commonlayout" android:id="@+id/id" />
[Android Resources] Drawable, Mipmap drawable/ For bitmap files (PNG, JPEG, or GIF), 9-Patch image files, and XML files that describe Drawable shapes or Drawable objects that contain multiple states (normal, pressed, or focused). See the Drawable resource type. mipmap/ For app launcher icons. The Android system retains the resources in this folder (and density-specific folders such as mipmap-xxxhdpi) regardless of the screen resolu..
[Android Resources] Android Drawable android:state_pressed="true">        android:shape="rectangle">        android:color="#FF0000"/>         android:width="2dp" android:color="#4b4c4c"/>        android:bottomLeftRadius="12dp" android:bottomRightRadius="12dp" android:topLeftRadius="12dp" android:topRightRadius="12dp"/>