yashsingh1/xdaforums huggingface dataset:
[Android Themes] opher50:
Hey guys .. I'm starting to figure things up but I need some help ^^

Lets say I have this :

<Unlocker name="unlocker" visibility="true">

<StartPoint x="80" y="#screen_height-60" w="319" h="260">

<NormalState>

<Image x="80" y="#screen_height-60" src="unlocker.png">

</Image>

</NormalState>

</StartPoint>

<EndPoint x="80" y="#screen_height-240" w="319" h="50">

<Path x="80" y="#screen_height-60" tolerance="300">

<Position x="0" y="0" />

<Position x="0" y="-180" />

</Path>

</EndPoint>

</Unlocker>

it starts from a specific points and ends at one .. now I want to make that it has like 3 stops ... Unlock , Sms , Phone ... Now the thing is it is supposed to just keep on going from bottom to top and at 3 different points it will open something else .. how do I add a stop point for SMS lets say?

edit :

I tried doing it myself .. but it came wrong ..

<Unlocker name="unlocker" visibility="true">

<StartPoint x="80" y="#screen_height-60" w="319" h="260">

<NormalState>

<Image x="80" y="#screen_height-60" src="unlocker.png">

</Image>

</NormalState>

</StartPoint>

<EndPoint x="80" y="#screen_height-160" w="319" h="50">

<Intent action="android.intent.action.MAIN" type="vnd.android-dir/mms-sms" category="android.intent.category.DEFAULT"/>

<ReachedState>

<Image x="80" y="#screen_height-140" src="reached_sms.png"/>

</ReachedState>

<Path x="80" y="#screen_height-60" tolerance="300">

<Position x="0" y="0" />

<Position x="0" y="-180" />

</Path>

</EndPoint>

<EndPoint x="80" y="#screen_height-480" w="319" h="50">

<Path x="80" y="#screen_height-60" tolerance="300">

<Position x="0" y="0" />

<Position x="0" y="-180" />

</Path>

</EndPoint>

</Unlocker>

the problems are :

- for some reason it wont go further then the "-240" although i changed it to 480 ...

- it will open the SMS but it wont show the reached_sms.png I chose ..

- last and worst one ^^ it gets to the part where it is supposed to unlock the device but it just wont unlock O_O

- btw : how do I make it go from top to bottom? O_o

last edit :

tried playing around abit , thats what I got :

<Unlocker name="unlocker" visibility="true">

<StartPoint x="80" y="0" w="319" h="520">

<NormalState>

<Image x="80" y="0" src="unlocker.png">

</Image>

</NormalState>

<PressedState>

<Image x="80" y="0" src="unlocker.png"/>

</PressedState>

</StartPoint>

<EndPoint x="80" y="250" w="319" h="520">

<Intent action="android.intent.action.MAIN" type="vnd.android-dir/mms-sms" category="android.intent.category.DEFAULT"/>

<ReachedState>

<Image x="80" y="270" src="reached_sms.png"/>

</ReachedState>

<Path x="80" y="0" tolerance="300">

<Position x="0" y="0" />

<Position x="0" y="666" />

</Path>

</Unlocker>

for some reason what it does is : I turn on the screen , I see my wallpaper and the original status bar and no locker at all .. when I tap the screen it opens O_O

HELP :S

Thanks :D
[Android Themes] cowsquad:
Deleted :)
[Android Themes] cowsquad:
Have you figured things out yet?
[Android Themes] JackyJack:
Hi,

I'm trying to reproduce a moded stock lockscreen, I got almost everithig done but the sms pop-up.

I did not find the variable that would allow me to display the text of the last unread sms (also how to truncate it so it fits on 2 lines).

Thanks for any help
[Android Themes] cowsquad:
The variables for unread sms are not available to custom lockscreen man. I can't find it either
[Android Themes] tryantar:
Can somebody point me in the right direction?

I've been trying to link an image from within the SD card into the lockscreen

it seems i either hadn't done it correctly or its utterly impossible...

here are my codes i tried:-

Can the OP or somebody give me some pointers?
[Android Themes] cowsquad:
That's not possible. first, you have to pull the image out of ur sdcard then copy that into the advance folder of the lockscreen you are trying to mod. Get it
[Android Themes] JackyJack:
Looks like you tried everything, maybe this is simply not possible, is this because you want to change the picture without changing the theme ?

If not you'll just have to include the picture in the advanced folder.
[Android Themes] JackyJack:
Ho yeah, and I had to ask also...

