마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

인트로페이지에서 프로그래스바 보이게 설정하는 법

0 추천

인트로페이지에  그림과 프로그래스바를 넣고싶은데

그림은 보이는데 프로그래스바가 안 보입니다 ... ㅜㅜ

 

 

res>layout>activity_intro_page.xml 에 작성한 코드입니다.

<?xml version="1.0" encoding="utf-8"?>
<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"
    android:background="@drawable/top"
    tools:context=".IntroPage">

    <ProgressBar
        android:id="@+id/progressBar4"
        style="?android:attr/progressBarStyle"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="181dp"
        android:layout_marginTop="402dp"
        android:layout_marginEnd="182dp"
        android:layout_marginBottom="281dp"
        android:background="#3F51B5"
        android:backgroundTint="#FFFFFF"
        android:foregroundTint="#2196F3"
        android:indeterminateTint="#3F51B5"
        android:secondaryProgressTint="#2196F3"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

</androidx.constraintlayout.widget.ConstraintLayout>
비비비 (220 포인트) 님이 2022년 4월 29일 질문

1개의 답변

0 추천
레이아웃 구성자체로는 이상이 없어 보이는데요. background 설정한 부분과 다른 뷰가 존재한다면 어떻게 실제로 배치되어 있는지 앱실행시에 layout inspector를 통해 확인해 보세요.

 참고로 backgroundTint에 설정하신 #FFFFFF는 white입니다. white 계열 백그라운드이면 아무 것도 보이지 않을 수도 있을 것 같은데요.

https://developer.android.com/studio/debug/layout-inspector
spark (227,470 포인트) 님이 2022년 4월 29일 답변
...