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
- 컴퓨터일반
- 코딩
- 파이썬예제
- 바텀네비게이션
- 파이썬리스트
- 안드로이드스튜디오
- 정보처리산업기사
- 엑티비티
- 정처산기
- bottomnavigation
- 파이썬
- 코딩공부
- 데이터베이스
- 자바예제
- 정처기
- 자바
- 파이썬공부
- 정처기운영체제
- androidstudio
- 업다운게임코드
- java
- 자바연산자
- 스누핑
- 파이썬배열
- 백준
- 파이썬배열예제
- 운영체제종류
- int크기
- 안드로이드
- 운영체제목적
Archives
- Today
- Total
발전을 위한 기록
<안드로이드스튜디오> activity를 이용한 BottomNavigation (간단한 디자인) 본문
https://riwltnchgo.tistory.com/23?category=954286
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 |