How to display text regarding of the system language ?
[Android Themes] Mko979:
Does anyone know the format code for month and day to be written out in full and in full capital letters? Or is three even possible. Thanks
[Android Themes] [just_smile]:
mans,hepl me :) how to do the sound play when unlock?
[Android Themes] JackyJack:
I did not try this but, as written in the OP this should work !

<EndPoint x="0" y="640" w="480" h="400" reachedSound="your_sound.mp3">

Of course this is for your own personalized lockscreen, if you just want to change the sound of the default MIUI lockscreen, then I don't really know...
[Android Themes] [just_smile]:
how to do this?
[Android Themes] picard666:
is it possible to use the number of year, month and day as variables? (to call image files according to that number)

edit: i'm just totally blind, it is in the manifest *facepalm*
[Android Themes] phly-phantom:
@pomenx Great tutorial. Thank you for your work.

What do I have to do to remove the status bar. I am presently using the zipper lockscreen.
[Android Themes] cowsquad:
I will answer that question man all you need to have is theme.xml I do have it, so pm and will email it to you, then just copy that into the lockscreen folder right next to the advance folder. I will give further instruction alright
[Android Themes] cowsquad:
@ New format string variable for custom lock-screen support on 1.9.3O can anyone update this variables
[Android Themes] nycctr00:
im a noob and need help can someone tell me what i have to edit on the lockscreen to make it fit and work on the htc evo 3d qhd display please i been trying to find out for a while i know how to get to the file to edit but i dont understand code so i dunno what to change any help please
[Android Themes] SoCalSpecialist:
i wished more people would reference this thread.
[Android Themes] raskolnikoff:
Hi people, im noob and i just want to know - is there any way to make MIUI lockscreen work with 3d party music apps like PowerAMP, Music PlayerPro etc? I mean showing a title and cover of surrent song.
[Android Themes] RavenMad:
Yeah, I'd like to know this too.

Also, is it possible to use conditional statements like:

format="if((#call_missed_count)>0,(%d Missed calls),)" paras="#call_missed_count"

(which is supposed to only show the missed calls counter if there are any - ie, if there's no missed calls, don't display '0' - display nothing instead)
[Android Themes] Antennas:
It can be done. h_zee does address this in his lockscreen creating video, but I can not remember what is required. It's worth a watch.

(video can be found first post of the larger lockscreen thread here)
[Android Themes] RavenMad:
Thanks mate - yeah, watching h_zee's vid tutorial but I obviously haven't got to that bit yet! :)
[Android Themes] h_zee13:
Ok so what you want to know is if IF and ELSE codes will work?

the answer is no.

I strongly suggest for you to read everything thats in the OP if you haven't already.

I think pomenx did a great job so far with this thread.

I came from 0 knowledge on how to edit XML files or to make themes for lockscreens and all I did was follow what's in this thread. I actually still have it opened whenever I work on a theme.

So whatever is posted in the OP can be done, anything else NOT
[Android Themes] sheddi:
Is it possible for the Button element to open an app on double click?
[Android Themes] da_malyk:
can we make an animation without loop? example SizeAnimation?
[Android Themes] kitsune_snake:
on the last frame put 1000000000000000 as the time, it wont completly stop the loop but it will make the last frame last for a good +5min =P
[Android Themes] mikep99:
Don't think you can without making an image for each number :(
[Android Themes] picard666:
of course you can do it

manifest post about texts shows an example:

<Text x="240" y="130+#unlocker.move_y" category="Charging" color="#AAFFFFFF" alpha="200" size="24" format="Charging (%d%%)" paras="#battery_level" align="center"/>

you can customize the coordinates, can take out the category, customize the color and size, and then: for format you can take any text you want, only you need to put in "%d%" for numerical parameters (such as "%d% unread messages"), plus you need to change paras to #call_missed_count for calls or #sms_unread_count for msgs
[Android Themes] mikep99:
I understand that but I think Melissa wants %%d% to be text rather than numbers. eg. "Twentytwo" not "22".

Correct me if I'm wrong :)
[Android Themes] melissapugs:
Yeah, that's exactly what I want. I don't mind making pics for them, maybe on a future theme, if the styling needs to be super awesome and beyond basic text properties.

Would you or someone else be able to tell me what to put in to display the pics of numbers as the display for missed call/sms counts?
[Android Themes] picard666:
oh, then i misunderstood you. sorry
[Android Themes] mikep99:
No prob :)
[Android Themes] kitsune_snake:
in one of a manifest I checked they used these lines for the numerical pictures, all pics have the same name only the suffix changed (_0,_1,_2,etc)

