درود
در این تاپیک به بررسی و رفع مشکل در مورد فایل های xml پرداخته خوهد شد.
با تشکر
برای مثال : فایل dialer_activity.xml از 2.3.6 سامسونگ ، نرم افزار دایلر
کد:<?xml version="1.0" encoding="utf-8"?> <com.sec.android.touchwiz.widget.TwTabHost android:id="@android:id/tabhost" android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android"> <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <LinearLayout android:orientation="horizontal" android:id="@id/TabLayoutWrapper" android:layout_width="fill_parent" android:layout_height="wrap_content"> <com.sec.android.touchwiz.widget.TwTabWidget android:gravity="center_vertical" android:id="@android:id/tabs" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" /> <LinearLayout android:orientation="vertical" android:id="@id/LinearLayout01" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="3.0"> <RelativeLayout android:id="@id/button_wrapper" android:background="@touchwiz:drawable/tw_tab_indicator_bg_selector_ss" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginLeft="-3.0dip" android:layout_marginRight="-3.0dip" android:layout_weight="1.0"> <RelativeLayout android:gravity="center" android:id="@id/tab_button_contact" android:background="@null" android:clickable="true" android:layout_width="fill_parent" android:layout_height="fill_parent"> <ImageView android:id="@id/tab_button_contact_img" android:clickable="false" android:duplicateParentState="true" android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/dialer_tab_contact_button_normal" android:scaleType="centerInside" android:layout_centerHorizontal="true" /> <TextView android:textColor="@color/color_text_gray_white" android:ellipsize="marquee" android:id="@id/tab_button_contact_text" android:paddingTop="27.0dip" android:visibility="gone" android:clickable="false" android:duplicateParentState="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="-3.0dip" android:layout_marginRight="-3.0dip" android:text="@string/tab_contacts" android:textScaleX="0.95" android:singleLine="true" android:layout_centerHorizontal="true" /> </RelativeLayout> </RelativeLayout> <ImageView android:id="@id/bottom_image" android:background="@drawable/tw_tab_selected_bar_left" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" /> </LinearLayout> </LinearLayout> <FrameLayout android:id="@android:id/tabcontent" android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_weight="1.0" /> </LinearLayout> </com.sec.android.touchwiz.widget.TwTabHost>
موضوعات مشابه:
بوک مارک ها