Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[GUIDE][GB] (Android 5.0) Android L Theme

OP tentenponce

29th November 2014, 10:52 PM   |  #101  
KkdGab's Avatar
Senior Member
Flag Auckland
Thanks Meter: 47
 
257 posts
Join Date:Joined: Jun 2014
More
Quote:
Originally Posted by TheNoelI_Am

Guys, I Followed The Guide Strictly To The End, Didn't Get Any Errors While Decompiling/Recompiling But Had FCs When I Pushed It Back To The Phone .... Can Anyone Help?? I Can Upload My Systemui For You To Check Out..... Tried It On Stock Android 2.3 On Alcatel Tpop 4010x Please Guys...

Take aa logcat please

Sent from my HUAWEI Y210-0100
30th November 2014, 09:35 AM   |  #102  
Junior Member
Thanks Meter: 0
 
6 posts
Join Date:Joined: Nov 2014
Quote:
Originally Posted by KkdGab

Take aa logcat please

Sent from my HUAWEI Y210-0100

Here's my logcat... thanks
Attached Files
File Type: txt log.txt - [Click for QR Code] (99.2 KB, 10 views)
1st December 2014, 03:36 AM   |  #103  
KkdGab's Avatar
Senior Member
Flag Auckland
Thanks Meter: 47
 
257 posts
Join Date:Joined: Jun 2014
More
Quote:
Originally Posted by TheNoelI_Am

Here's my logcat... thanks

Found the errors, will wrok out a way soon

Code:
E/AndroidRuntime(  297): java.lang.RuntimeException: Unable to create service com.android.systemui.statusbar.StatusBarService: android.view.InflateException: Binary XML file line #4: Error inflating class com.tenten.TogglesButton2
E/AndroidRuntime(  297): 	at android.app.ActivityThread.handleCreateService(ActivityThread.java:2076)
E/AndroidRuntime(  297): 	at android.app.ActivityThread.access$2500(ActivityThread.java:157)
E/AndroidRuntime(  297): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1055)
E/AndroidRuntime(  297): 	at android.os.Handler.dispatchMessage(Handler.java:130)
E/AndroidRuntime(  297): 	at android.os.Looper.loop(SourceFile:351)
E/AndroidRuntime(  297): 	at android.app.ActivityThread.main(ActivityThread.java:3841)
E/AndroidRuntime(  297): 	at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(  297): 	at java.lang.reflect.Method.invoke(Method.java:538)
E/AndroidRuntime(  297): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:969)
E/AndroidRuntime(  297): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:727)
E/AndroidRuntime(  297): 	at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(  297): Caused by: android.view.InflateException: Binary XML file line #4: Error inflating class com.tenten.TogglesButton2
E/AndroidRuntime(  297): 	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:612)
E/AndroidRuntime(  297): 	at android.view.LayoutInflater.rInflate(LayoutInflater.java:654)
E/AndroidRuntime(  297): 	at android.view.LayoutInflater.inflate(LayoutInflater.java:439)
E/AndroidRuntime(  297): 	at android.view.LayoutInflater.inflate(LayoutInflater.java:351)
E/AndroidRuntime(  297): 	at android.view.LayoutInflater.inflate(LayoutInflater.java:307)
E/AndroidRuntime(  297): 	at android.view.View.inflate(View.java:8856)
E/AndroidRuntime(  297): 	at com.android.systemui.statusbar.StatusBarService.makeStatusBarView(StatusBarService.java:407)
E/AndroidRuntime(  297): 	at com.android.systemui.statusbar.StatusBarService.onCreate(StatusBarService.java:328)
E/AndroidRuntime(  297): 	at android.app.ActivityThread.handleCreateService(ActivityThread.java:2066)
E/AndroidRuntime(  297): 	... 10 more
E/AndroidRuntime(  297): Caused by: java.lang.ClassNotFoundException: com.tenten.TogglesButton2 in loader dalvik.system.PathClassLoader[/system/framework/com.mediatek.framework.jar:/system/app/SystemUI.apk]
1st December 2014, 11:08 AM   |  #104  
Junior Member
Thanks Meter: 0
 