the first line is for the decimal digit and the second the numeral digit

<Image x="0" y="0" src="not_c.png" srcid="#sms_unread_count/10"/>

<Image x="0" y="0" src="not_c.png" srcid="#sms_unread_count%10"/>

idk if that helps but meh,trying =P

also if someone could help me out, i've been pulling my hair out (and I'm turning bald by now) trying to find out what doesn't work with my manifest, I know I asked like 3 times already but i'd need the help of someone who actually know these things =P

again any help would be appreciated
[Android Themes] h_zee13:
I quickly went through the manifest and spotted a few mistakes.

For example:

- you never opened the music controls with <Music_Control>. You only have a closing </Music_Control>

- visibility="#music_state"

- you have somewhere a "y" coordinate that you declared in this way: y=Y=#screen…

Anyways I suggest you opened an existing theme's manifest file and start editing it step by step and add what you want to it. Try using a theme that looks like yours meaning if its a iPhone slider type then use a iPhone slider type manifest.

Also take one of my recent themes as I try to keep the manifest file pretty clean and easy to read

Hope this helps
[Android Themes] kitsune_snake:
thank you for the quick overview, i thought #music_state could work for visibility, i guess I need to reread the manifest reference . Also I thought I got rid of all the double y's looks like I need to be more careful when I write manifest at 2am 8D
[Android Themes] h_zee13:
Well music state does work for visibility but you just wrote it wrong. Like I said get my sophisticated theme and check out the manifest file
[Android Themes] brian.dore:
I finaly got sick of HTC Sense and am back to MIUI. I thought I would rewrite my Qlock LS theme, to make it useable for all devices/resolutions. I have completly redone my graphics to fit all devices, and I want to keep the new LS as close to the actual Qlock as possible. In order to do this I must be able to represent time in 5min increments. I can do this part.

My question is, is it possible to represent the hour in a way so after 30mins past it displays something like (6:45 would be) quarter to 7, as displayed in the picture. I have created an image for each representation of time I just need to know how to write the src= line for hour
[Android Themes] Whippler:
Is it possible to get pulldown notifictionbar in MIUI lockscreen?

Looks nice, nut i would prefer 6:45 rather than 15 to 7
[Android Themes] cyberon:
Can someone please add weather to stock MIUI lockscreen!

Thanks.
[Android Themes] cowsquad:
Lol. Weather isn't available on stock miui lockscreen. Only for custom ones
[Android Themes] brian.dore:
I think I will have to go that route. I do not think what I am looking for is supported yet.
[Android Themes] smokin901:
<ContentProviderBinder uri="content://call_log/calls" columns = "_id,number" where = "type=3 AND new=1" countName="missCall">
<Variable name="miss_id" type="int" column="_id" row="0"/>
<Variable name="miss_number" type="string" column="number" row="0"/>
</ContentProviderBinder>

<ContentProviderBinder uriFormat="content://com.android.contacts/data/phones/%d"
uriParas="#miss_id"
columns = "display_name"
countName="countContact">
<Variable name = "Contact_Name" type = "string" column = "display_name" row="0"/>
</ContentProviderBinder>

in the above code 2nd query depends on first but it is not working anyone has any clue
[Android Themes] picard666:
if i get it correctly you use the 1st query to get the caller number and the contacts id of it and the 2nd query to get the name for that particular id

then why don't you use this? call_log/calls has both the number and the name included in the database

(by the way you using the text tag correctly? i had some problems with that either, for integer it's %d and then #variable but for strings it's %s and @variable)

something else:

how can i get a query where some filtering parameters need to be within a range?

eg i have a column timeFrom and another one timeTo and i want the row where #time_sys is between them. i wanted to use where="timeFrom<#timesys AND timeTo>#timesys" but then lockscreen just doesn't show up as there is code formatting error. if i take this out then it works, only my data doesn't show up. i even tried the new data variables ge() and lt() but it still won't show any data
[Android Themes] pomenx:
"where" does not support format, it seems I need to add it. thanks for your feedback. and I'll also give solution for the query dependency problem. hopefully would include in this week's release.
[Android Themes] ohshootrawr:
Aww, that's too bad. I was hoping for something minimal and fancy like that xD

The code I'm assuming you're looking for is to manipulate only certain timeframes, correct? If so, I have not seen it either, unfortunately -___-
[Android Themes] cyberon:
Thanks for pointing the obvious! ;)
[Android Themes] smokin901:
Aha i did not know name is one the field in there. that is why i was trying to get name from contacts database. I think i am using the qury correctly but problem is is variable does not get the values from first query it either 0 for int and NULL for string, from logcat it looks like these queries are running asyncronous.
[Android Themes] eroye:
Hello world.

