[Android Apps and Games] mjraogr:
CODES ADD

my friend [MENTION=3989065]serajr[/MENTION]

Open this dev to us, its more easy to change

Im add newUI project decompiled folder .rar on dowloads window ; Im up to the droidwin framework-res and tw-framework-res cose its some mods

On attachments upload the two UI apks compileds the DroidwinV2 UI and new dev

After our previous talk today i'm decide replace somes codes and restore xmls the clear button stock way and settings button too . Im was erase the codes that have been wrote. Can you see on .rar , I just insert the xmls respectives to script positions like the same setting button on 39.0dip

So its working now and dont stop more on FC. working now but without show the newest toggle button created on pull down menu ok!

regard

MJ

quicksettings parameters to smali (toggle button)

Action: android.intent.action.MAIN
Class: com.mappz.quicksettings.ToggleServiceStarter
Package: com.studio.quicksettings

IDS

<item type="id" name="togglepanel">false</item>
<item type="id" name="togglepanel_button">false</item>
<item type="id" name="togglepanel_icon">false</item>

Drawables ids new

<public type="drawable" name="keylockwhite" id="0x7f0202d0" />
<public type="drawable" name="recentwhite" id="0x7f0202d1" />
<public type="drawable" name="tw_toggle_panel" id="0x7f0202d2" />

layout\toggle Button

<?xml version="1.0" encoding="utf-8"?>
<merge
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="vertical" android:focusable="false" android:layout_width="fill_parent" android:layout_height="@dimen/toggle_panel_button_height">
<ImageView android:layout_gravity="center" android:id="@id/togglepanel" android:layout_width="fill_parent" android:layout_height="@dimen/toggle_panel_button_image_height" android:layout_marginTop="@dimen/toggle_panel_button_margin_top" />
<TextView android:textSize="@dimen/toggle_panel_button_text_size" android:textColor="#ff648cff" android:gravity="center" android:id="@id/btn_text" android:layout_width="fill_parent" android:layout_height="0.0dip" android:includeFontPadding="false" />
<ImageView android:layout_gravity="center" android:id="@id/btn_status_image" android:paddingLeft="0.0dip" android:paddingTop="0.0dip" android:paddingRight="0.0dip" android:paddingBottom="0.0dip" android:layout_width="fill_parent" android:layout_height="0.0dip" android:scaleType="fitXY" android:drawable="@drawable/tw_quick_panel_off" />
</LinearLayout>
</merge>

This is the FC code on TW

# codigo abaixo modificado move settings_button pra esq e clear_button to middle top e add o toggle_panel_button no lugar do settings resultado é force closed relatado no txt

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:background="#ff001e27" android:layout_width="fill_parent" android:layout_height="39.0dip" android:baselineAligned="false"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:textColor="#ff648cff" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:layout_marginTop="-3.0dip" android:singleLine="true" systemui:ampmSmall="true" />
<com.android.systemui.statusbar.policy.DateView android:textSize="16.0dip" android:textStyle="normal" android:textColor="#ff648cff" android:ellipsize="none" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginRight="4.0dip" android:maxLines="2" android:textAllCaps="true" />
<com.android.systemui.statusbar.RotationToggle android:id="@id/rotation_lock_button" android:visibility="gone" android:clickable="true" android:layout_width="32.0dip" android:layout_height="32.0dip" android:layout_margin="8.0dip" android:button="@drawable/ic_notify_rotation" android:contentDescription="@string/accessibility_rotation_lock_off" />
<Space android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />
<ImageView android:id="@id/settings_button" android:layout_width="48.0dip" android:layout_height="48.0dip" android:src="@drawable/ic_notify_quicksettings" android:scaleType="center" android:contentDescription="@string/accessibility_settings_button" />
<ImageView android:id="@id/clear_all_button" android:layout_width="48.0dip" android:layout_height="48.0dip" android:src="@drawable/ic_notify_clear" android:scaleType="center" android:contentDescription="@string/accessibility_clear_all" />
<RelativeLayout android:id="@id/togglepanel_button" android:background="#ff001e27" android:focusable="true" android:visibility="visible" android:layout_width="@dimen/status_bar_expanded_setting_width" android:layout_height="39.0dip">
<ImageView android:id="@id/togglepanel_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/tw_toggle_panel" android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@string/accessibility_settings_button" />
</RelativeLayout>
</LinearLayout>