yashsingh1/xdaforums huggingface dataset:
[Android Themes] jimbo11883:
My MusicControl seems to not want to work. Here's what I have:

<MusicControl name="music_control" x="0" y="580" w="#screen_width" h="60" autoShow="false" visibility="true">
<Image name="music_album_cover" x="60" y="580" w="60" h="60" align="center" alignV="center"/>
<Text name="music_display" x="125" y="582" w="#screen_width-310" h="60"/>
<Button name="music_prev" x="#screen_width-180" y="580" w="60" h="60">
<Normal><Image src="media_player_prev_button.png" x="#screen_width-180" y="580" w="60" h="60"/></Normal>
<Pressed><Image src="media_player_prev_button_on.png" x="#screen_width-180" y="580" w="60" h="60"/></Pressed>
</Button>
<Button name="music_next" x="#screen_width-60" y="580" w="60" h="60">
<Normal><Image src="media_player_next_button.png" x="#screen_width-60" y="580" w="60" h="60"/></Normal>
<Pressed><Image src="media_player_next_button_on.png" x="#screen_width-60" y="580" w="60" h="60"/></Pressed>
</Button>
<Button name="music_play" x="#screen_width-120" y="580" w="60" h="60">
<Normal><Image src="media_player_play_button.png" x="#screen_width-120" y="580" w="60" h="60"/></Normal>
<Pressed><Image src="media_player_play_button_on.png" x="#screen_width-120" y="580" w="60" h="60"/></Pressed>
</Button>
<Button name="music_pause" x="#screen_width-120" y="580" w="60" h="60">
<Normal><Image src="media_player_pause_button.png" x="#screen_width-120" y="580" w="60" h="60"/></Normal>
<Pressed><Image src="media_player_pause_button_on.png" x="#screen_width-120" y="580" w="60" h="60"/></Pressed>
</Button>
</MusicControl>
[Android Themes] TaNgKii:
it seemed miui theme do not work on non-MIUI Android ROMs
[Android Themes] Mr.Wong:
Your problem is the position of the music control on x 0 y 580 and the buttons also on y position 580 so all you buttons lie on the y position on 1160.

Change music control to y 0 or change the y position from your buttons to 0 or anything else

---------- Post added at 10:44 AM ---------- Previous post was at 10:42 AM ----------

Chech this out but only for lockscreens

https://market.android.com/details?id=com.miui.home
[Android Themes] jimbo11883:
Thank you for the response Mr. Wong. I have the playback buttons and album cover art properly displaying now. The only remaining issue I have is with the music text.

I am using the following XML within the <MusicControl> tag:

<Text name="music_display" x="125" y="2" w="#screen_width-310" h="60" size="18"/>

When this line exists in my manifest, the lockscreen does not display at all. Does anyone have any ideas?
[Android Themes] Mr.Wong:
Set the color and when is possibly the marqueeSpeed

when you use #screen_width-310 you have a viewable field of 170px.
[Android Themes] jimbo11883:
Man, I'm such an idiot. Thanks!

Is it possible, to have artist and title on separate lines, or in separate <Text> elements? This would be killer. I don't like the way the LS currently displays the artist and title.
[Android Themes] vukandric:
Yeah, that would be cool, but I think it it's not possible atm (someone correct me if I am wrong)
[Android Themes] jimbo11883:
Yea, we need updated manifest reference! I'd personally like to get better Gmail fromAddress. The one that comes through has numbers and possibly line feeds prepended.

Also working to get com.android.email.provider to work. Also, calendar. If anyone can help me, let me know.
[Android Themes] mssmison:
What I started yesterday was to make a copy of the db and sqlite files to my sdcard using adb. Then aSQLiteManager from the market to see what the columns were.
[Android Themes] eddie0uk:
It should be possible to query "content://gmail-ls/messages" instead of "content://gmail-ls/conversations". The former has a proper fromaddress field. The "conversations" table has a fromaddress from which it is necessary to remove carriage returns and some leading numbers, and this does not look like supported yet.
[Android Themes] hon kin:
Help! I cant make my slider slide to left side. Have i dont anything seriously wrong here?

<Unlocker name="unlocker_camera" bounceInitSpeed="500">
<StartPoint x="#screen_width" y="468" w="480" h="73" >
<NormalState>
<Image x="0" y="468" src="Camera.png" alpha="255-#unlocker.move_x*255"></Image>
</NormalState>
</StartPoint>
<EndPoint x="#screen_width-300" y="468" w="50" h="50">
<Intent action="android.intent.action.MAIN" package="com.android.camera" class="com.android.camera.camera"/>
<NormalState>
<Image x="180" y="468" src="Blank.png"></Image>
</NormalState>
<Path x="0" y="468">
<Position x="#screen_width" y="0" />
<Position x="#screen_width-300" y="0" />
</Path>
</EndPoint>
</Unlocker>

