جلسه دهم بخش ۱ Grid Layout
چهارشنبه, ۱۳ فروردين ۱۳۹۹، ۰۹:۵۱ ب.ظ
فایل grid.xml
<?xml version="1.0" encoding="utf-8"?>
<GridLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_height="match_parent">
<View
android:id="@+id/view3"
android:layout_columnSpan="2"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_columnWeight="1"
android:layout_rowWeight="1"
android:layout_row="0"
android:background="@color/chamani"
android:layout_column="0" />
<View
android:id="@+id/view4"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_row="1"
android:layout_rowWeight="1"
android:layout_columnWeight="1"
android:background="@android:color/holo_orange_dark"
android:layout_column="0" />
<View
android:id="@+id/view5"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_row="1"
android:layout_rowWeight="1"
android:layout_columnWeight="1"
android:background="#00BCD4"
android:layout_column="1" />
</GridLayout>
حاصل عکس حاصل ۲
البته برا من که تو ایمولاتور نیمدش- فقط تو همون صفحه پیش نمایش خودش اومد
ظاهرا این مشکل مردم دیگه هم بوده باید به جای GridLayout خالی بنویسی android.support.v7.widget.GridLayout و یکی دو تا چیز تو کامپایلر تغییر بدی که به دردسرش نمی ارزه اصلا من چرا خودمو گیر این چیز بیخود انداختم سه ساعته؟!
۹۹/۰۱/۱۳