RecyclerView 라이브러리 추가하기 - androidx.recyclerview:recyclerview

CODEDRAGON Development/Android

반응형


 

 

RecyclerView 라이브러리 추가하기 - androidx.recyclerview:recyclerview

 

AndroidStudio 상단의 도구모음에서 우측에 있는 [Project Structure] 아이콘을 클릭합니다.


 

 

좌측 메뉴에서 [Dependencies] 클릭 >>

중간 창에서 [app] 선텍 >>

우측 창에서 [+] 아이콘 클릭 >> [Library dependency] 클릭


 

 

 

"recyclerview" 입력한 우측의 [Search] 버튼을 클릭합니다.


 

 

검색된 항목 [androidx.recyclerview] 항목을 선택 >> 오른쪽에서 [1.0.0] 선택 하면 아래 "Library:" 전체 라이브러리명이 보여집니다.

>> [OK]

 

 


 

라이브러리가 추가되어졌습니다. >> [OK]


 

 

build.gradle(Module:App)에도 추가되어진것을 확인할 있습니다.

dependencies {

    implementation fileTree(dir: 'libs', include: ['*.jar'])

    implementation 'androidx.appcompat:appcompat:1.0.2'

    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'

    testImplementation 'junit:junit:4.12'

    androidTestImplementation 'androidx.test:runner:1.1.1'

    androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'

    implementation 'androidx.recyclerview:recyclerview:1.0.0'

}

 

 

 

디자인 편집기에 RecyclerView 항목이 표시가 되는 것을 확인할 있습니다.


 


반응형