Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- 정처기
- 정처산기
- 파이썬
- 자바예제
- 파이썬리스트
- 파이썬배열예제
- 컴퓨터일반
- 자바
- 바텀네비게이션
- 프로그래밍
- java
- 데이터베이스
- int크기
- It
- ai
- 정보처리산업기사
- 정처기운영체제
- 안드로이드스튜디오
- 코딩
- 파이썬배열
- 운영체제목적
- 파이썬예제
- 안드로이드
- 업다운게임코드
- 스누핑
- 운영체제종류
- 백준
- bottomnavigation
- androidstudio
- 코딩공부
Archives
- Today
- Total
발전을 위한 기록
<안드로이드스튜디오> activity를 이용한 BottomNavigation (간단한 디자인) 본문
728x90
https://riwltnchgo.tistory.com/23?category=954286
actvity를 이용한 BottomNavigation
기록을 위한 게시물이므로 자세한 설명은 없다. 1. activity_main.xml main화면 구성 <?xml version="1.0" encoding="utf-8"?> 2. 다른 화면 구성 activity main 과 동일한 코드로 다른 화면 구성 3. MainActivit..
riwltnchgo.tistory.com
1. drawble에 xml추가

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#C9E4C5"/>
<corners
android:topLeftRadius="22dp"
android:topRightRadius="22dp"/>
</shape>
2. layout에 적용
<com.google.android.material.bottomnavigation.BottomNavigationView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/bottom_navigation"
android:background="@drawable/round_corners"
android:layout_gravity="bottom"
app:itemTextColor="@drawable/selector"
app:itemIconTint="@drawable/selector"
app:menu="@menu/menu_navigation"
android:layout_alignParentBottom="true"/>
(5번째 줄이 추가한 코드)
3. 실행결과

728x90
'프로그래밍 > 안드로이드' 카테고리의 다른 글
<안드로이드스튜디오> 하단 메뉴 만들기, 화면전환 (0) | 2022.11.15 |
---|---|
<안드로이드스튜디오> 앱에 YouTube 연동하는 방법 (0) | 2022.02.27 |
<안드로이드스튜디오> actvity를 이용한 BottomNavigation (0) | 2021.07.26 |
<안드로이드스튜디오> 안드로이드 - 캘린더 뷰를 이용해 날짜 확인 (0) | 2021.07.21 |