Este foro usa cookies
Este foro hace uso de cookies para almacenar su información de inicio de sesión si está registrado, y su última visita si no lo está. Las cookies son pequeños documentos de texto almacenados en su computadora; las cookies establecidas por este foro solo se pueden usar en este sitio web y no representan ningún riesgo de seguridad. Las cookies en este foro también rastrean los temas específicos que ha leído y la última vez que los leyó. Por favor, confirme si acepta o rechaza el establecimiento de estas cookies.

Se almacenará una cookie en su navegador, independientemente de su elección, para evitar que le vuelvan a hacer esta pregunta. Podrá cambiar la configuración de sus cookies en cualquier momento utilizando el enlace en el pie de página.

Calificación:
  • 1 voto(s) - 2 Media
  • 1
  • 2
  • 3
  • 4
  • 5
GrouxhoMove Status Bar views to left, center or right
#1
Guide - Move status bar views to right - left or center 


With this mod you can move statusbar views to left, right or center position without duplicating or tripling views or objects.
You can set different positions on the lock screen and the user screen. You can sort views out inside any of the containers. 

For this mod you will need to use my mods control app,  (   https://github.com/Grouxho/GrxSettingsV2    )  In demo and guide folder you will find how to set it up quickly)

Limitations:

- In this version i have not dettached battery text from battery icon. I just move battery container. 
- Notification icons will be always on left (right in RTL). Stock notification icons container sometimes leaves the gap corresponding to an icon on the right side, so it does not look nice if you move the area to the center side for example.

I have kept as it is the clock animation in Lock Screen. 


Quick guide:

The attached code is from my device, s7e oreo stock, but it also work in s9 ports.

- download attached rar

- Compare provided original and modded layouts. 

As you know, in status_bar.xml you can control views when we are in user screen, in keyguard_status_bar.xml we can control the views when we are in lock screen. 
So, we need 3 containers in both layouts. 

In status_bar.xml i have added left_container linear layout and center_container linear layout. As right side container we will use system_icons container.
In lock screen (keyguard_status_bar.xml) the left container will be keyguard_notification_icon_area_inner. I have added a center container (center_container, linearlayout) and as right container we use again system_icons container.

As i want to control both status bars what i have done is to embed original system_icons in keyguard_status_bar.xml.  
We need the views to be inside one of the 3 containers on boot before we apply the mod, so, i have included in system_icons xml both clock and an existing knox text view (knoxCustomStatusBarText).

To make all the views positions combinations to have the best looking possible, i have changed Carrier text view with to wrap_content. I have also changed some paddings (start and end). 

Finally, to the mod will work with view´s tags, so, I have added a tag to all views i am going to control


- Once you have set the layout, extract from the mod folder inside the attached file, keeping the paths) both GrxSettings.smali and StatusBar$GrxObserver.smali and place them in their places.

- Now, compare provided modded smalies with their corresponding smalies. You will find inside the modded smalies the changes to be done by looking for ### 

The guide is embedded inside those smalies and it is quite easy to do.


- Finally you need to set GrxSettings apk
 
In the attached file you will find all the resources you need to do the mod. You only need to add a navigation screen and to add 2 preferences, one for lock screen and the other one for user screen.


HOW TO ADD NEW VIEWS TO THE MOD

Really easy:

- Add the view to status_bar and/or  keyguard_status_bar.xml. Use any of the 3 containers as initial position for boots and clean installs.

- Add a tag to the view, by code or in xml as in this guide

- Add the option to the preferences arraus (this is view title and view tag in values array) in grxsettings app and do not forget to add it to the default value

values are separated by | and the format is easy:  view1_tag;position|view2_tag;position|... where postion is 0 (left), 1 (center) or 2 (right)

- Add the default value string to GrxSettings.smali


If you are not on clean install, then, you should build new grx settings app, and to run it. double click on preferences to reset the pref to default value and reboot the phone (with new modded ui)



I think i have not forgotten anything, so, enjoy 

Si alguien no entiende bien el inglés, que no se preocupe,  es por mi culpa, ja ja.  Pues eso, preguntad si tenéis dudas.


[Imagen: 5925f7b2438bccd2d3d63a5b170df7de.jpg][Imagen: 5964627d7188db25e494324f584a51ea.jpg][Imagen: 2534757beb37b155a2f1fbaf41228504.jpg]


Archivos adjuntos
.zip   GuideViewsPositionsStockS7Oreo.zip (Tamaño: 292.13 KB / Descargas: 37)
[+] 9 usuarios dicen Gracias a Grouxho por este post
Responder
#2
Great job Grouxho, I will try to add it to the EDGEone soon  Clapping
[Imagen: qeHcSFg.png]

Responder
#3
Ya lo tengo jejeejejeje, se sale

[Imagen: KlFULyI.jpg]
[Imagen: qeHcSFg.png]

[+] 4 usuarios dicen Gracias a GVM por este post
Responder
#4
(06-14-2018, 01:52 PM)GVM escribió: Ya lo tengo jejeejejeje, se sale

[Imagen: KlFULyI.jpg]
y tu para que la quieres??? jajajaja
Responder
#5
Buenas noches, una consulta, he visto por Telegram que ya esta este mod para Pie, es este mismo o han modificado algo mas? Muchas gracias de antemano por el enorme curro que se pegan dandonos toda la info para poder integrarlo a nuestras roms.
Responder


Salto de foro:


Usuarios navegando en este tema: 1 invitado(s)