이 유형의 패널 (하단에는 그림자 테두리가있는 흰색 패널)이 보였으며이를 내 응용 프로그램에서 사용하고 싶습니다.Android에서 이러한 유형의 패널을 만드는 방법은 무엇입니까?
https://lh6.ggpht.com/i_RUUvI7G2UM1eBn5hAcJQvqK_K1tHMiw7ynAc4hwwUD1_J1g03MkMBaFu0n5jA2YA=h900-rw
와 나는 그들을 어떻게 패널의 어떤 종류를 만들 수있다?
미리 감사드립니다.
이 유형의 패널 (하단에는 그림자 테두리가있는 흰색 패널)이 보였으며이를 내 응용 프로그램에서 사용하고 싶습니다.Android에서 이러한 유형의 패널을 만드는 방법은 무엇입니까?
https://lh6.ggpht.com/i_RUUvI7G2UM1eBn5hAcJQvqK_K1tHMiw7ynAc4hwwUD1_J1g03MkMBaFu0n5jA2YA=h900-rw
와 나는 그들을 어떻게 패널의 어떤 종류를 만들 수있다?
미리 감사드립니다.
/drawable/panel_bg.xml
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Bottom 3dp Shadow -->
<item>
<shape android:shape="rectangle">
<solid android:color="#C7C6C5" />
<corners android:radius="4dp" />
</shape>
</item>
<!-- White Top color -->
<item android:bottom="4px">
<shape android:shape="rectangle">
<solid android:color="@color/white" />
<corners android:radius="4dp" />
</shape>
</item>
</layer-list>
/layout/test.xml는
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/ScrollView1"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<LinearLayout
android:id="@+id/LinearLayout1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<LinearLayout
android:id="@+id/LinearLayout2"
android:layout_width="match_parent"
android:layout_height="100dp"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:layout_marginTop="5dp"
android:background="@drawable/panel_bg"
android:orientation="vertical" >
<TextView
android:id="@+id/tv1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:layout_marginTop="8dp"
android:text="Hello world"
android:textColor="#cccccc"
android:textSize="14sp" />
<TextView
android:id="@+id/tv2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="1234567890"
android:textColor="#cccccc"
android:textSize="14sp" />
</LinearLayout>
<LinearLayout
android:id="@+id/LinearLayout3"
android:layout_width="match_parent"
android:layout_height="80dp"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:layout_marginTop="10dp"
android:background="@drawable/panel_bg"
android:orientation="vertical" >
<TextView
android:id="@+id/tv3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:layout_marginTop="4dp"
android:text="Hellllooo"
android:textSize="16sp" />
<TextView
android:id="@+id/tv4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="ashkdhakhd"
android:textColor="#38B6AB"
android:textSize="32sp" />
</LinearLayout>
</LinearLayout>
</ScrollView>
또는 사용자 정의 목록보기
감사합니다. 패널의 그림자는 제가 찾고있는 것입니다. – Charlie
다른 테마를 설정해보십시오. 응용 프로그램에 필요한 것을 선택하십시오.
을 만들 수는에 팝업 창처럼 보인다 나 .. –