بروز خطا
[message]
اشتراک در سوال
رای ها
[dataList]
xml shape sample (نمونه های آماده از xml)
سلام دوستان
لطفا برای ساخت بک گراند توسط xml نمونه هایی رو قرار بدید که بشه الگو گیری کرد <
http://www.b2creativedesigns.com/shapes.php
http://www.bnotions.com/efficient-use-of-drawables-to-develop-a-dynamic-ui-on-android/
http://www.w3.org/TR/SVG/images/painting/fillrule-evenodd.svg





برای این سوال 5 پاسخ وجود دارد.
پاسخ به سوال
Criss
11 سال پیش
+4
0
دوستان لطفا در این بخش فعالیت کنید <
کسی میدونه چطور میشه دایره های رنگی بالا رو ترسیم کرد ؟
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">
<gradient
android:startColor="#FFFF0000"
android:endColor="#80FF00FF"
android:angle="45"/>
<padding android:left="2dp"
android:top="2dp"
android:right="2dp"
android:bottom="2dp" />
<corners android:radius="10dip" />
</shape>
<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">
<solid android:color="#9F2200"/>
<stroke android:width="2dp" android:color="#fff" />
<size android:width="80dp" android:height="80dp"/> </shape>
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient android:type="radial"
android:startColor="#39629C"
android:centerColor="#5580BD"
android:endColor="#C8DAF2"
android:gradientRadius="350"/>
</shape>
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="ring"
android:innerRadiusRatio="3"
android:thickness="10dip"
android:useLevel="false">
<solid android:color="#2E5697" />
<size
android:height="120dip"
android:width="120dip" />
</shape>
پاسخ به سوال
Criss
11 سال پیش
+3
0
خطوط خط چین < (لطفا در این بخش فعالیت کنید <)
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="line">
<size
android:height="2dp"
android:width="400dp" />
<stroke
android:width="1dp"
android:color="#08213D"
android:dashWidth="5dp"
android:dashGap="2dp" />
</shape>
<shape android:shape="ring" xmlns:android="http://schemas.android.com/apk/res/android"
android:innerRadiusRatio="3"
android:thicknessRatio="8"
android:useLevel="false">
<size android:width="48dip"
android:height="48dip" />
<gradient android:type="sweep"
android:useLevel="false"
android:startColor="#4c737373"
android:centerColor="#4c737373"
android:centerY="0.50"
android:endColor="#ffffd300" />
</shape>
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:a="http://schemas.android.com/apk/res/android"
a:shape="oval"
a:dither="true">
<gradient a:type="sweep"
a:startColor="#FFFF0000"
a:centerColor="#FF0000FF"
a:endColor="#FF00FF00" />
</shape>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval">
<solid android:color="#00000000"/>
<stroke android:width="4dp" android:color="#990000FF"
android:dashWidth="4dp" android:dashGap="2dp" />
<padding android:left="7dp" android:top="7dp"
android:right="7dp" android:bottom="7dp" />
<corners android:radius="4dp" />
</shape>
شسمیئسنیتزذ
پاسخ به سوال
Criss
11 سال پیش
+4
0
کلی سورس XML SHAPE اینجا هست < نمیشه کپی زد < یه نفر که وقت بزاره اینهارو تست کنه <
با عکس اضاف کنه <
من سورس های این رو تست کردم اما نشد <

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="ring"
android:innerRadiusRatio="3"
android:thickness="10dp"
android:useLevel="false">
<solid android:color="#2E5697" />
<size
android:height="120dp"
android:width="120dp" />
</shape>
پاسخگویی و مشاهده پاسخ های این سوال تنها برای اعضای ویژه سایت امکان پذیر است .
چنانچه تمایل دارید به همه بخش ها دسترسی داشته باشید میتوانید از این بخش لایسنس این آموزش را خریداری نمایید .
