esmail3309
یک شنبه 19 مرداد 1393, 11:28 صبح
سلام دوستای گلم
یک آموزش پیدا کردم که مثل اینکه میتونم برای تب هامو سفارشی سازی (customize) کنم رنگشو عوض کنم پس زمینه بزارمو..
اینم سایتش:http://joshclemm.com/blog/?p=136
همه چیز درسته فقط نمیدونم چرا ایکلیپس از
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
موجود درفایل main.xml یعنی
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost" android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout android:orientation="vertical"
android:layout_width="fill_parent" android:layout_height="fill_parent">
<View android:layout_width="fill_parent" android:layout_height="0.5dip"
android:background="#000" />
<TabWidget android:id="@android:id/tabs"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:layout_marginLeft="0dip" android:layout_marginRight="0dip" />
<View android:layout_width="fill_parent" android:layout_height="2dip"
android:background="#696969" />
<View android:layout_width="fill_parent" android:layout_height="2dip"
android:background="#000" />
<FrameLayout android:id="@android:id/tabcontent"
android:layout_width="fill_parent" android:layout_height="fill_parent" />
</LinearLayout>
</TabHost>
</LinearLayout>
ایراد میگیره!!
مشکل از کجاست؟
یک آموزش پیدا کردم که مثل اینکه میتونم برای تب هامو سفارشی سازی (customize) کنم رنگشو عوض کنم پس زمینه بزارمو..
اینم سایتش:http://joshclemm.com/blog/?p=136
همه چیز درسته فقط نمیدونم چرا ایکلیپس از
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
موجود درفایل main.xml یعنی
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost" android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout android:orientation="vertical"
android:layout_width="fill_parent" android:layout_height="fill_parent">
<View android:layout_width="fill_parent" android:layout_height="0.5dip"
android:background="#000" />
<TabWidget android:id="@android:id/tabs"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:layout_marginLeft="0dip" android:layout_marginRight="0dip" />
<View android:layout_width="fill_parent" android:layout_height="2dip"
android:background="#696969" />
<View android:layout_width="fill_parent" android:layout_height="2dip"
android:background="#000" />
<FrameLayout android:id="@android:id/tabcontent"
android:layout_width="fill_parent" android:layout_height="fill_parent" />
</LinearLayout>
</TabHost>
</LinearLayout>
ایراد میگیره!!
مشکل از کجاست؟