이전 롤리팝 장치에 플로팅 동작 버튼을 만들려고합니다. 괜찮은 버튼을 만들었지 만 그림자가 없으면 좋지 않습니다. 여기이전 롤리팝 장치의 그림자처럼 안드로이드 플로팅 동작 버튼
는 circle.xml 파일
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<layer-list>
<item>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval">
<solid android:color="#ffffffff" />
<size android:width="40dp" android:height="40dp" />
</shape>
</item>
</layer-list>
</item>
</selector>
및
<ImageButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/circle"
android:src="@drawable/ic_search"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:padding="10dp"
android:layout_margin="16dp"
/>
가 어떻게 그것을 소재 디자인 부동 액션 버튼처럼 보이게하는 데에 그림자를 추가 않는하여 ImageButton입니까?
... https://github.com/futuresimple/android-floating-action-button이 떠있는 버튼 그래이 그림자와 다른 많은 흥미로운 속성 –
이 그것을 보았지만 그림자가있는 버튼 하나만 있으면됩니다. –
너무 복잡해집니다. u는 drawable로 물건을해야 할 것입니다 .... 이것처럼 http://stackoverflow.com/questions/15333529/how-to-provide-shadow-to-button –