6 posts
Join Date:Joined: Nov 2014
Alright man... Meanwhile Can You Upload The Y210 Systemui If It Has The L View?? Please
4th December 2014, 06:55 AM   |  #105  
KkdGab's Avatar
Senior Member
Flag Auckland
Thanks Meter: 47
 
257 posts
Join Date:Joined: Jun 2014
More
Quote:
Originally Posted by TheNoelI_Am

Alright man... Meanwhile Can You Upload The Y210 Systemui If It Has The L View?? Please

No, I have not attempted ATM because the smali files aren't supported by mine.

Sent from my HUAWEI Y210-0100
7th December 2014, 04:49 AM   |  #106  
Junior Member
Flag Cavite
Thanks Meter: 0
 
7 posts
Join Date:Joined: Oct 2014
More
This guide can work on jb 4.1.2?
23rd December 2014, 07:22 PM   |  #107  
Junior Member
Flag C:earth
Thanks Meter: 9
 
6 posts
Join Date:Joined: Jun 2014
More
Help!!
Quote:
Originally Posted by tentenponce

Android L Expanded


Video:

Description/How to use:
Android L Expanded look. I copy almost the whole interface, also the behavior. Not that much actually, because GB has limitations </3. Tap or hold or touch or slide the header, it will show the toggles and brightness slider. The close drag handle was invisible and it was 50.0px, kinda big, It was still at the bottom so you can close it from the bottom by holding the handle. Swiping the background of toggles will also hide them and will return to header-show only.


Features:
Custom Status Icons (Codes copy from statusbarpolicy to avoid bug and also to update always.)

Brightness Icon? (Hold it for flashlight)
Brightness slider (Codes copy from AOSP settings display brightness slider)
Updating/Clickable toggles
Wifi Name (Click also to update)


Bugs:
None for now. Behavior maybe but not that much.


Pre-requisites/Needed:

Do this guide for notifications and fix for media scanning AuliaYF Android L Notification View
Remove the stock toggles, follow this guide: mariozawa Remove STOCK TW toggles on expandedView or just move it to anywhere
Basic XML knowledge


Steps:

1.) Decompile SystemUI.apk.
2.) Open AndroidManifest.xml and add this code:
Code:
<activity android:name="com.tenten.LFlashLight">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
</activity>



3.) Save. Download androidL_smalis.zip at the attachment and extract it on smali/com folder.
4.) Download androidL_drawable.zip and extract it to res folder. (Or put/replace the pngs inside the zip to your res/drawable and res/drawable-ldpi)

5.) Now... xml begins. Open res/layout/status_bar_tracking.xml
6.) Remove this code:
Code:
<View android:background="#ff8e979f" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />
<com.android.systemui.statusbar.CloseDragHandle android:orientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="wrap_content">
        <ImageView android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/status_bar_close_on" android:scaleType="fitXY" />
</com.android.systemui.statusbar.CloseDragHandle>

Code:
<View android:background="#00000000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />
<com.android.systemui.statusbar.CloseDragHandle android:orientation="vertical" android:id="@id/close" android:layout_width="fill_parent" android:layout_height="50.0px" />
7.) Close and Save. Now open status_bar_latest_event.xml, Find <LinearLayout and add this inside the line:
Code:
android:layout_marginTop="2.0dip"

Code:
<LinearLayout android:layout_marginTop="2.0dip" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="70.0sp"

Code:
<com.android.systemui.statusbar.LatestItemView

