티스토리 뷰
안드로이드 support v4에서 좋은것을 지원합니다.
메뉴가 좌우에서 나와서 스르릉하는...
다 만들어야 하는걸 만들어줬죠. 대신 메소드 카운트는 많이 낭비가 되지만.
일단 소스는 xml에 다음과 같이 하고 ListView부분이 스르릉하는 부분입니다.
<android.support.v4.widget.DrawerLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<FrameLayout
android:id="@+id/content"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<ListView
android:id="@+id/drawer"
android:layout_width="220dp"
android:layout_height="match_parent"
android:layout_gravity="start"
android:choiceMode="singleChoice"
android:divider="@android:color/transparent"
android:dividerHeight="0dp" />
</android.support.v4.widget.DrawerLayout>
자세한 내용
http://developer.android.com/intl/ko/training/implementing-navigation/nav-drawer.html
'Mobile > Android' 카테고리의 다른 글
| [Android]Android 기본 서체 (0) | 2015.09.07 |
|---|---|
| [Android]DialogFragment (0) | 2015.09.07 |
| [Android]Android M permission (0) | 2015.08.26 |
| [Android]ListView안의 EditText의 Focus문제 (0) | 2015.08.10 |
| [Android]Account 화면 호출 (0) | 2015.08.03 |
- Total
- Today
- Yesterday
- windows10
- github
- CentOS
- centos8
- golang
- Windows
- Xcode
- Java
- Kotlin
- Spring
- MySQL
- intellij
- nodejs
- SWIFT
- war
- go
- Codable
- cocoapods
- ios
- Python
- rxswift
- Linux
- php
- ubuntu
- enum
- tomcat
- git
- docker
- Gradle
- android
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |