بروز خطا
[message]
اشتراک در سوال
رای ها
[dataList]
پرسش و پاسخ
طراحی لایه های پیچیده
مدیریت گفتگو
آخرین تغییر: 12 سال پیش
سلام خدمت همه دوستان و استاد گلم
لطفا روش طراحی لایه های پیچیده که استاد در بخش اول برای تمرین قرار داده بودند را به من بگید
سورس استاد هم در سایت نیست
ممنون میشم
الان که جلوتر رفتم میبینم که به این طراحی احتیاج دارم
مرسی اگه کمکم کنید
پاسخها 1
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<TextView
android:layout_width="fill_parent"
android:layout_height="48dip" android:background="#00ff00" android:layout_margin="2dip"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<TextView
android:layout_width="0dip"
android:layout_height="48dip"
android:layout_margin="2dip"
android:background="#00ff00" android:layout_weight="0.5"/>
<TextView
android:layout_width="0dip"
android:layout_height="48dip"
android:layout_margin="2dip"
android:background="#00ff00" android:layout_weight="0.5"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<TextView
android:layout_width="0dip"
android:layout_height="48dip"
android:layout_margin="2dip"
android:layout_weight="0.33"
android:background="#00ff00" />
<TextView
android:layout_width="0dip"
android:layout_height="48dip"
android:layout_margin="2dip"
android:layout_weight="0.33"
android:background="#00ff00" />
<TextView
android:layout_width="0dip"
android:layout_height="48dip"
android:layout_margin="2dip"
android:layout_weight="0.33"
android:background="#00ff00" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<TextView
android:layout_width="48dip"
android:layout_height="48dip"
android:layout_margin="2dip"
android:background="#00ff00" />
<TextView
android:layout_width="0dip"
android:layout_height="48dip"
android:layout_margin="2dip"
android:layout_weight="1"
android:background="#00ff00" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<TextView
android:layout_width="0dip"
android:layout_height="48dip"
android:layout_margin="2dip"
android:layout_weight="1"
android:background="#00ff00" />
<TextView
android:layout_width="48dip"
android:layout_height="48dip"
android:layout_margin="2dip"
android:background="#00ff00" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<TextView
android:layout_width="48dip"
android:layout_height="48dip"
android:layout_margin="2dip"
android:background="#00ff00" />
<TextView
android:layout_width="0dip"
android:layout_height="48dip"
android:layout_margin="2dip"
android:layout_weight="1"
android:background="#00ff00" />
<TextView
android:layout_width="48dip"
android:layout_height="48dip"
android:layout_margin="2dip"
android:background="#00ff00" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<TextView
android:layout_width="48dip"
android:layout_height="48dip"
android:layout_margin="2dip"
android:background="#00ff00" />
<TextView
android:layout_width="0dip"
android:layout_height="48dip"
android:layout_margin="2dip"
android:layout_weight="1"/>
<TextView
android:layout_width="48dip"
android:layout_height="48dip"
android:layout_margin="2dip"
android:background="#00ff00" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<TextView
android:layout_width="48dip"
android:layout_height="48dip"
android:layout_margin="2dip"
android:background="#00ff00" />
<TextView
android:layout_width="0dip"
android:layout_height="48dip"
android:layout_margin="2dip"
android:layout_weight="1" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<TextView
android:layout_width="0dip"
android:layout_height="48dip"
android:layout_margin="2dip"
android:layout_weight="1" />
<TextView
android:layout_width="48dip"
android:layout_height="48dip"
android:layout_margin="2dip"
android:background="#00ff00" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<TextView
android:layout_width="0dip"
android:layout_height="48dip"
android:layout_margin="2dip"
android:layout_weight="0.33"/>
<TextView
android:layout_width="0dip"
android:layout_height="48dip"
android:layout_margin="2dip"
android:layout_weight="0.33"
android:background="#00ff00" />
<TextView
android:layout_width="0dip"
android:layout_height="48dip"
android:layout_margin="2dip"
android:layout_weight="0.33"/>
</LinearLayout>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="96dip" >
<LinearLayout
android:layout_width="0dip"
android:layout_height="match_parent"
android:orientation="vertical" android:layout_weight="0.4">
<TextView
android:layout_width="fill_parent"
android:layout_height="0dip"
android:layout_margin="2dip" android:background="#00ff00" android:layout_weight="0.3"/>
<TextView
android:layout_width="fill_parent"
android:layout_height="0dip"
android:layout_margin="2dip" android:background="#00ff00" android:layout_weight="0.3"/>
<TextView
android:layout_width="fill_parent"
android:layout_height="0dip"
android:layout_margin="2dip" android:background="#00ff00" android:layout_weight="0.3"/>
</LinearLayout>
<LinearLayout
android:layout_width="0dip"
android:layout_height="match_parent"
android:layout_weight="0.6" >
<TextView
android:layout_width="0dip"
android:layout_height="fill_parent"
android:layout_margin="2dip"
android:background="#00ff00" android:layout_weight="0.3"/>
<TextView
android:layout_width="0dip"
android:layout_height="fill_parent"
android:layout_margin="2dip"
android:background="#00ff00" android:layout_weight="0.3"/>
<TextView
android:layout_width="0dip"
android:layout_height="fill_parent"
android:layout_margin="2dip"
android:background="#00ff00" android:layout_weight="0.3"/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
نظرات
پاسخگویی و مشاهده پاسخ های این سوال تنها برای اعضای ویژه سایت امکان پذیر است .
چنانچه تمایل دارید به همه بخش ها دسترسی داشته باشید میتوانید از این بخش لایسنس این آموزش را خریداری نمایید .
ویرایش
پیام
نظرات