Created
December 27, 2012 16:57
-
-
Save mstssk/4389850 to your computer and use it in GitHub Desktop.
itemとshaeの間にrotate要素を入れて回転を設定
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | |
<!-- left antenna's stroke --> | |
<item | |
android:bottom="350dp" | |
android:left="85dp" | |
android:right="248dp" | |
android:top="0dp"> | |
<rotate | |
android:fromDegrees="-30" | |
android:pivotX="80%" | |
android:pivotY="0%" | |
android:toDegrees="00" > <!-- toDegreesはここでは意味がない --> | |
<shape android:shape="rectangle" > | |
<solid android:color="@android:color/white" /> | |
<corners android:radius="50dp" /> | |
</shape> | |
</rotate> | |
</item> | |
... その他のitem要素 ... | |
</layer-list> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment