반응형


<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>
끝!!
반응형
'아카이브 > 일기' 카테고리의 다른 글
| 353일차 - The Story (가명) : Story View Model (1) (0) | 2021.12.23 |
|---|---|
| 352일차 - The Story (가명) : 배경 음악 & 효과음 (0) | 2021.12.22 |
| 351일차 - The Story (가명) : Play Layout (0) | 2021.12.21 |
| 350일차 - The Story (가명) : Bottom Navigation 완성 (0) | 2021.12.20 |
| 348일차 - The Story (가명) : DB 설계 (0) | 2021.12.18 |
| 347일차 - The Story (가명) : 기본 설정 (0) | 2021.12.17 |
| 346일차 - The Story (가명) : 필요한 기능 (0) | 2021.12.16 |
| 345일차 - 직장인과 관련된 아이디어가 없을까? (0) | 2021.12.15 |