Code:
android:textColor="#ff000000"
8.)Close and Save. Open quickpanel_quick_settings.xml and delete all codes. (Dont be bother by deleting also ids, because quickpanel_quick_settings_for_datamode.xml has also it ) Replace it with my code:
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.quickpanel.QuickSettingsView android:orientation="vertical" android:id="@id/quickpanel_quick_settings" android:layout_width="fill_parent" android:layout_height="wrap_content"
  xmlns:android="http://schemas.android.com/apk/res/android">
	<com.tenten.UpDownBoomPaw android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
		<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="50.0px">
			<FrameLayout android:layout_width="fill_parent" android:layout_height="50.0px" android:layout_weight="1.0">
				<com.tenten.LWifiToggle android:layout_gravity="center_horizontal|center_vertical" android:layout_width="35.0px" android:layout_height="35.0px" android:scaleType="centerInside" />
				<com.tenten.LWifiName android:textStyle="bold" android:textSize="13.0sp" android:layout_gravity="bottom|center_horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
			</FrameLayout>
			<FrameLayout android:layout_width="fill_parent" android:layout_height="50.0px" android:layout_weight="1.0">
				<com.tenten.LBluetoothToggle android:layout_gravity="center_horizontal|center_vertical" android:layout_width="35.0px" android:layout_height="35.0px" android:scaleType="centerInside" />
			</FrameLayout>
		</LinearLayout>
		<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="50.0px">
			<FrameLayout android:layout_width="fill_parent" android:layout_height="50.0px" android:layout_weight="1.0">
				<com.tenten.LSignalToggle android:layout_gravity="center_horizontal|center_vertical" android:layout_width="35.0px" android:layout_height="35.0px" android:scaleType="centerInside" />
				<com.android.systemui.statusbar.CarrierLabel android:textStyle="bold" android:textSize="13.0sp" android:textColor="#ffffffff" android:layout_gravity="bottom|center_horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" />		
			</FrameLayout>
			<FrameLayout android:layout_width="fill_parent" android:layout_height="50.0px" android:layout_weight="1.0">
				<com.tenten.LAirplaneToggle android:layout_gravity="center_horizontal|center_vertical" android:layout_width="35.0px" android:layout_height="35.0px" android:scaleType="centerInside" />
			</FrameLayout>
			<FrameLayout android:layout_width="fill_parent" android:layout_height="50.0px" android:layout_weight="1.0">
				<com.tenten.LAutoRotateToggle android:layout_gravity="center_horizontal|center_vertical" android:layout_width="35.0px" android:layout_height="35.0px" android:scaleType="centerInside" />
			</FrameLayout>	
		</LinearLayout>
	</com.tenten.UpDownBoomPaw>
</com.android.systemui.statusbar.quickpanel.QuickSettingsView>
9.) Close and Save. Open status_bar.xml and delete this code:
Code:
<com.android.systemui.statusbar.DateView android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="left|center" android:id="@id/date" android:background="#ff000000" android:paddingLeft="6.0px" android:paddingRight="6.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />

Code:
<com.android.systemui.statusbar.DateView android:textColor="#00000000" android:id="@id/date" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="fill_parent" />

