1
하단 레이아웃에 그래디언트를 적용하고 싶지만 상단 레이아웃에서만 작동하는 것으로 보입니다.안드로이드 : 화면 아래쪽의 상대 기울이기에 대한 그래디언트
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="#FFF">
<RelativeLayout android:id="@+id/relativeLayout1" android:layout_alignParentTop="true" android:layout_height="60sp" android:layout_width="fill_parent" android:background="@drawable/tool_bar_gradient"></RelativeLayout>
<RelativeLayout android:id="@+id/relativeLayout2" android:layout_alignParentBottom="true" android:layout_height="60sp" android:layout_width="fill_parent" android:background="@drawable/tool_bar_gradient"></RelativeLayout>
</RelativeLayout>
구배 (tool_bar_gradient)의 Z :
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient xmlns:android="http://schemas.android.com/apk/res/android" android:startColor="#257aa1" android:endColor="#6fb7d9" android:angle="90" android:bottom="450sp">
</gradient>
</shape>
결과 : 여기
메인 레이아웃의 코드 (test.xml의) 인 기울기상의 유효 상단 바입니다. 하단 바에는 없습니다 ...무엇이 잘못 되었나요?
PS : 대상은 Android 2.1-update1 또는 Android 2.2입니다.
를 얻을 수 있지 않습니다
screen i am getting
되는 것을 얻고있다 .... 가있다 버그는 IDE가 아니었다. 시간을 주셔서 감사합니다;) –