• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

[MIUI][Lockscreen] eSENSEial v2.0 by mastawindu Sense 3.0 based NO ACCIDENTAL UNLOCK

Search This thread

mastawindu

Senior Member
Sep 4, 2009
307
111
eSENSEial v2.0 by mastawindu

niko_1.jpg


I like the sense 3.0 lockscreen but I’m tired of the accidental unlokings when the phone is my pocket so I created this simple but efficient anti-accidental unlocking lockscreen. Enjoy !
Comments and suggestions are welcome

Features :
- Time (bigger than the original, easier to read)
- Date in whole
- Missed calls notification
- SMS notification
- No accidental unlocking (removed the 4 shortcuts that open when putting the phone in the pocket)

Download :

Direct donwload

http://www.megaupload.com/?d=R05YYL9K
http://hotfile.com/dl/137528043/89257d3/eSENSEial_v2.0.mtz.html
http://depositfiles.com/files/cv2k8c7ig
http://www.zshare.net/download/9740062484c544db/
http://www.fileserve.com/file/WyT5gmD
http://www.wupload.com/file/2615413677/eSENSEial_v2.0.mtz
http://www.uploadking.com/28WM75YZ38
http://www.uploadhere.com/OACIV64VL5

esensial.png
 

Attachments

  • eSENSEial_v2.0.mtz
    659.5 KB · Views: 266
Last edited:

mastawindu

Senior Member
Sep 4, 2009
307
111
Awesome!

But how to change a white clock numbers?

do you create white numbers?
plZ! :)
Thanks from Hungary :)

My theming skill are quite limited, I use png of numbers that are black with a withe outline and dont have the equivalent in white.

I might have a workaround to obtain a white clock of the same size... I'll try to propose a white version in my next update.

Thank you and thank you to all the people that visited this thread, it is my first public realization.
 

picard666

Senior Member
Dec 12, 2010
536
438
fodi666.deviantart.com
Issues/bugs :
- Works only on WVGA displays (480x800)

if you want to make if work on qhd too its not that difficult

