1. Download our Official Android App: Forums for Android!

Need xml/mclock help please

Discussion in 'Android Themes' started by sadielynn, Nov 10, 2011.

  1. sadielynn

    sadielynn Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    68
    Posts:
    484
    Joined:
    May 3, 2011

    May 3, 2011
    484
    125
    68
    Female
    Michigan
    I really want to use this mClock skin on my mdpi optimus V, ,but it comes out looking like this:
    [​IMG]

    No amount of resizing or choosing different widget sizes helps, so I know that the xml needs to be edited. If it was just the font size, I could probably handle it, but I have a feeling that with font size changes, spacing issues will arise, and well, my xml-fu is weak to say the least :eek:

    If someone could edit it for me, I would much appreciate it.
    Thank you in advance :)

    (also having the same issue with the typoclock skin, if anyone is willing)
     

    Advertisement

  2. sadielynn

    sadielynn Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    68
    Posts:
    484
    Joined:
    May 3, 2011

    May 3, 2011
    484
    125
    68
    Female
    Michigan
    Seriously,no one can do this? :(
     
  3. gwcaton

    gwcaton Android Expert
    Rank:
    None
    Points:
    113
    Posts:
    825
    Joined:
    Apr 25, 2010

    Apr 25, 2010
    825
    250
    113
  4. sadielynn

    sadielynn Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    68
    Posts:
    484
    Joined:
    May 3, 2011

    May 3, 2011
    484
    125
    68
    Female
    Michigan

    I know, but ill either get snarked to death or told to do it myself. That is if my all important post count is high enough to even ask. I thought I'd ask the nice(er) people here first. Figured someone here would know how, but I guess not.
     
  5. vipul619

    vipul619 Well-Known Member
    Rank:
    None
    Points:
    38
    Posts:
    165
    Joined:
    Oct 15, 2011

  6. sadielynn

    sadielynn Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    68
    Posts:
    484
    Joined:
    May 3, 2011

    May 3, 2011
    484
    125
    68
    Female
    Michigan
    I actually just read that thread today :) but if I post my request there, odds are it will just get moved to the mclock thread. Anywho, I posted it here specifically in hopes to avoid having to go to xda. :p
     
  7. vipul619

    vipul619 Well-Known Member
    Rank:
    None
    Points:
    38
    Posts:
    165
    Joined:
    Oct 15, 2011

    i doubt u'll get a aanswer here..
    and dont worry, that thread is Optimus one/V all problems specific.. :)
     
  8. fluxbox

    fluxbox Well-Known Member
    Rank:
    None
    Points:
    43
    Posts:
    109
    Joined:
    Sep 23, 2010

    Sep 23, 2010
    109
    31
    43
    Director of IT / Software Development
    IF you wish, I would love to help you. I have coded a ton of skins for the mclock widget. I run a design studio and we modify all types of skins for the mclock. Our studios FluxboxMedia - 510Studios , is known for Android modifications and tutorials. Email it to geektekneek@gmail.com

    We will take care of anything you wish or need on that skin.

    Check out our Youtube channel for tutorials and such. We will be posting a XML Editing tutorial soon on this.

    Thanks.

    PluggedIn2010's Channel - YouTube

    Thanks

    FBM Administrator and CEO
     
  9. fluxbox

    fluxbox Well-Known Member
    Rank:
    None
    Points:
    43
    Posts:
    109
    Joined:
    Sep 23, 2010

    Sep 23, 2010
    109
    31
    43
    Director of IT / Software Development
    Just from the screen grab you have there it almost looks like you don't have much more than either 4 columns in your homescreen or 3. You will need at minimum 5 to show this accurately. I would check that also before any shrinking or XML is needed. We will help anyway we can, but that was the first thing that our design team noticed by the pics.
    Hope this helps also. We found the XML in the post, so we are looking at it now.
    Thanks.
    FBM Team
     
  10. fluxbox

    fluxbox Well-Known Member
    Rank:
    None
    Points:
    43
    Posts:
    109
    Joined:
    Sep 23, 2010

    Sep 23, 2010
    109
    31
    43
    Director of IT / Software Development
    IF you can, open the file you have which is your XML or open a new text document and copy this in and try it. We have updated the sizes and alignments :

    Code (Text):
    1. <stack orientation="vertical" horizontalalignment="stretch" verticalalignment="top" margin="3" clipping="false">
    2. <stack horizontalalignment="center" verticalalignment="top" orientation="horizontal" margin="3" height="35">
    3. <Sunday CurrentForeground="#ff2680a1, #ff5dd3ff" Case="Upper" FontSize="30" Shadowy="-10"/>
    4. <Monday CurrentForeground="#ff2680a1, #ff5dd3ff" Case="Upper" FontSize="30" Shadowy="-10"/>
    5. <Tuesday CurrentForeground="#ff2680a1, #ff5dd3ff" Case="Upper" FontSize="30" Shadowy="-10"/>
    6. <Wednesday CurrentForeground="#ff2680a1, #ff5dd3ff" Case="Upper" FontSize="30" Shadowy="-10"/>
    7. <Thursday CurrentForeground="#ff2680a1, #ff5dd3ff" Case="Upper" FontSize="30" Shadowy="-10"/>
    8. <Friday CurrentForeground="#ff2680a1, #ff5dd3ff" Case="Upper" FontSize="30" Shadowy="-10"/>
    9. <Saturday CurrentForeground="#ff2680a1, #ff5dd3ff" Case="Upper" FontSize="30" Shadowy="-10"/>
    10. </stack>
    11. <stack horizontalalignment="left" verticalalignment="top" orientation="horizontal" margin="0" height="50">
    12. <Stack HorizontalAlignment="Left" VerticalAlignment="Center" Orientation="Horizontal" Margin="0">
    13. <Day FontSize="50" ShadowColor="#ff000000" Foreground="#ff2680a1, #ff5dd3ff"/>
    14. </Stack>
    15. <Stack HorizontalAlignment="Left" Clipping="false" Orientation="Vertical" Margin="3">
    16. <MonthName FontSize="25" HorizontalAlignment="Left" Case="Upper" Clipping="false" Foreground="#77ffffff, #77ffffff"/>
    17. <DayName FontSize="25" HorizontalAlignment="Left" VerticalAlignment="Top" Case="Upper" Clipping="false" Foreground="#ffffffff, #ffffffff"/>
    18. </Stack>
    19. <Stack HorizontalAlignment="Left" Margin="85"/>
    20. <Stack HorizontalAlignment="Right" VerticalAlignment="Top" Orientation="Horizontal">
    21. <Hour VerticalAlignment="Top" HorizontalAlignment="Right" FontSize="50" Foreground="#c0878a8d, #c78d8a86"/>
    22. <Text VerticalAlignment="Top" HorizontalAlignment="Right" FontSize="25" Foreground="#ff2680a1, #ff5dd3ff" Text="h"/>
    23. <Minute VerticalAlignment="Top" HorizontalAlignment="Right" FontSize="50" Foreground="#c0878a8d, #c78d8a86"/>
    24. <Text VerticalAlignment="Top" HorizontalAlignment="Right" FontSize="25" Foreground="#ff2680a1, #ff5dd3ff" Text="min"/>
    25. </Stack>
    26. </stack>
    27. </stack>
    Save the new file as XML and try it.
    :)
     
    sadielynn likes this.
  11. sadielynn

    sadielynn Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    68
    Posts:
    484
    Joined:
    May 3, 2011

    May 3, 2011
    484
    125
    68
    Female
    Michigan
    Wow thanks! Its great except for the time. It cuts off after the hour digit

    [​IMG]

    Also, I'm using 6 columns & 8 rows. I never use less than 6 of either :)
     
  12. fluxbox

    fluxbox Well-Known Member
    Rank:
    None
    Points:
    43
    Posts:
    109
    Joined:
    Sep 23, 2010

    Sep 23, 2010
    109
    31
    43
    Director of IT / Software Development
    Your Welcome! Here try this, might fix the time issue. It's a matter of adjusting the margin along w/ the Font size. From 80 or so to like 30-40 and the smaller ones from 40 to like 20 or less.
    6 Columns good.

    Try this :
    Code (Text):
    1. <stack orientation="vertical" horizontalalignment="stretch" verticalalignment="top" margin="3" clipping="false">
    2. <stack horizontalalignment="center" verticalalignment="top" orientation="horizontal" margin="3" height="35">
    3. <Sunday CurrentForeground="#ff2680a1, #ff5dd3ff" Case="Upper" FontSize="30" Shadowy="-10"/>
    4. <Monday CurrentForeground="#ff2680a1, #ff5dd3ff" Case="Upper" FontSize="30" Shadowy="-10"/>
    5. <Tuesday CurrentForeground="#ff2680a1, #ff5dd3ff" Case="Upper" FontSize="30" Shadowy="-10"/>
    6. <Wednesday CurrentForeground="#ff2680a1, #ff5dd3ff" Case="Upper" FontSize="30" Shadowy="-10"/>
    7. <Thursday CurrentForeground="#ff2680a1, #ff5dd3ff" Case="Upper" FontSize="30" Shadowy="-10"/>
    8. <Friday CurrentForeground="#ff2680a1, #ff5dd3ff" Case="Upper" FontSize="30" Shadowy="-10"/>
    9. <Saturday CurrentForeground="#ff2680a1, #ff5dd3ff" Case="Upper" FontSize="30" Shadowy="-10"/>
    10. </stack>
    11. <stack horizontalalignment="left" verticalalignment="top" orientation="horizontal" margin="0" height="50">
    12. <Stack HorizontalAlignment="Left" VerticalAlignment="Center" Orientation="Horizontal" Margin="0">
    13. <Day FontSize="50" ShadowColor="#ff000000" Foreground="#ff2680a1, #ff5dd3ff"/>
    14. </Stack>
    15. <Stack HorizontalAlignment="Left" Clipping="false" Orientation="Vertical" Margin="3">
    16. <MonthName FontSize="25" HorizontalAlignment="Left" Case="Upper" Clipping="false" Foreground="#77ffffff, #77ffffff"/>
    17. <DayName FontSize="25" HorizontalAlignment="Left" VerticalAlignment="Top" Case="Upper" Clipping="false" Foreground="#ffffffff, #ffffffff"/>
    18. </Stack>
    19. <Stack HorizontalAlignment="Left" Margin="70"/>
    20. <Stack HorizontalAlignment="Right" VerticalAlignment="Top" Orientation="Horizontal">
    21. <Hour VerticalAlignment="Top" HorizontalAlignment="Right" FontSize="35" Foreground="#c0878a8d, #c78d8a86"/>
    22. <Text VerticalAlignment="Top" HorizontalAlignment="Right" FontSize="18" Foreground="#ff2680a1, #ff5dd3ff" Text="h"/>
    23. <Minute VerticalAlignment="Top" HorizontalAlignment="Right" FontSize="35" Foreground="#c0878a8d, #c78d8a86"/>
    24. <Text VerticalAlignment="Top" HorizontalAlignment="Right" FontSize="18" Foreground="#ff2680a1, #ff5dd3ff" Text="min"/>
    25. </Stack>
    26. </stack>
    27. </stack>
     
  13. dollface54

    dollface54 Newbie
    Rank:
    None
    Points:
    36
    Posts:
    46
    Joined:
    Oct 29, 2011

    Oct 29, 2011
    46
    9
    36
    Pennsylvania
    I can help you, I also use this clock skin and know the developer. You have to have your homescreen set to a grid of 5x5. This particular clock skin called Offset Clock uses the 5x1 widget only. That way it will show properly.
     
  14. micjenks

    micjenks Lurker
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Nov 28, 2010

    Nov 28, 2010
    1
    0
    5
    I will take a look at the xml in the morning and see if I can help
     
  15. dollface54

    dollface54 Newbie
    Rank:
    None
    Points:
    36
    Posts:
    46
    Joined:
    Oct 29, 2011

    Oct 29, 2011
    46
    9
    36
    Pennsylvania
    The OP stated that she is using a grid of 6x8. she just has to re-adjust it to 5x5 and the widget should work.

    Here is mine using a grid of 5x5 on my homescreen and I am using an mclock 5x1 widget size:

    [​IMG]
     
  16. sadielynn

    sadielynn Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    68
    Posts:
    484
    Joined:
    May 3, 2011

    May 3, 2011
    484
    125
    68
    Female
    Michigan
    well its close, but still cuts off the last minute digit. reset my homescreen to 5 column grid, chose 5x1 widget. top one I stretched down to make it bigger, bottom one is exactly how it looks when I apply it, nothing moved or stretched (its tiny, that's why I stretched the top one) and both cut off the 9 in 10h 59 :/

    [​IMG]
     
  17. dollface54

    dollface54 Newbie
    Rank:
    None
    Points:
    36
    Posts:
    46
    Joined:
    Oct 29, 2011

    Oct 29, 2011
    46
    9
    36
    Pennsylvania
    I'm not sure which .xml file you are using above, but why not start fresh with the original files. You can download the .zip of all the colors.

    Offset Text mClock Skins | Themes In Motion
     
  18. sadielynn

    sadielynn Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    68
    Posts:
    484
    Joined:
    May 3, 2011

    May 3, 2011
    484
    125
    68
    Female
    Michigan
    This is what the original looks like

    [​IMG]

    With 5x5 layout and 5x1 widget size
     
  19. dollface54

    dollface54 Newbie
    Rank:
    None
    Points:
    36
    Posts:
    46
    Joined:
    Oct 29, 2011

    Oct 29, 2011
    46
    9
    36
    Pennsylvania
    whoa, I guess it is just the resolution of your screen, I am on the Galaxy SII Epic. Can I suggest that you play with it and maybe try the 4x1 widget size. Once you get it looking right, then you'll know what size you need to use. The developer tested it on a Galaxy SII as well, but I know others are using it on a Captivate and a Fascinate and it works fine.
     
  20. fluxbox

    fluxbox Well-Known Member
    Rank:
    None
    Points:
    43
    Posts:
    109
    Joined:
    Sep 23, 2010

    Sep 23, 2010
    109
    31
    43
    Director of IT / Software Development
    And this is why I jumped in here and custom edited the XML for her. YOU both didn't get it from the first time that she posted it. That she was having issues on default. I will customize the xml again and see if that works on the 8 x 6 or however she has it. I know at least w/ my xml on that it was working partially all but the last parts.
    Thanks for the feedback.

    FBM Adminsistrator
     
  21. fluxbox

    fluxbox Well-Known Member
    Rank:
    None
    Points:
    43
    Posts:
    109
    Joined:
    Sep 23, 2010

    Sep 23, 2010
    109
    31
    43
    Director of IT / Software Development
    Here try this, the problem that you are running into when you are having the digits and their size at the location is that the margin is too far offset. So i adjusted this to allow the text to float more to the center. Let me know how this works on the 8x6 or however you had it. :

    Code (Text):
    1. <stack orientation="vertical" horizontalalignment="stretch" verticalalignment="top" margin="3" clipping="false">
    2. <stack horizontalalignment="center" verticalalignment="top" orientation="horizontal" margin="3" height="35">
    3. <Sunday CurrentForeground="#ff2680a1, #ff5dd3ff" Case="Upper" FontSize="30" Shadowy="-10"/>
    4. <Monday CurrentForeground="#ff2680a1, #ff5dd3ff" Case="Upper" FontSize="30" Shadowy="-10"/>
    5. <Tuesday CurrentForeground="#ff2680a1, #ff5dd3ff" Case="Upper" FontSize="30" Shadowy="-10"/>
    6. <Wednesday CurrentForeground="#ff2680a1, #ff5dd3ff" Case="Upper" FontSize="30" Shadowy="-10"/>
    7. <Thursday CurrentForeground="#ff2680a1, #ff5dd3ff" Case="Upper" FontSize="30" Shadowy="-10"/>
    8. <Friday CurrentForeground="#ff2680a1, #ff5dd3ff" Case="Upper" FontSize="30" Shadowy="-10"/>
    9. <Saturday CurrentForeground="#ff2680a1, #ff5dd3ff" Case="Upper" FontSize="30" Shadowy="-10"/>
    10. </stack>
    11. <stack horizontalalignment="left" verticalalignment="top" orientation="horizontal" margin="0" height="50">
    12. <Stack HorizontalAlignment="Left" VerticalAlignment="Center" Orientation="Horizontal" Margin="0">
    13. <Day FontSize="50" ShadowColor="#ff000000" Foreground="#ff2680a1, #ff5dd3ff"/>
    14. </Stack>
    15. <Stack HorizontalAlignment="Left" Clipping="false" Orientation="Vertical" Margin="3">
    16. <MonthName FontSize="25" HorizontalAlignment="Left" Case="Upper" Clipping="false" Foreground="#77ffffff, #77ffffff"/>
    17. <DayName FontSize="25" HorizontalAlignment="Left" VerticalAlignment="Top" Case="Upper" Clipping="false" Foreground="#ffffffff, #ffffffff"/>
    18. </Stack>
    19. <Stack HorizontalAlignment="Left" Margin="58"/>
    20. <Stack HorizontalAlignment="Right" VerticalAlignment="Top" Orientation="Horizontal">
    21. <Hour VerticalAlignment="Top" HorizontalAlignment="Right" FontSize="35" Foreground="#c0878a8d, #c78d8a86"/>
    22. <Text VerticalAlignment="Top" HorizontalAlignment="Right" FontSize="18" Foreground="#ff2680a1, #ff5dd3ff" Text="h"/>
    23. <Minute VerticalAlignment="Top" HorizontalAlignment="Right" FontSize="35" Foreground="#c0878a8d, #c78d8a86"/>
    24. <Text VerticalAlignment="Top" HorizontalAlignment="Right" FontSize="18" Foreground="#ff2680a1, #ff5dd3ff" Text="min"/>
    25. </Stack>
    26. </stack>
    27. </stack>
    By decreasing the STACK Horizontal alignment from the 85 or whatever it is by default, you allow the blocks of text to float back to center as outlined in the first part of the XML or as the application calls by default. So by pushing the size down to like 60 you are decreasing the space between the day text to the hour text and allowing it to be more on the screen.

    Hope this works.
    *fyi, just cause you know the developer only shows that you know someone, it does not ever prove that you understand code , or the language of how the SDK or apps are coded and configured. I can say that I know Bill Gates, but does that automatically make me able to know every bit of the 300000+ lines of code in .net 2008 and C++ call to stacks which make up the OS of Windows 7, no. Not at all, so before you go pirating a thread and Name tossing, think about it, cause it does not get you any higher up the chain*
     
    sadielynn likes this.
  22. sadielynn

    sadielynn Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    68
    Posts:
    484
    Joined:
    May 3, 2011

    May 3, 2011
    484
    125
    68
    Female
    Michigan

    Yeah I'm using an optimus v. Mdpi screen. I'm guessing the ones you mentioned are hdpi. Hence the request. I did think to play around with widget sizes and resizing and whatnot before I made the request ;)

    EDIT: That last one worked perfectly! Thank you so much!!
    [​IMG]
     
    fluxbox likes this.
  23. fluxbox

    fluxbox Well-Known Member
    Rank:
    None
    Points:
    43
    Posts:
    109
    Joined:
    Sep 23, 2010

    Sep 23, 2010
    109
    31
    43
    Director of IT / Software Development
    You are most welcome and I do believe you are correct that in most cases the widgets are for the HDPI and not the MDPI. Our studio doesn't have many of those proprietary devices on set. We have alot of the larger screen devices. No bother tho, we all in our office have expertise at one thing or another in the Android Community so it's our pleasure to give back and help. If you ever need anything else adjusted, let us know.
    Thanks again!
    Nice screen btw.

    Sincerely,

    510Studios and FluxboxMedia Team

     
  24. dollface54

    dollface54 Newbie
    Rank:
    None
    Points:
    36
    Posts:
    46
    Joined:
    Oct 29, 2011

    Oct 29, 2011
    46
    9
    36
    Pennsylvania
    What, pirating a thread like you have, where you alter an xml coding developed by someone else without obtaining their permission, just to show off your own skills. Right. :cool: End of discussion.
     
  25. sadielynn

    sadielynn Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    68
    Posts:
    484
    Joined:
    May 3, 2011

    May 3, 2011
    484
    125
    68
    Female
    Michigan
    Ok people, I started the thread, asked for help, got help, said thanks, case closed. No need for all this bickering.
     

Share This Page

Loading...