Before modding read Pure Android | Android Developers
Just read this if you want your tab bars to be on the bottom so don't say that
this is iSh%@*#t style
import PureAndroid;
Just read this if you want your tab bars to be on the bottom so don't say that
this is iSh%@*#t style
import PureAndroid;
Don't use bottom tab bars
Other platforms use the bottom tab bar to switch between the app's views.
Per platform convention, Android's tabs for view control are shown in action
bars at the top of the screen instead. In addition, Android apps may use a
bottom bar to display actions on a split action bar.
You should follow this guideline to create a consistent experience with
other apps on the Android platform and to avoid confusion between actions
and view switching on Android.
STEPS
Decompile your
framework-res.apktwframework-res.apk (if you are on TouchWiz Based ROM)
contacs.apk
DialerTabActivity.apk
Modding framework-res.apk
Go to framework-res.apk\res\layout\tab_content.xml
Code:
[SIZE=3]<?xml version="1.0" encoding="utf-8"?>
<TabHost android:id="@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">
[COLOR=Red]<FrameLayout android:id="@id/tabcontent" android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_weight="1.0" />[/COLOR]
[COLOR=DarkOrchid]<TabWidget android:id="@id/tabs" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="0.0" />[/COLOR]
</LinearLayout>
</TabHost>[/SIZE]
Don'f forget to add android:layout_weight="1.0 to tabcontent or else you will not see your tab bars
Modding twframework-res.apk
Go to twframework-res.apk\res\layout\tw_tab_content.xml
Code:
[FONT=Century Gothic][SIZE=3]<?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">
[COLOR=Red] <FrameLayout android:id="@android:id/tabcontent" android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_weight="1.0" />[/COLOR]
[COLOR=DarkOrchid]<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="0.0" />[/COLOR]
</LinearLayout>
</com.sec.android.touchwiz.widget.TwTabHost>[/SIZE][/FONT]
Don'f forget to add android:layout_weight="1.0 to tabcontent or else you will not see your tab bars
Modding contacs.apk
Go to contacs.apk\res\layout-finger\topmenu_activity.xml
Code:
[FONT=Century Gothic]<?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">
[COLOR=Red]<FrameLayout android:id="@android:id/tabcontent" android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_weight="1.0" />[/COLOR]
[COLOR=DarkOrchid]<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="0.0" />[/COLOR]
</LinearLayout>
</com.sec.android.touchwiz.widget.TwTabHost>[/FONT]
Don'f forget to add android:layout_weight="1.0 to tabcontent or else you will not see your tab bars
Modding DialerTabActivity.apk credits to @CarlDeanCatabay
Go to DialerTabActivity.apk\res\layout-ldpi\dialer_activity
Code:
[FONT=Century Gothic][SIZE=3]<?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">
[COLOR=Red]<FrameLayout android:id="@android:id/tabcontent" android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_weight="1.0" />[/COLOR]
[COLOR=DarkOrchid] <LinearLayout android:orientation="horizontal" android:id="@id/TabLayoutWrapper" android:layout_width="fill_parent" android:layout_height="43.0dip">
<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="0.0dip" android:layout_height="0.0dip" android:layout_weight="3.0">
<RelativeLayout android:id="@id/button_wrapper" android:background="@touchwiz:drawable/tw_tab_unselected" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginLeft="-5.0dip" android:layout_marginTop="-12.0dip" android:layout_marginRight="-7.399994dip" android:layout_marginBottom="-6.0dip">
<RelativeLayout android:gravity="center" android:id="@id/tab_button_contact" android:background="@drawable/dialer_tab_button_bg_selector" android:focusable="true" android:clickable="true" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageView android:id="@id/tab_button_contact_img" android:background="@drawable/dialer_tab_contact_button_selector" android:clickable="false" android:duplicateParentState="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" />
<TextView android:textStyle="bold" android:textColor="@touchwiz:color/tw_color001" android:ellipsize="marquee" android:id="@id/tab_button_contact_text" android:paddingTop="30.0dip" android:clickable="false" android:duplicateParentState="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/tab_contacts" android:textScaleX="0.8" android:singleLine="true" android:layout_centerHorizontal="true" />
</RelativeLayout>
</RelativeLayout>
<ImageView android:id="@id/bottom_image" android:background="@touchwiz:drawable/tw_tab_selected_bar_left" android:layout_width="fill_parent" android:layout_height="5.0dip" android:layout_marginTop="-4.0dip" />
</LinearLayout>
</LinearLayout>[/COLOR]
</LinearLayout>
</com.sec.android.touchwiz.widget.TwTabHost>[/SIZE][/FONT]
Don'f forget to add android:layout_weight="1.0 to tabcontent or else you will not see your tab bars
If you want to move the tabs of other Apps
find its tab layout and switch the tabContent to TabBars
don't worry you will notice it easily or just attach the
tabLayout.xml here maybe we can help you.
Ask your questions in this thread not in PM:good:
find its tab layout and switch the tabContent to TabBars
don't worry you will notice it easily or just attach the
tabLayout.xml here maybe we can help you.
Ask your questions in this thread not in PM:good:
If you I help you just Press the THANKS BUTTON :laugh:
CREDITS
POTATOINC
CarlDeanCatabay
GOOGLE
CREDITS
POTATOINC
CarlDeanCatabay
Last edited: