표 1. 다양한 픽셀 밀도의 구성 한정자

밀도 한정자

설명

ldpi

저밀도(ldpi)의 화면(~120dpi)에 대한 리소스입니다.

mdpi

중밀도(mdpi)의 화면(~160dpi)에 대한 리소스입니다. (이것이 기준 밀도입니다.)

hdpi

고밀도(hdpi)의 화면(~240dpi)에 대한 리소스입니다.

xhdpi

초고밀도(xhdpi)의 화면(~320dpi)에 대한 리소스입니다.

xxhdpi

초초고밀도(xxhdpi)의 화면(~480dpi)에 대한 리소스입니다.

xxxhdpi

초초초고밀도(xxxhdpi) 사용(~640dpi)에 대한 리소스입니다.

nodpi

모든 밀도에 대한 리소스입니다. 이들은 밀도 독립적 리소스입니다. 이 한정자 태그가 지정된 리소스의 경우 현재 화면의 밀도에 관계없이 시스템에서 리소스 크기를 조정하지 않습니다.

tvdpi

mdpi와 hdpi 사이의 화면(약 213dpi)에 대한 리소스입니다. 이 값은 '기본' 밀도 그룹으로 간주되지 않습니다. 대개의 경우 텔레비전용이며 앱에서는 대부분 필요하지 않습니다. 앱은 대부분 mdpi 및 hdpi 리소스를 제공하는 것으로 충분하며 시스템에서 필요에 따라 확장합니다. tvdpi 리소스를 제공해야 한다고 생각되는 경우 1.33*mdpi로 크기를 지정합니다. 예를 들어 mdpi 화면의 100px x 100px 이미지가 tvdpi에서는 133px x 133px입니다.

여러 밀도의 대체 비트맵 드로어블을 만들려면 6가지 기본 밀도 간에 3:4:6:8:12:16 크기 조정 비율을 따라야 합니다. 예를 들어 중밀도 화면에 대한 48x48픽셀의 비트맵 드로어블이 있는 경우 모든 다양한 크기는 다음과 같아야 합니다.

      • 저밀도(ldpi)의 경우 36x36(0.75x)

      • 중밀도(mdpi)의 경우 48x48(1.0x 기준)

      • 고밀도(hdpi)의 경우 72x72(1.5x)

      • 초고밀도(xhdpi)의 경우 96x96(2.0x)

      • 초초고밀도(xxhdpi)의 경우 144x144(3.0x)

      • 초초초고밀도(xxxhdpi)의 경우 192x192(4.0x)

 

반응형
블로그 이미지

조이풀 라이프

Lift is short, enjoy the life

,

플랫폼 버전

API 레벨

플랫폼 명

버전 코드

Android 10.0

29

Android 10

Q

Android 9

28

Pie

P

Android 8.1

27

Oreo

O_MR1

Android 8.0

26

Oreo

O

Android 7.1.1

 

Android 7.1

25

Nougat

N_MR1

Android 7.0

24

Nougat

N

Android 6.0

23

Marshmallow

M

Android 5.0

22

Lollipop

LOLLIPOP_MR1

Android 5.0

21

Lollipop

LOLLIPOP

 

Android 4.4W

20

KitKat Wear

KITKAT_WATCH

Android 4.4

19

KitKat

KITKAT

Android 4.3

18

Jelly Bean

JELLY_BEAN_MR2

Android 4.2, 4.2.2

17

Jelly Bean

JELLY_BEAN_MR1

Android 4.1, 4.1.1

16

Jelly Bean

JELLY_BEAN

Android 4.0.3, 4.0.4

15

IceCreamSandwich

ICE_CREAM_SANDWICH_MR1

Android 4.0, 4.0.1, 4.0.2

14

IceCreamSandwich

ICE_CREAM_SANDWICH

Android 3.2

13

Honeycomb

HONEYCOMB_MR2

Android 3.1.x

12

Honeycomb

HONEYCOMB_MR1

Android 3.0.x

11

Honeycomb

HONEYCOMB

 

Android 2.3.4

 

Android 2.3.3

10

Gingerbread

GINGERBREAD_MR1

Android 2.3.2

 

Android 2.3.1

 

Android 2.3

9

Gingerbread

GINGERBREAD

Android 2.2.x

8

Froyo

FROYO

Android 2.1.x

7

Eclair

ECLAIR_MR1

