السلام عليكم ورحمة الله وبركاته
صباحكم/مساؤكم خير~
انا مبتدئه في برمجة الاندرويد..
وحين محاولتي لتصميم الواجهه بمجموعه من الـ" تابز tabs" طلع لي هالخطأ..
Error during post inflation process:
TabHost requires a TabWidget with id "android:id/tabs".
View found with id 'tabs' is 'com.android.layoutlib.bridge.MockView'
The following classes could not be found:
- TabWidget
وعند البحث عن حلول للمشكله وجدت الكثير يعاني منها لكن ولا حل مجدي
مع العلم هذا هو كود تصميم الـ layout
<?xml version="1.0" encoding="utf-8"?>
<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:id="@+id/tab" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<TabWidget
android:id="@android:id/tabs" android:layout_width="fill_parent"
android:layout_height="wrap_content" />
<FrameLayout
android:id="@android:id/tabcontent" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:id="@+id/tab1" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:orientation="vertical"/>
<LinearLayout android:id="@+id/tab2" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:orientation="vertical"/>
</FrameLayout>
</LinearLayout>
</TabHost>ابرمج على eclipse -Android 2.1 API 7
نرجوا الافاده مشكورين مقدماً..
