나는 XML
파일이 있습니다안드로이드 ProgressBar를 .XML 레이아웃
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<ProgressBar
android:id="@+id/progressbar"
style="?android:attr/progressBarStyleLarge"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical|center_horizontal"
android:visibility="visible" />
<WebView
android:id="@+id/web_engine"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:visibility="gone" />
</LinearLayout>
그리고 나는 Large
스타일이기 위하여 ProgressBar
을 원하고, 수직 및 수평 화면의 정 중앙에 맞춰 ... 때 layout_width
및 height
을 fill_parent
으로 설정하면 실제 로딩 스피너의 크기가 전체 화면으로 증가합니다 ... 레이아웃을 전체 화면에 맞추고 실제로드 아이콘을 중앙에 배치하려면 어떻게해야합니까?
시도 안드로이드 : 나는 당신의 코드 수정 layout_gravity를 = 완벽하게 작동 – VendettaDroid