Please tell me what i have gone wrong here =(
[Android Themes] devilsden:
Is there a way to display two clocks on lockscreen... one clock showing system time and other clock showing "system time - 5hr". If not on lock screen, can it be done on any of the clock widgets which use similar manifest xml ????
[Android Themes] mrhayami:
LS 2 SMS Preview

I've been looking through my rom trying to find the files where the stock ls gets it's info from and I stumbled upon this, which kinda looks like it, however I am unsure so I'll post it here to see what you all think.

file:framework-res.apk>res>layout>lock_screen_sms_preview_list_item.xml

<?xml version="1.0" encoding="UTF-8"?>
<RelativeLayout android:gravity="center" android:background="@drawable/lock_screen_control_sms_item_bg" android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<TextView android:textAppearance="?textAppearanceSmall" android:textColor="#99ffffff" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="8.0dip" android:singleLine="true" android:layout_alignParentTop="true" android:layout_alignParentRight="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="16.0sp" android:textColor="#99ffffff" android:ellipsize="marquee" android:gravity="center_vertical" android:id="@id/line1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:singleLine="true" android:layout_toLeftOf="@id/date" android:layout_alignBottom="@id/date" android:layout_alignParentLeft="true" android:layout_alignWithParentIfMissing="true" />
<TextView android:textAppearance="?textAppearanceSmall" android:textSize="13.0sp" android:textColor="#99ffffff" android:ellipsize="end" android:id="@id/text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_below="@id/line1" android:layout_alignLeft="@id/line1" android:layout_alignRight="@id/date" android:layout_alignWithParentIfMissing="true" />
</RelativeLayout>
[Android Themes] dbilliter:
Update to SlideScreen LS. It isn't done but I got sick of waiting for the DINC update. This has just about everything Miui 2.0 lockscreen can do at this point.

Details
[Android Themes] lilshortwun:
does anyone know if its possible to have an unlock animation? Like a fading effect or something when we unlock the screen
[Android Themes] jimbo11883:
It is also possible to have in a ContentProviderBinder order attribute, a SQL LIMIT.

My guess is that the MIUI programmers are just concatenating some of these attributes together. So to limit the output of a provider to a certain number of rows, do the following

<ContentProviderBinder... order="date DESC LIMIT 1">
[Android Themes] tryantar:
a veryyy big question, HOW DO WE DETERMINE THE CONTENT://{provider}/{path} thinggy?

take the slidescreen LS for example dbilliter used

content://com.android.contacts/data

why isn't it content://com.android.providers.contacts/data(or something)

and he has columns of "contact_id, etc" which i can't find in the database of com.android.providers.contacts

HELP? if someone could clarify it it would be really nice cause now my two objectives is to make a

facebook notification

-i can't get the content:// path right :(

and link a contact picture

-which i have absolutely no idea what column that is

-i only know its in data15 in com.android.providers.contacts/databases/contact2.db which is nowhere close to com.android.contacts/data

BIG, HUGE, GAINT THANKS IN ADVANCE
[Android Themes] melissapugs:
I'm trying to display one image on normal state and another on pressed/reached state. A very helpful person in the faq thread suggested:

I'm on 11.25 and can't seem to get this to work. Any help would be much appreciated.
[Android Themes] cowsquad:
Your question is too narrow, could you explain it a little be more. What image are you trying to show on those three states (e.g. unlocker png, sms, etc.) :)
[Android Themes] melissapugs:
thanks - I'm just trying to display a nonoperational background image for each of the three states - its not as big as the entire wallpaper -

see mtz uploaded here. I want a background image to show on each of the unlock states, and I need to fix this to show the orb.png image as the slider. I've never done an ics or sense type multichoice unlocker before, so I'm not sure what all needs to be done.

The reaber and the orb would show in normal state.

In pressed/reached state, the reaper with an empty hand would show, the orb being the slider to one of the three choices that appear on pressed.

Thanks for any help :)
[Android Themes] nhatientri:
NNNN display month and day

but How to display lunar month only or lunar day only
[Android Themes] nhatientri:
Hey, how to know content provider of calendar event is content://com.android.calendar/events

and how to know it have these columns columns="title,eventLocation,dtstart,allDay"

I want to get Lunar date from calendar, can you help