basically the one thing you need to use: relative coordinates.
if you use absolute (eg. x="13" y="88") for all the coordinates, then the ls will be rendered from the top left corner based upon the absolute numbers (the same is if you create an ls for qhd with absoulte numbers then you won't be able to see all of it on smaller screens)

that's where you should use relative numbers, too. they depend on #screen_width and #screen_height.
here let's see the sketch i made about it. it shows areas for 3 different sizes. i usually want my lockscreens to be in the middle of the screen so i usually use coordinates based upon the middle point for the x axis.
i have a 800x480 screen so if i want a point to be x="30" on it i take x="(#screen_width/2)-210. it will be 30 on 800x480 and 854x480 but will be 60 on qhd. but if i use for all things the x based on the middle point then my lockscreen will be horizontally in the middle of the screen no matter how big it is (of course if i say for example (#screen_width/2)-260 then i will see it only on qhd, because for the others it's negative)

for the y axis you can still mix the absolute and relative components. if you want something to be always 40px below the top line then you can still use y="40". but if you want something to be always 40 above the bottom line then you should use #screen_height-40, as it is 760 for 800x480, 814 for 854x480 and 920 for 960x540

basically that's the point of it. if you do so your ls'es will look more or less the same on all resolutions


(of yourse you can use screen_width and height with the width of images or whatever else, too, you can use it as a number and make functions with it, so you can strech or shrink an image based upon resolution. for that you can even use .9.png's)

hope it was clear
 

mastawindu

Senior Member
Sep 4, 2009
307
111
if you want to make if work on qhd too its not that difficult

basically the one thing you need to use: relative coordinates.
if you use absolute (eg. x="13" y="88") for all the coordinates, then the ls will be rendered from the top left corner based upon the absolute numbers (the same is if you create an ls for qhd with absoulte numbers then you won't be able to see all of it on smaller screens)

that's where you should use relative numbers, too. they depend on #screen_width and #screen_height.
here let's see the sketch i made about it. it shows areas for 3 different sizes. i usually want my lockscreens to be in the middle of the screen so i usually use coordinates based upon the middle point for the x axis.
i have a 800x480 screen so if i want a point to be x="30" on it i take x="(#screen_width/2)-210. it will be 30 on 800x480 and 854x480 but will be 60 on qhd. but if i use for all things the x based on the middle point then my lockscreen will be horizontally in the middle of the screen no matter how big it is (of course if i say for example (#screen_width/2)-260 then i will see it only on qhd, because for the others it's negative)

for the y axis you can still mix the absolute and relative components. if you want something to be always 40px below the top line then you can still use y="40". but if you want something to be always 40 above the bottom line then you should use #screen_height-40, as it is 760 for 800x480, 814 for 854x480 and 920 for 960x540

basically that's the point of it. if you do so your ls'es will look more or less the same on all resolutions


(of yourse you can use screen_width and height with the width of images or whatever else, too, you can use it as a number and make functions with it, so you can strech or shrink an image based upon resolution. for that you can even use .9.png's)

hope it was clear

Thank you for that tutorial. I might use that technique in my next release.

I have one question : can I use "#screen_height/x" with any value as "x",even decimals ?

for example : a point that is located y=200 on a 480x800 screen is "screen_height/0,25". Would "screen_height/0,25" work on a 960x540 screen ?
 

picard666

Senior Member
Dec 12, 2010
536
438
fodi666.deviantart.com
y=200 is screen_height/4 on 800x480 not /0.25 and it will be y=240 on qhd
For decimals you must use points otherwise its possible to use with any values on any resolution (thats the point of it)
Of course the size of images will limit your screen to hdpi but its not that hard to calculate it to mdpi or ldpi if you want


Sent from my GT-I9000 using XDA App
 
Last edited:
  • Like
Reactions: mastawindu

mastawindu

Senior Member
Sep 4, 2009
307
111
y=200 is screen_height/4 on 800x480 not /0.25 and it will be y=240 on qhd
For decimals you must use points otherwise its possible to use with any values on any resolution (thats the point of it)
Of course the size of images will limit your screen to hdpi but its not that hard to calculate it to mdpi or ldpi if you want


Sent from my GT-I9000 using XDA App

erratum : I meant y=200 is screen_height*0.25 (multiply not divide)

Thanks for the explanation
 

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    eSENSEial v2.0 by mastawindu

    niko_1.jpg


    I like the sense 3.0 lockscreen but I’m tired of the accidental unlokings when the phone is my pocket so I created this simple but efficient anti-accidental unlocking lockscreen. Enjoy !
    Comments and suggestions are welcome

    Features :
    - Time (bigger than the original, easier to read)
    - Date in whole
    - Missed calls notification
    - SMS notification
    - No accidental unlocking (removed the 4 shortcuts that open when putting the phone in the pocket)

    Download :

    Direct donwload

    http://www.megaupload.com/?d=R05YYL9K
    http://hotfile.com/dl/137528043/89257d3/eSENSEial_v2.0.mtz.html
    http://depositfiles.com/files/cv2k8c7ig
    http://www.zshare.net/download/9740062484c544db/
    http://www.fileserve.com/file/WyT5gmD
    http://www.wupload.com/file/2615413677/eSENSEial_v2.0.mtz
    http://www.uploadking.com/28WM75YZ38
    http://www.uploadhere.com/OACIV64VL5

    esensial.png
    2
    Issues/bugs :
    - Works only on WVGA displays (480x800)

    if you want to make if work on qhd too its not that difficult

    basically the one thing you need to use: relative coordinates.
    if you use absolute (eg. x="13" y="88") for all the coordinates, then the ls will be rendered from the top left corner based upon the absolute numbers (the same is if you create an ls for qhd with absoulte numbers then you won't be able to see all of it on smaller screens)

    that's where you should use relative numbers, too. they depend on #screen_width and #screen_height.
    here let's see the sketch i made about it. it shows areas for 3 different sizes. i usually want my lockscreens to be in the middle of the screen so i usually use coordinates based upon the middle point for the x axis.
    i have a 800x480 screen so if i want a point to be x="30" on it i take x="(#screen_width/2)-210. it will be 30 on 800x480 and 854x480 but will be 60 on qhd. but if i use for all things the x based on the middle point then my lockscreen will be horizontally in the middle of the screen no matter how big it is (of course if i say for example (#screen_width/2)-260 then i will see it only on qhd, because for the others it's negative)

    for the y axis you can still mix the absolute and relative components. if you want something to be always 40px below the top line then you can still use y="40". but if you want something to be always 40 above the bottom line then you should use #screen_height-40, as it is 760 for 800x480, 814 for 854x480 and 920 for 960x540

    basically that's the point of it. if you do so your ls'es will look more or less the same on all resolutions


    (of yourse you can use screen_width and height with the width of images or whatever else, too, you can use it as a number and make functions with it, so you can strech or shrink an image based upon resolution. for that you can even use .9.png's)

    hope it was clear
    1
    niko_2.jpg


    Change log :
    2011-12-15 v2.0
    - New notification icons
    1
    While I don't use this particular lock screen, its a great idea and I know lots of users will be happy with it.

    Thanks!

    Sent from my PC36100 using xda premium
    1
    Awesome!

    But how to change a white clock numbers?

    do you create white numbers?
    plZ! :)
    Thanks from Hungary :)