Skip to content

Instantly share code, notes, and snippets.

@sjjeong
sjjeong / NaverApi.kt
Last active September 16, 2020 11:17
RxJava Sample 코드 제공 파일
import io.reactivex.Single
import retrofit2.http.GET
import retrofit2.http.Query
interface NaverApi {
@GET("v1/search/movie.json")
fun getMovies(@Query("query") query: String): Single<NaverMovieResponse>
}
<?xml version="1.0" encoding="utf-8"?>
<layout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<android.support.design.widget.CoordinatorLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">