Thanks in advance
[Android Themes] judasat:
search the app content provider viewer from market , you can explore the content provider of your device
[Android Themes] nhatientri:
try "Content provider viewer" in market
[Android Themes] mrhayami:
Love the lockscreen, but for some reason my sms preview are always one contact behind. The body and everything is the current message however the contact name itself is the previous.

Any ideas?
[Android Themes] dbilliter:
I believe this is an issue that the next from update will fix.
[Android Themes] HarlanPepper0010:
Hello all, I am trying to add time to my new ls as text is there a way to do this? I scanned the past 15 pages and did not see anything. Google was not my friend tonight either... :0( TIA.

Do the chickens have large talons?
[Android Themes] mrhayami:
Thanks for the heads up
[Android Themes] NunxPT:
I'm having a little problem, I can't manage to get the lock sound. I tried these different ways:

ogg file pointing to my sdcard or system directory

<Unlocker name="unlocker" ... <EndPoint ... reachedSound="/system/media/audio/ui/Unlock.ogg">

ogg file with the Unlock.ogg file on the lockscreen file, advance folder

<Unlocker name="unlocker" ... <EndPoint ... reachedSound="Unlock.ogg">

mp3 file pointing to my sdcard or system directory

<Unlocker name="unlocker" ... <EndPoint ... reachedSound="/system/media/audio/ui/Unlock.mp3">

mp3 file with the Unlock.ogg file on the lockscreen file, advance folder

<Unlocker name="unlocker" ... <EndPoint ... reachedSound="Unlock.mp3">

Should the sound be in a specific directory inside the mtz file?
[Android Themes] picard666:
take a look of my mario lock with sound, ut has working reachedsound

however if you're on milocker it might not work properly
[Android Themes] tung91:
What's problem with it ?
[Android Themes] nhatientri:
Can we use textExp in <DateTime

<DateTime textExp="????" x="300" y="50" format="NNNN"/>
[Android Themes] NunxPT:
Thanks, it worked but theres a small issue - the lockscreen is also played when phone is in silent mode. Also the volume is defined by "media volume", which I had on mute :)

Yes i'm with MiLocker.
[Android Themes] tung91:
Sorry for noob question : how to make animation loop if i open lock screen ( not unlock and relock , just turn off screen and turn on again , the anim not appear :( )

example:

Sorry for my bad english
[Android Themes] vagyula:
Is it possible to compare the system time with the database string value?If yes,how?
[Android Themes] picard666:
take a look at my new ls, it uses comparing, but strangely it works only one way (the > sign only works in one direction, now i dont know which one, but if you use the other it crashes the ls)

system time can be converted to a number with #time_sys (it gives in unix timestamp)
[Android Themes] nicopilami:
Hi

I 've seen it is possible to use the values of "sms_unread_count" and "call_missed_count" in the manifest. What about the gmail unread count ? Does this variable exist ?

Thanks

nico
[Android Themes] vagyula:
Not possible, the gmail app is third party app.
[Android Themes] nicopilami:
ok, what about stock email app ?
[Android Themes] picard666:
no, as these are not coded, only the the two unread counts you said above

you hvae to make it for yourself with contentproviders
[Android Themes] nicopilami:
Could you please provide a link to the official reference guide, where I could find information and exemples about "contentproviders" ?

Thanks

nicolas
[Android Themes] Echo113:
How do you add sounds to a LS mtz?

Sent from Castle Grey Skull. I HAVE THE POWER!!
[Android Themes] NunxPT:
Check here:

http://xdaforums.com/showpost.php?p=20764886&postcount=146
[Android Themes] picard666:
there is a post on the first page where pomenx describes how can you code contentproviders in miui, otherwise there is no clear documentation about the apps that use providers, you have to find them on your own, or by looking at other ls's using them

take a look at post #1 and the point about unlockers
[Android Themes] ajster1989:
Diva Go Locker Port Help.

I was wondering if anyone would be able to help me finish porting a locker over from the Go-Locker Program into MIUI, I have everything done but the manifest file seems to not be working and I could use a second set of eyes.

To be honest this is the first one I have tried to do, and I'm a bit rusty.

When I load the locker into MIUI themes, it just changes the background and displays the default locker.

What I can offer in return for help is a place to store all of your themes for free, I have my website that I have plenty of space and am willing to share with the person that will help me a folder and ftp access to host your own stuff on, and access via the file manager script, and distribute.

I think this is a fair trade since all of the file sharing sites are going down one by one.

If anyone is willing to help me then pm me and let me know, I also have the rest of the theme that I am working on to go along with it.

click here to view files
[Android Themes] bingobadgo:
I know it has been asked before but can somebody please help me with getting an unread email count? I know that gmail is third party and therefore not easy to do but it must be possible. I am looking for other LS with gmail on so hopefully I can borrow some code from there but if somebody could point me in the right direction it would really help.

Thanks.

---------- Post added at 12:35 PM ---------- Previous post was at 12:17 PM ----------

I found this, I am not sure if it will help but I am going to give it a go:

http://pastebin.com/f2BukVVU
[Android Themes] Vipitus:
Anyone know how to make that album art image will have animation without loop from 0 to 255 alpha in 2000 ms when I'll double click on music control button?

Galaxy S - Tapatalk
[Android Themes] HarlanPepper0010:
Sorry posted in wrong thread... Mods please delete. :0)

