2012-11-26 5 views
0

웹 사이트를로드 할 때마다 스플래시 화면로드가있는 webview 앱을 만들고 있습니다. 사용자가 화면을 회전 시키 든 아니든 관계없이 로고가 항상 가운데에 있고 진행 표시 줄 위에 표시되도록하려고합니다. 내 문제는 때마다 나는 진실적 인 관점에서 완벽한 위치를 얻는다. 수평선으로 가면 진도 표시 줄은 로고의 꼭대기가 될 것이다. 중간에 진행률 표시 줄을 표시하고 진행률 표시 줄 위에 20dp 정도의 로고를 표시하고 싶습니다. 어떤 도움! :)이 아래에있는 내 코드입니다 : 당신이 방향을 변경하려고 지금, 안드로이드 OS가 활동을 다시 시작android 앱에 스플래시 화면 로고를 배치하는 방법

<?xml version="1.0" encoding="utf-8"?> 
<RelativeLayout xmlns:a="http://schemas.android.com/apk/res/android" 
a:layout_width="wrap_content" 
a:layout_height="wrap_content" 
a:background="#ffffff" 
a:gravity="top" 
a:orientation="vertical" > 

<WebView 
a:id="@+id/webView1" 
a:layout_width="fill_parent" 
a:layout_height="fill_parent" /> 

<ImageView 
a:id="@+id/imageView1" 
a:layout_width="wrap_content" 
a:layout_height="wrap_content" 
a:layout_centerHorizontal="true" 
a:layout_marginTop="50dp" 
a:scaleType="centerInside" 
a:src="@drawable/logo" /> 

<ProgressBar 
a:id="@+id/progressBar1" 
a:layout_width="wrap_content" 
a:layout_height="wrap_content" 
a:layout_alignTop="@drawable/logo" 
a:layout_below="@drawable/logo" 
a:layout_centerHorizontal="true" 
a:layout_centerVertical="true" /> 

<Button 
a:id="@+id/buttonBack" 
a:layout_width="wrap_content" 
a:layout_height="wrap_content" 
a:layout_alignParentBottom="true" 
a:layout_alignParentRight="true" 
a:fadingEdge="horizontal|none" 
a:onClick="backActivity" 
a:text="Back" /> 

</RelativeLayout> 

답변