PDA

Ver la Versión Completa : Barra notificaciones estilo CM10 [CM9]


betiko_98
20/09/12, 18:06:29
I have managed to get CM10 style status bar in CM9 rom
A big thanks To ThilinaC (http://forum.xda-developers.com/member.php?u=1356962) for helping me

Now
what i want to do is to hide the statusbar clock


Testing only HDPI
http://www.mediafire.com/?3c1scc10q4nkp4y
Let me know it works or not

MY MODDED suystemui
http://www.mediafire.com/?y92cz70tgqchter

Now Its Perfect

http://imageshack.us/a/img38/4166/snap20120919095633.png (http://imageshack.us/photo/my-images/38/snap20120919095633.png/)

http://imageshack.us/a/img717/1874/snap20120918212245.png (http://imageshack.us/photo/my-images/717/snap20120918212245.png/)http://imageshack.us/a/img689/5170/snap20120918191715.png
By tarunagg (http://profile.imageshack.us/user/tarunagg) at 2012-09-18
Uploaded with ImageShack.us (http://imageshack.us)

what i want to do is to hide the statusbar clock



DOCUMENTATION:-

What I Did Is
Assuming you know how to decompile and compile
in SystemUI.apk\res\layout\status_bar_expanded.xml
i modified so many things even i dont remeber exactly
if anyone need help in porting PM me
here's my status_bar_expanded.xml
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.ExpandedView android:orientation="vertical" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<RelativeLayout android:background="@drawable/notification_header_bg" android:paddingTop="3.0dip" android:paddingRight="3.0dip" android:paddingBottom="5.0dip" android:layout_width="fill_parent" android:layout_height="52.0dip">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:singleLine="true" />
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="left|center" android:id="@id/date" android:paddingLeft="5.0dip" android:paddingTop="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="false" android:layout_toRightOf="@id/clock" />
<ImageView android:id="@id/settings_button" android:paddingLeft="250.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_notify_quicksettings" android:layout_alignParentLeft="true" android:contentDescription="@string/accessibility_settings_button" />
<ImageView android:id="@id/clear_all_button" android:paddingLeft="2.0dip" android:paddingRight="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_notify_clear" android:layout_toRightOf="@id/settings_button" android:contentDescription="@string/accessibility_clear_all" />
<Space android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />
</RelativeLayout>
<LinearLayout android:orientation="vertical" android:background="@drawable/notification_header_bg2" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.android.systemui.statusbar.powerwidget.PowerWi dget android:id="@id/exp_power_stat" android:background="@drawable/notification_header_bg2" android:layout_width="fill_parent" android:layout_height="wrap_content" android:minHeight="@dimen/notification_panel_widget_height" />
</LinearLayout>
<View android:background="@drawable/status_bar_hr" android:layout_width="fill_parent" android:layout_height="2.0dip" />
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@android:style/TextAppearance.Large" android:gravity="left" android:layout_gravity="top" android:id="@id/noNotificationsTitle" android:padding="8.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_no_notifications_title" />
<ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="fill_parent" android:overScrollMode="ifContentScrolls">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<com.android.systemui.statusbar.policy.Notification RowLayout android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" systemui:rowHeight="@dimen/notification_height" />
</LinearLayout>
</ScrollView>
<ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/title_bar_shadow" android:scaleType="fitXY" />
</FrameLayout>
</com.android.systemui.statusbar.phone.ExpandedView>



after that dont forget to add all png's from my systemui to yours
and in styles.xml
add
<style name="TextAppearance.StatusBar.Clock2" parent="@android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">32.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffffffff</item>
<item name="android:textAllCaps">true</item>
</style>
<style name="TextAppearance.StatusBar.Expanded" parent="@android:style/TextAppearance.Small.CalendarViewWeekDayView" />
<style name="TextAppearance.StatusBar.Expanded.Clock" parent="@style/TextAppearance.StatusBar.Expanded">
<item name="android:textSize">32.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffffffff</item>
</style>
<style name="TextAppearance.StatusBar.Expanded.Date" parent="@style/TextAppearance.StatusBar.Expanded">
<item name="android:textSize">12.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffcccccc</item>
<item name="android:textAllCaps">true</item>
</style>

and in Strings.xml
find "status_bar_date_formatter"
change it to exact

<string name="status_bar_date_formatter">"%1$s
%2$s"</string>




Luego traduzco chavales. Ahora mismo no puedo :S

Bladers
20/09/12, 18:09:48
Que interesante tio!!!:ok:

hector_cf90
20/09/12, 20:39:38
compatible con cm9 no oficial???

betiko_98
20/09/12, 21:36:36
compatible con cm9 no oficial???
Si :ok:

affair
23/09/12, 00:51:54
stikes esos interruptores decia yo jajaja, me lie pero sabia que no lo habia soñao,
y por cierto lo del sistemui podria explicarme alguien como instalarlo??? es que no me entero siempre acabo cargandome la barra jejje...

me vuelto a cargar la barra... lo que hago es sustituir ese sistemui por el que esta en sistem\app con el rootexplorer...
editar: solucionado era los permisos del root..

hector_cf90
25/09/12, 22:30:17
No es compatible con en Cm9 no oficial, lo tengo recien instalado, partiendo desde 0, le doi a instalar, empieza... y al final pone " aplicacion no instalada"

solucion?gracias

etepeu5
21/08/13, 19:09:20
es compatible con android 2.3 ???
room stock