If you like my work or I helped you, hit the thanks button. :0]
[Android Themes] MayElectric:
Target Unlock

Hello Forum,

I want to make this Theme. But the Target Unlocker for Phone, Sms, Calendar & Gmail won't work.

The .mtz that I got so far (Attachment):

I tryed like this:

<!-- Call -->
<Image x="30" y="299" src="bg.png" w="420" h="38"/>
<Text x="420" y="303" color="#FFFFFFFF" size="24" format="%d" paras="#call_missed_count*255"/>
<Image x="30" y="299" src="call.png"/>

<Unlocker name="unlocker_phone">
<StartPoint x="30" y="299" w="420" h="38">
<NormalState>
</NormalState>
</StartPoint>
<EndPoint x="406" y="299" w="420" h="38">
<Intent action="android.intent.action.VIEW" type="vnd.android.cursor.dir/calls"/>
<PressedState>
</PressedState>
<Path x="30" y="299">
<Position x="30" y="299"/>
<Position x="406" y="299"/>
</Path>
</EndPoint>
</Unlocker>
<!-- ENDE Call -->

Could Someone help me, please!

Thank you!

-May-
[Android Themes] cowsquad:
Your StartPoint is missing a source image, so is the PressState and EndPoint

Your StartPoint shpuld look like this:

<Unlocker name = "unlocker">

<StarPoint x"whatever number" y"whatever" w="whatever" y="whatever">

<NormalState>

<Image x="whatever" y="whatever" src="nameoftheimage.png/>

</NormalState>

</StartPoint>
[Android Themes] MayElectric:
Thank you, that is! :]

But I have another Question:

How do I display missed gmail or calendar events?

<VariableBinders>
<ContentProviderBinder
name="gm1"
uri="content://gmail-ls/conversations/maiqn92@gmail.com"
columns="fromaddress,subject,date"
countName="hasEmail">
<Variable name="mail_id1" type="string" column="_id" row="0"/>
<Variable name="mail_name1" type="string" column="fromaddress" row="0"/>
<Variable name="gmail_date1" type="long" column="date" row="0"/>
<Variable name="mail_subject1" type="string" column="subject" row="0"/>
</ContentProviderBinder>

<ContentProviderBinder
uri="content://com.android.calendar/events"
columns="title,eventLocation,dtstart,allDay"
order="dtstart ASC"
whereFormat="allDay=0 AND dtstart>%d"
whereParas="#time_sys"
countName="hasEvents">
<Variable name="cal_title1" type="string" column="title" row="0"/>
<Variable name="event_start1" type="long" column="dtstart" row="0"/>
<Variable name="event_location1" type="string" column="eventLocation" row="0"/>
</ContentProviderBinder>
</VariableBinders>

<Text x="420" y="421" color="#FFFFFFFF" size="24" align="center" format="%d" paras="#hasMail1"/>
<Text x="420" y="481" color="#FFFFFFFF" size="24" align="center" format="%d" paras="#hasEvents"/>
[Android Themes] Moonbloom:
Is there any way to add a simple 1 click button (or double tap if possible) to the lockscreen, which turns auto brightness on/off?

I can't seem to get it working with <Button> structure.

I've been able to use <Unlocker> and then link it to a 3rd party app's activity for turning auto brightness on/off.

But this leaves me having to unlock the phone to turn auto brightness on/off (i want to just tap on the lockscreen, turn it on/off and then still be on the lockscreen), and i also have to use a 3rd party app, as i don't know how to use system settings and such (if its even possible?)

Hopefully someone can help me out :)
[Android Themes] Manni09:
Hello,

i want to permanently lock the battery indicator on the lockscreen

Does anyone have any advice?

Greets..
[Android Themes] Vipitus:
Add visibility parameter with to battery meter.

It will look like this:

visibility="eq(#battery_state,0)+eq(#battery_state,1)+eq(#battery_state,2)+eq(#battery_state,3)"

