본문 바로가기 메뉴 바로가기

요리하는 개발자

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

요리하는 개발자

검색하기 폼
  • 분류 전체보기 (26)
    • iOS Programming (1)
    • Android (16)
    • 알고리즘 (8)
    • Mac (1)
    • ㄸㅆㅊ (0)
  • 방명록

전체 글 (26)
[Android] RecyclerView 리스트에 여백 추가

RecyclerView를 이용할 때 각 항목들이 여백없이 붙게 된다 각 항목에 여백을 주고 싶다면 RecyclerView에 ItemDecoration을 추가해줘야 한다 myItemDecoration.java public class myItemDecoration extends RecyclerView.ItemDecoration { private final int padding = 5; // 여백을 5로 설정 @Override public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) { super.getItemOffsets(outRect, view, parent, state); outRect..

Android 2019. 5. 5. 00:05
[Android] Manifest merger failed : Attribute application@appComponentFactory

Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0-alpha3] AndroidManifest.xml:22:18-91 is also present at [androidx.core:core:1.0.0-alpha3] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory). Suggestion: add 'tools:replace="android:appComponentFactory"' to..

Android 2019. 5. 4. 23:54
[Android] 레이아웃 둥근 테두리

안드로이드의 레이아웃에 둥근 테두리를 지정하는 등 활용할 수 있습니다 round_border.xml round_border.xml 파일을 위와 같이 입력한 후에 res/drawable에 저장합니다 그 후 둥근 테두리를 적용하기 원하는 위치에서 android:backgroun="@drawable/round_border" 속성으로 추가하여 이용하면 적용된 모습을 볼 수 있습니다

Android 2019. 5. 4. 23:26
[백준 알고리즘]피보나치 수열(1003)

https://www.acmicpc.net/problem/1003 문제에 제시된 재귀함수를 수정하여 파이썬코드로 간단하게 해결해봤습니다.

알고리즘 2018. 2. 18. 21:07
[백준 알고리즘]패션왕 신해빈(9375)

https://www.acmicpc.net/problem/9375 이 문제의 경우 간단한 방법을 이용해서 조합을 구현하지 않아도 해결할 수 있는 문제입니다. 각 의상의 종류마다 n1, n2, n3, ...가지를 가지고 있다면 의상을 입지 않는 경우를 포함하여 경우의 수를 계산할 수 있습니다. $$_{n_{1}+1}C_{1}\times _{n_{2}+1}C_{1}\times _{n_{3}+1}C_{1}\times ...$$ 여기서 모든 종류의 의상을 입지 않는 경우 한 가지만 빼면 모든 경우의 수를 구할 수 있습니다. 따라서 코드로 구현해야할 식을 다음과 같습니다. $$(n_{1}+1)\times (n_{2}+1)\times (n_{3}+1)\times ... - 1$$ 파이썬 코드로 구현해보겠습니다. n..

알고리즘 2018. 2. 18. 18:42
이전 1 2 3 4 5 6 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • 안드로이드 여백
  • 파이어베이스
  • Android Studio
  • 에그타이머
  • 레이아웃
  • recyclrView
  • layout
  • Firebase
  • calendarView
  • androidx
  • firestore
  • 안드로이드
  • activity
  • android
  • java
  • 안드로이드 레이아웃
  • 프래그먼트
  • RecyclerView padding
  • 액티비티
  • RecyclerView 여백
  • intent
  • 스튜디오
  • round border
  • 뒤로가기
  • 안드로이드 스튜디오
  • Alfred
  • eggtimer
  • wrap_content
  • 파이어스토어
  • RecyclerView Swipe
more
«   2025/07   »
일 월 화 수 목 금 토
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바