Android 2.0.1

6

Eclair

ECLAIR_0_1

Android 2.0

5

Eclair

ECLAIR

Android 1.6

4

Donut

DONUT

Android 1.5

3

Cupcake

CUPCAKE

Android 1.1

2

Base

BASE_1_1

Android 1.0

1

Base

BASE

반응형
블로그 이미지

조이풀 라이프

Lift is short, enjoy the life

,

Google I/O 2016

IT/Android 2016. 5. 18. 11:42

 

미국 시간 2016년 5월 18일 10시에 구글에서 매년 개최하는 Google I/0 2016이 개최된다.

자세한 일정은 아래 사이트를 참고하면 됩니다.

https://events.google.com/io2016/

 

5월 18일 10시 키노트 발표를 시작으로 다양한 분야에 걸쳐서 세션 발표가 진행된다.

올해 발표될 아이템에 대한 예측 기사는 아래의 링크를 참고하시기 바랍니다.

http://www.ciokorea.com/column/29646

1. 증강 현실, 가상 현실 및 360도 비디오

2. 더 많은 개발자를 위한 인공 지능과 머신러닝

3. 파이어베이스 개발 가속화와 가격 인하

4. 파이어베이스의 사물 인터넷 확장

5. 안드로이드 N 

6. 크롬 OS의 통합과 확장

7. 프로젝트 오라

8. 프로그레시브 웹 앱 개발용 오픈소스 프레임워크

9. 개선된 온허브

반응형
블로그 이미지

조이풀 라이프

Lift is short, enjoy the life

,

Google ExoPlayer 소개

IT/Android 2016. 5. 10. 11:25

[설명 슬라이드]

https://docs.google.com/presentation/d/1pZmGivrEDeBcHkGhmnWkQm0JFDXYlJa_-RhhBW5XJAY/edit#slide=id.g12d3eb2414_1_2

 

[Github 저장소]

https://github.com/google/ExoPlayer

 

ExoPlayer

ExoPlayer is an application level media player for Android. It provides an alternative to Android’s MediaPlayer API for playing audio and video both locally and over the Internet. ExoPlayer supports features not currently supported by Android’s MediaPlayer API, including DASH and SmoothStreaming adaptive playbacks. Unlike the MediaPlayer API, ExoPlayer is easy to customize and extend, and can be updated through Play Store application updates.

News

Read news, hints and tips on the news page.

Documentation

Using ExoPlayer

Via jCenter

The easiest way to get started using ExoPlayer is by including the following in your project's build.gradle file:

compile 'com.google.android.exoplayer:exoplayer:rX.X.X'

where rX.X.X is the your preferred version. For the latest version, see the project's Releases. For more details, see the project on Bintray.

As source

ExoPlayer can also be built from source using Gradle. You can include it as a dependent project like so:

// settings.gradle
include ':app', ':..:ExoPlayer:library'

// app/build.gradle
dependencies {
    compile project(':..:ExoPlayer:library')
}

As a jar

If you want to use ExoPlayer as a jar, run:

./gradlew jarRelease

and copy library.jar to the libs folder of your new project.

Developing ExoPlayer

Project branches

  • The master branch holds the most recent minor release.
  • Most development work happens on the dev branch.
  • Additional development branches may be established for major features.

Using Android Studio

To develop ExoPlayer using Android Studio, simply open the ExoPlayer project in the root directory of the repository.

ExoPlayer 1.5.0 released

The 1.5.0 release adds multi-track support to ExoPlayer. For each renderer, it’s now possible to query the number of available tracks and their formats using ExoPlayer’s new getTrackCount(int) and getTrackFormat(int, int) APIs. Track selection can be performed using the new setSelectedTrack(int, int) API, and getSelectedTrack(int) can be used to query the current selection for a given renderer.

Other notable improvements in 1.5.0 include smoother format adaptation and support for MP3 media segments in HLS, as well as limited support for multi-period manifests in DASH. The release notes can be found below.

  • Multi-track support.
  • DASH: Limited support for multi-period manifests.
  • HLS: Smoother format adaptation.
  • HLS: Support for MP3 media segments.
  • TTML: Support for most embedded TTML styling.
  • WebVTT: Enhanced positioning support.
  • Initial playback tests.
  • Misc bug fixes.
반응형
블로그 이미지

조이풀 라이프

Lift is short, enjoy the life

,