Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- vim
- Retrofit2
- ReactDOM
- Anko SQLite
- Kotlin
- Anro Coroutines
- layout
- cardview
- .kt
- permission
- java
- javascript
- LinearLayout
- Eclipse
- RecyclerView
- component
- Git
- android
- RelativeLayout
- 안드로이드
- props
- http
- ConstraintLayout
- linux
- view
- block scope
- function scope
- react
- ViewGroup
- intent
Archives
- Today
- Total
목록Navigation (1)
이것저것 다 개발
Handset과 Tablet의 화면구성을 다르게 하기위해 만들어본 DrawerLayout을 사용한 앱 입니다. 먼저 Navigation Drawer Activity를 생성해줍니다.실행을 하면 아래와 같은 화면이 보입니다.스마트폰에서 실행했을땐 이렇게 Drawer를 열고 닫을수 있습니다. 태블릿에서 실행했을땐 항상 Drawer가 열려있는 상태로 만들어보겠습니다.먼저 resource file을 추가해줍니다.smallest width 를 600으로orientation 을 landscape로 설정해주고activity_main으로 만들어줍니다.다음으로 activity_main(sw600_land)를 만들어줍니다.그리고 MainActivity.kt 에서 drawer_layout이 null이 아닌경우를 추가해줍니다...
Android
2018. 1. 31. 18:05