Like many people, having the weather on the lockscreen is a real plus, I would rather use Fancy Widget is already installed on My phone rather than engineering widget that I find not very reliable (incorrect location, approximate temperature ...) :mad:.

It appears to have recovered the variables of the application, or can I find them ?

Sorry if the question has already been asked or if I may have missed the answer to my question :o.

Thank you for your future answer :).
[Android Themes] brian.dore:
Yes that is what I am looking for. I need to be able to display it (hour +30 minutes) septate from the minutes. I know how to display each minute individually and foretaste from the hour, hzee had explained how to do so before, but I do not know how to manipulate the hour.
[Android Themes] picard666:
i'd try something like this (eg by using images, but you could do the same with texts, either, by using the appropiate tags):

<image src="...." srcid="#minute" />

<image src="..." visibility="le(#minute,30)" srcid="#hour24"/> that means hour is shown if minute is equal or smaller than 30

<image src="..." visibility="gt(#minute,30)" srcid="1+#hour24"/> that means hour+1 is shown when minute is greater than 30 (but not equal)

i dont know if this works, it should.

although this needs 1.11.25 at least because of the new logical strings (le and gt)
[Android Themes] Youngunn2008:
So with new lockscreen, is it possible to grab album art from player pro and display on music controls?
[Android Themes] ohshootrawr:
+1 bumping :)
[Android Themes] :
Note to the developer of MIUI lockscreen: very good work, LS looks now ver nice. My only one request is - please add settings in system panel - i.e. 12 or 24 h, refresh time, etc. Thanks.
[Android Themes] brian.dore:
I'll give it a shot, shortly, I'm not running miui at the moment. thank you.
[Android Themes] fatcon:
Total noob to this so apologies if the answer is obvious.

I'm using the SixWaysMod lockscreen which is perfect apart from it doesn't recognize when i receive a new email to either of my two gmail accounts.

Is there a setting i need to change or something in the manifest?

This is the Gmail part in the manifest:

<!-- Gmail Shortcut -->
<EndPoint x="#screen_width/2-192" y="#screen_height-484" w="10" h="10">
<Intent action="android.intent.action.MAIN" package="com.google.android.gm" class="com.google.android.gm.ConversationListActivity"/>
<ReachedState>
<Image x="#screen_width/2-220" y="#screen_height-512">
<SourcesAnimation>
<Source src="ring_1.png" time="200"/>
<Source src="ring_2.png" time="400"/>
<Source src="ring_3.png" time="600"/>
<Source src="ring_4.png" time="800"/>
<Source src="ring_5.png" time="1000"/>
</SourcesAnimation>
</Image>
</ReachedState>

<Path x="#screen_width/2-46" y="#screen_height-406">
<Position x="0" y="0" />
<Position x="-146" y="-78" />
</Path>
</EndPoint>
</Unlocker>

<!-- Button -->
<Button x="0" y="40" w="480" h="166">
<Triggers>
<Trigger action="double" target="music_control" property="visibility" value="toggle"/>
</Triggers>
</Button>

Any help would be most appreciated, thanks
[Android Themes] atarantino:
Anyone know the manifest code to open the default miui email.apk instead of gmail from the lockscreen? I've been playing around with it, but haven't had any luck thusfar.
[Android Themes] picard666:
as i see you included this in this weeks release (Lock screen display support for third-party application data parameters queries and dependencies)

what is the correct code format for making the above? (i mean when i have two columns, timeTo and timeFrom and I want to select where #time_sys is between the value of these two)
[Android Themes] Mr.Wong:
@pomenx

It is posible to implement in the <Time> Tag the rotation <Time angle=""/>

@all

Or is there a other way to display the time vertical?
[Android Themes] dbilliter:
Working on a new lockscreen but can't figure out a couple of things. If anyone has any ideas let me know on my blog.

Below is the portion of the lockscreen manifest file I am working on.

<VariableBinders>

<ContentProviderBinder uri="content://gmail-ls/conversations" columns="name,subject" order="dtstart DESC">

<Variable name="mail_name1" type="string" column="name" row="0"/>

<Variable name="mail_subject1" type="string" column="subject" row="0"/>

</ContentProviderBinder>

<ContentProviderBinder uri="content://calendar.events" columns="title,event_location,dtstart" order="dtstart DESC">

<Variable name="cal_title1" type="string" column="title" row="0"/>

<Variable name="event_start1" type="long" column="dsstart" row="0"/>

<Variable name="event_location1" type="string" column="body" row="0"/>

</ContentProviderBinder>

<ContentProviderBinder uri="content://notes/note" columns="title,modified_date,snippet" order="modified_date DESC" countName="note_count">

<Variable name="note_title" type="string" column="title" row="0"/>

<Variable name="note_date1" type="long" column="modified_date" row="0"/>

<Variable name="note_snippet1" type="string" column="snippet" row="0"/>

</ContentProviderBinder>

</VariableBinders>

<Image x="#screen_width-75" y="216" src="icon_email.png"/>

<Text x="30" y="216" color="#FFf7fbfa" size="24" format="%s" paras="@mail_name1"/>

<Text x="30" y="241" width="200" color="#FF979c98" format="%s" size="24" paras="@mail_subject1"/>

<Image x="#screen_width-75" y="300" src="icon_calendar.png"/>

<Text x="30" y="300" color="#FFf7fbfa" size="24" format="%s" paras="@cal_title"/>

<DateTime x="300" y="300" color="#FFf7fbfa" size="24" value="#event_start1" format="hh:mm"/>

<Text x="30" y="325" width="200" color="#FF979c98" format="%s" size="24" paras="@event_location1"/>

<Image x="#screen_width-75" y="384" src="icon_news.png"/>

<Text x="30" y="384" color="#FFf7fbfa" size="24" format="%s" paras="@note_title"/>

<DateTime x="300" y="384" color="#FFf7fbfa" size="24" value="#note_date1" format="hh:mm"/>

<Text x="30" y="409" width="300" color="#FF979c98" format="%s" size="24" paras="@note_snippet1"/>
[Android Themes] cowsquad:
How do you even get to show sms preview text? That lockscreen looks legit :)
[Android Themes] XTRoRDiNAiRE:
it would be awesome if you released one without the gmail and calendar , im good with just sms and missed calls and weather;)
[Android Themes] redsox 98:
Wow that looks sick. Nice start
[Android Themes] dbilliter:
Anyone know if the null function works? I can't get it to.

Anyone have an idea of how to fix the gmail sender?
[Android Themes] djmace:
Anyone know if you can get text to span more that one line? or have the marquee scroll text upwards?
[Android Themes] Mr.Wong:
have you tried <text format="#hour24-1"/>?
[Android Themes] vagyula:
I tried and don't work. Any idea?

Works with:

<Text x="212" y="262" format="%d" paras="#hour-1"/>

And how to display in second in two digits? (#second =1 how to 01)
[Android Themes] Mr.Wong:
<DateTime x="" y="" color="" size="" format="ss">
[Android Themes] vagyula:
format="ss-1" not work and

format="%d" paras="#second-1" only one digit
[Android Themes] Mr.Wong:
I think you must do this

<Text x="207" y="262" visibility="lt(#second,10)" format="0" paras="#second-1"/> //that means 0 is shown if second smaller 10

<Text x="212" y="262" format="%d" paras="#second-1"/> //that will shown the seconds

you must position the front "0" on the right x axis.

I don't know is there a other way!?
[Android Themes] vagyula:
This code is not working :(
[Android Themes] Mr.Wong:
And with out the paras?

<Text x="207" y="262" visibility="lt(#second,10)" format="0"/>

you can also test it with aplha="lt(#second,10)*255" instead of visibility=""

I can't test it at the moment so I can only make a guess.
[Android Themes] Echo113:
Also, what part of code is for the target area when sliding up. I don't want to have to slide all the way to the top to unlock.

Sent from Castle Grey Skull. I HAVE THE POWER!!
[Android Themes] djmace:
I dont think it really matters where it goes. In mine its near the top of the manifest just below the code for the clock and above the call and sms notificatins but above the unlockers.
[Android Themes] nhatientri:
try <Text x="230" y="690" align="right" color="#ffffff" size="16" format="%d" paras="#sms_unread_count" alpha="#sms_unread_count*255" />

alpha="#sms_unread_count*255"

i thing it's better
[Android Themes] havard20009:
this one it doesn't work for me after add i cant see my lock screen anymore

<Unlocker name="unlocker" bounceInitSpeed="10" bounceAcceleration="1500">

my lock screen code
[Android Themes] `SBR`:
or you can use the visibility="#sms_unread_count"

instead of alpha="#sms_unread_count*255" that will also work..
[Android Themes] lilshortwun:
How can i add an unlock animation to the lockscreen?