It says that battery meter will be shown in normal (0), charging (1), low (2) and battery full (3) conditions ;)
[Android Themes] h_zee13:
Do you mean like you want to hide the battery animation/indicator on a specific theme?

Because if that's what you want then just delete all the code that's related to the battery info inside the manifest.xml

You don't need to change the visibility like mentioned above
[Android Themes] tung91:
Is it possible to show animation after release the unlocker (unlock the phone) like sense ring's animation ..

Edited :

hmmm , nevermind, it works with a trick :D

This is a code that work for me ( maybe other )
[Android Themes] Manni09:
I want to show the Batteryindicator in the middle over the clock (->Attachment)

I solved this Problem with this:

<Text x="#screen_width/2" y="560" color="#FFFFFF" format="%d%%" size="22" align="center" paras="#battery_level"></Text>

Now i want to remove the Batteryindicator in the top right corner...
[Android Themes] noesix:
Hi,

I am trying to modify a lockscreen to go directly to whatsapp instead of camera (for example), I've located the line where I have to modify but I don't know how to make it open whatsapp.

In the first post appears

what do I have to put in those to open whatsapp?

Thanks in advance!
[Android Themes] Manni09:
Look here.

This Guy modified standard miui lockscreen to open WhatsApp and other Apps..
[Android Themes] h_zee13:
Hey I'm not sure if you found a solution for this already, but here it is

Download the theme_values.xml from here

Place it in the lockscreen folder next to advance folder (not inside advance folder)

basically this xml file can change the visibility of many things on the lockscreen. So if you open the file, you will see:

<bool name="config_show_status_bar_battery_for_keyguard">false</bool>

I basically set it to false so that the battery doesn't show
[Android Themes] Manni09:
YEAH thats it!! Thanks! :-)

My next Problem:

I want to change the "password input" (-> Attachment)

Where "Passwort zum Entsperren eingeben" is, i want to show the clock, date and maybe battery.. Anybody an idea? :-)

And remove the line between inputarea an the text above..
[Android Themes] h_zee13:
That you won't be able to change using the lockscreen theme. You will have to make changes in the actually rom. I unfortunately have no idea how to do that
[Android Themes] Drag-On:
after a LOT of learning and struggling, I managed to do it myself (go to whatsapp, instead of SMS/MMS).

<Intent action="android.intent.action.MAIN" package="com.whatsapp" class="com.whatsapp.Conversations"/>

that was what was troubling me. How do I go about finding this: "com.whatsapp.Conversations" without trial and error? What is it for gmail? thanks in advance,

sincerely,

- a total noob in this...I don't even know what "this" is. Xml coding? is that what you call it. lol, please don't laugh too hard, as said... <-TOTAL noob. any help/advice/tutorials are welcome! :D
[Android Themes] tung91:
Try logcat :) it will help you find out what you need :)
[Vibrant General] andrewxu:
Hi, I just switched to an optimus v from this Samsung vibrant. I would like to get cash or an android phone for it. Would be willing to involve cash on either end, open to consider almost anything. Includes:

Phone

Box

Charger & USB cord

Extra battery cover (different color)

battery

The phone has seen pretty light use, perfect screen, a few tiny dings around the edge on the bezel. I have the hole for the ffc all ready, and would possibly install as part of a deal (haven't bought the ffc yet).

The phone works great, rooted running trigger 3.2 rom and kernel overclocked to around 1.2-1.4 ghz. Interested in almost all newer att and T-Mobile android phones,iPhones, and would be willing to throw in cash on my side or take cash too depending on phones.

Will add pics when I get to a computer.
[Vibrant General] tnimoruen:
There's a better chance of you selling/trading this if you post in the Marketplace. Click on home (the house icon) and then click on Marketplace and post. Good luck with the sale, bro.
[Vibrant Q&A, Help & Troubleshooting] vballrkc:
when i plug my phone into my computer, nothing. the phone pops up the notification to allow mass storage, but when i enable it the computer never shows the phone. i've messed back and forth with usb debugging, still nothing. is this sometihgn stupid i'm doing or what? I've even flashed a couple roms andstill nothing. help please?
[Vibrant Q&A, Help & Troubleshooting] yalkowni:
its most likely the usb cable try a differnt one
[Vibrant Q&A, Help & Troubleshooting] vballrkc:
that's what i thought, i tried two different cables (all i have are 2) and neither will work. Note, that when i use these two cables with the wall jack to charge they work.
[Vibrant Q&A, Help & Troubleshooting] tomasitoc:
do you have another computer? try it with another computer
[Vibrant Q&A, Help & Troubleshooting] movieaddict:
or try a different usb port! or try installing mini kies that sometimes fixes the problems