패스트캠퍼스 챌린지

[패스트캠퍼스 챌린지 16일차] Android 명언 앱

직접 코드를 수정하지 않아도 firebase를 통해 remote config 하는 기능을 만들어볼 예정입니다.

오늘은 기본 UI를 구성하였습니다.

<androidx.viewpager2.widget.ViewPager2
        android:id="@+id/viewPager"
        android:layout_width="match_parent"
        android:layout_height="match_parent"/>

기존 ViewPager랑 다르게 이번 앱에서는 ViewPager2를 사용하였습니다.

RecyclerView로 동작합니다.

<TextView
        android:id="@+id/quoteTextView"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintBottom_toTopOf="@+id/nameTextView"
        android:layout_width="0dp"
        tools:text="2323"
        android:textSize="25sp"
        app:layout_constraintVertical_chainStyle="packed"
        android:gravity="end|center_vertical"
        android:layout_height="wrap_content"/>
    <TextView
        android:id="@+id/nameTextView"
        android:gravity="end|center_vertical"
        app:layout_constraintStart_toStartOf="@+id/quoteTextView"
        app:layout_constraintEnd_toEndOf="@+id/quoteTextView"
        app:layout_constraintTop_toBottomOf="@+id/quoteTextView"
        app:layout_constraintBottom_toBottomOf="parent"
        android:layout_width="0dp"
        tools:text="2323"
        android:layout_height="wrap_content"/>

명언과 명언을 말한 사람을 나타내기 위해 textView 두개를 만들어주었습니다.

 

패스트캠퍼스 바로가기 -> https://bit.ly/3FVdhDa

본 포스팅은 패스트캠퍼스 환급 챌린지 참여를 위해 작성되었습니다.