Code:
xmlns:android="http://schemas.android.com/apk/res/android">
10.) Close and Save. Lastly, Open status_bar_expanded.xml and delete all the codes. Replace with my code:
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.ExpandedView android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
  xmlns:android="http://schemas.android.com/apk/res/android">
	<com.tenten.TogglesButton2 android:orientation="vertical" android:background="@drawable/quickpanel_title_background" android:layout_width="fill_parent" android:layout_height="wrap_content">
		<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="50.0dip">
			<LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="10.0px" android:layout_marginTop="3.0px" android:layout_alignParentLeft="true">
				<com.android.systemui.statusbar.Clock android:textSize="20.0sp" android:textStyle="normal" android:textColor="#ffdfdfdf" android:layout_width="wrap_content" android:layout_height="wrap_content" />		
				<com.tenten.LDateBar android:layout_marginLeft="3.0px" android:layout_marginTop="-2.0px" android:textSize="11.0sp" android:layout_width="wrap_content" android:layout_height="wrap_content" />
			</LinearLayout>		
			<LinearLayout android:gravity="right|center_vertical" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1.0" android:paddingRight="10.0px" android:layout_alignParentRight="true">
				<com.tenten.LBluetoothBar android:paddingRight="3.0dip" android:layout_width="wrap_content" android:layout_height="20.0px" />
				<com.tenten.LWifiBar android:paddingLeft="2.0dip" android:layout_width="20.0px" android:layout_height="20.0px" android:scaleType="fitCenter" />
				<com.tenten.LSignalBar android:layout_width="wrap_content" android:layout_height="15.0px" />
				<com.tenten.LBatteryBar android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="23.0px" />
				<com.tenten.LAlarmBar android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
				<com.tenten.LSettingsBar android:paddingLeft="4.0dip" android:layout_width="20.0px" android:layout_height="20.0px" />
			</LinearLayout>
		</LinearLayout>
		<ImageView android:layout_width="fill_parent" android:layout_height="3.0px" />
    </com.tenten.TogglesButton2>
	<com.tenten.LayoutAnimation1 android:background="@drawable/quickpanel_title_background" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="50.0dip">
		<Button android:id="@id/clear_all_button" android:layout_width="0.0dip" android:layout_height="0.0dip" android:text="" />
		<com.tenten.LBrightnessBar android:layout_gravity="center_vertical" android:layout_marginLeft="10.0px" android:layout_width="23.0px" android:layout_height="23.0px" />
		<com.tenten.LseekBar android:layout_gravity="center_vertical" android:paddingLeft="12.0px" android:paddingRight="12.0px" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="10.0px" android:layout_marginRight="10.0px" android:layout_weight="1.0" style="@style/tentenL_seekbar"/>
	</com.tenten.LayoutAnimation1>
	<com.tenten.LayoutAnimation2 android:background="@drawable/quickpanel_plmn_background" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
		<include layout="@layout/quickpanel_quick_settings" />
	</com.tenten.LayoutAnimation2>
	<com.tenten.LayoutAnimation3 android:layout_marginRight="5.0px" android:layout_marginLeft="5.0px" android:layout_marginTop="2.0dip" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
		<com.tenten.UpDownBoomPaw android:layout_width="fill_parent" android:layout_height="wrap_content">
			<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
				<ScrollView android:id="@id/scroll" android:scrollbars="none" android:fadingEdgeLength="16.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:overScrollMode="never">
					<com.android.systemui.statusbar.NotificationLinearLayout android:orientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content">					
						<TextView android:textSize="17.0sp" android:textStyle="normal" android:textColor="#ffffffff" android:id="@id/noNotificationsTitle" android:background="#00000000" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="0.0dip" android:text="@string/status_bar_no_notifications_title" />
						<TextView android:textSize="17.0sp" android:textStyle="normal" android:textColor="#ffffffff" android:id="@id/ongoingTitle" android:background="#00000000" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="0.0dip" android:text="@string/status_bar_ongoing_events_title" />
						<TextView android:textSize="17.0sp" android:textStyle="normal" android:textColor="#ffffffff" android:id="@id/latestTitle" android:background="#00000000" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="0.0dip" android:text="@string/status_bar_latest_events_title" />
						<LinearLayout android:orientation="vertical" android:id="@id/ongoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />				
						<LinearLayout android:orientation="vertical" android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" />
					</com.android.systemui.statusbar.NotificationLinearLayout>
				</ScrollView>
			</FrameLayout>
		</com.tenten.UpDownBoomPaw>
	</com.tenten.LayoutAnimation3>
</com.android.systemui.statusbar.ExpandedView>


11.) Close and Save. Open values/styles.xml and add this code BEFORE </resources>
Code:
<style name="tentenL_seekbar">
        <item name="android:maxHeight">2.0dip</item>
        <item name="android:indeterminateOnly">false</item>
        <item name="android:minHeight">0.0dip</item>
		<item name="android:thumb">@drawable/seek_thumb</item>
		<item name="android:indeterminateDrawable">@drawable/progress_horizontal</item>
        <item name="android:progressDrawable">@drawable/progress_horizontal</item>
</style>
12.) Save all, recompile your SystemUI and dont forget to sign it. Noooow.... wait there's more! hehe xD (Optional guides)


Optional Guide:

FLAGS:



FULLSCREEN STATUSBAR: evanlocked [guide]full expanded view jb look for sgy

Swipe to Remove Notifications (because I remove the clear button xD) hansip [HOWTO]Implement Swipe to Remove Notification



CREDITS:

StackOverFlow.com
Github.com
AOSP
@evanlocked
@PineappleOwl
@mariozawa
@AuliaYF
@jsarunotres
LenoxDevs
PotatoInc


Help sir.

Hey I can not delete the notifications, has no button so I can get notifications of statusbar? or some tutorial so I can add?
please help me !!

here is my systemUI is the l3 e400f
LG-e400f

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes