349일차 - The Story (가명) : Bottom Navigation

2021. 12. 19. 00:28Diary/300~400

 

<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".activity.MainActivity">

    <FrameLayout
        android:id="@+id/main_frag"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        app:layout_constraintBottom_toTopOf="@+id/main_nav"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent">
    </FrameLayout>

    <com.kwon.mystroygame.widget.BottomNavigationContainer
        android:id="@+id/main_nav"
        android:layout_width="match_parent"
        android:layout_height="50dp"
        android:background="#333333"
        app:nv_text_styles="@style/bottom_nav_text"
        app:nv_item_selector="@drawable/checkable_bottom_nav"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintBottom_toBottomOf="parent"
        >

        <com.kwon.mystroygame.widget.BottomNavigationItem
            android:id="@+id/bottom_story_btn"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            app:nv_image_src="@drawable/icon_pen_3"
            app:nv_text="@string/story"
            app:nv_action="@string/action_story"
            />

        <com.kwon.mystroygame.widget.BottomNavigationItem
            android:id="@+id/bottom_option_btn"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            app:nv_image_src="@drawable/icon_search"
            app:nv_text="@string/option"
            app:nv_action="@string/action_option"
            />

        <com.kwon.mystroygame.widget.BottomNavigationItem
            android:id="@+id/bottom_start_btn"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            app:nv_image_src="@drawable/icon_start"
            app:nv_text="@string/start"
            app:nv_action="@string/action_start"
            />

        <com.kwon.mystroygame.widget.BottomNavigationItem
            android:id="@+id/bottom_collection_btn"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            app:nv_image_src="@drawable/icon_book"
            app:nv_text="@string/collection"
            app:nv_action="@string/action_collection"
            />

        <com.kwon.mystroygame.widget.BottomNavigationItem
            android:id="@+id/bottom_setting_btn"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            app:nv_image_src="@drawable/icon_setting"
            app:nv_text="@string/setting"
            app:nv_action="@string/action_setting"
            />

    </com.kwon.mystroygame.widget.BottomNavigationContainer>
</androidx.constraintlayout.widget.ConstraintLayout>

 

끝!!