ユーザ用ツール

サイト用ツール


android:shape

差分

この文書の現在のバージョンと選択したバージョンの差分を表示します。

この比較画面にリンクする

次のリビジョン
前のリビジョン
android:shape [2019/11/23 13:38]
ips 作成
android:shape [2019/11/23 14:20] (現在)
ips
ライン 26: ライン 26:
 ==== android:​thicknessRatio ==== ==== android:​thicknessRatio ====
  
-<​code>​+<​code ​xml>
 <?xml version="​1.0"​ encoding="​utf-8"?>​ <?xml version="​1.0"​ encoding="​utf-8"?>​
 <shape xmlns:​android="​http://​schemas.android.com/​apk/​res/​android"​ <shape xmlns:​android="​http://​schemas.android.com/​apk/​res/​android"​
ライン 44: ライン 44:
 ==== android:​innerRadiusRatio ==== ==== android:​innerRadiusRatio ====
  
-<​code>​+<​code ​xml>
 <?xml version="​1.0"​ encoding="​utf-8"?>​ <?xml version="​1.0"​ encoding="​utf-8"?>​
 <shape xmlns:​android="​http://​schemas.android.com/​apk/​res/​android"​ <shape xmlns:​android="​http://​schemas.android.com/​apk/​res/​android"​
ライン 59: ライン 59:
  
 {{:​android:​pasted:​20191123-133515.png}} {{:​android:​pasted:​20191123-133515.png}}
 +
 +===== line =====
 +
 +角度をつけたlineを重ねることでバツが作れる。
 +角度をつけるには<​html>​android:​fromDegrees</​html>​、重ねるには<​html>​layer-list</​html>​を使用する。
 +
 +<code xml>
 +<?xml version="​1.0"​ encoding="​utf-8"?>​
 +<​layer-list xmlns:​android="​http://​schemas.android.com/​apk/​res/​android">​
 +    <​item>​
 +        <rotate
 +            android:​fromDegrees="​45"​
 +            >
 +            <shape
 +                android:​shape="​line"​
 +                android:​useLevel="​false"​
 +                android:​thicknessRatio="​15"​
 +                >
 +                <size android:​width="​150dp"​ android:​height="​150dp"​ />
 +                <stroke
 +                    android:​color="​@color/​colorAccent"​
 +                    android:​width="​10dp"/>​
 +            </​shape>​
 +        </​rotate>​
 +    </​item>​
 +    <​item>​
 +        <rotate
 +            android:​fromDegrees="​135"​
 +            >
 +            <shape
 +                android:​shape="​line"​
 +                android:​useLevel="​false"​
 +                android:​thicknessRatio="​15"​
 +                >
 +                <size android:​width="​150dp"​ android:​height="​150dp"​ />
 +                <stroke
 +                    android:​color="​@color/​colorAccent"​
 +                    android:​width="​10dp"/>​
 +            </​shape>​
 +        </​rotate>​
 +    </​item>​
 +</​layer-list>​
 +</​code>​
 +
 +{{:​android:​pasted:​20191123-141944.png}}
android/shape.1574483890.txt.gz · 最終更新: 2019/11/23 13:38 by ips