How to vertical infinite image scroll effect? - General Questions and Answers

Hi All,
This is Tamilmani Mohan, i am beginning in Android development. I want to implement vertical infinite image scroll effect in android app. We are referred the Expedia app.
In Expedia , Images are scroll infinitely both left and right side. I don't know how to implement this type of effect in Android .
Could you please any one help me in this issue ?
Is there any sample , please update me. It will helpful to me.
Thanks
Tamilmani Mohan

Go to developer.android website to learn the basics first, of using xml and xml ids firstly.
after you learn the basics just drag and drop imagescroll to your xml file, set it to verticle.
---------- Post added at 12:53 AM ---------- Previous post was at 12:53 AM ----------
Go to developer.android website to learn the basics first, of using xml and xml ids firstly.
after you learn the basics just drag and drop imagescroll to your xml file, set it to verticle.

Related

Timescape themes (Update for 2.1)

For 2.1 themes see post #17 on page 2: http://forum.xda-developers.com/showpost.php?p=9049613&postcount=17
I decided to open a thread to share the knowledge I have collected on timescape themes. This also partially applies to mediascape and up until now has been split between these two threads:
http://forum.xda-developers.com/showthread.php?t=737778&page=46
http://forum.xda-developers.com/showthread.php?t=765686 Please read this!
I thought it would be better to combine this into one thread that will be easier to find. If anyone disagrees then please post with reasons and alternatives. I will update this first post as we figure out more tweeks etc. (hopefully it will need a big rework soon because SE finally gets us 2.1 )
Before I start, thanks to Chewitt for finding the acet files, and for inspiring me to start messing with the look of my x10 with his Dark10 themes.
Timescape (and mediascape) do not store all of their images in the .apk resources. Oh no, that would just be too logical, and we are talking about Sony Ericsson here
The timescape theme .apk resources do contain some of the images used (e.g. the trash can and app drawer handles), and the actual Timescape .apk has the resources for the tile images etc. I'm not going to go into this as there is enough content about modifying these sorts of resources here. What I will go into is where the timescape background, wave animation, pagination slider colours and the tile alpha blending and default colours.
1. The background: This is stored in an .acet file (see the first of the above posts). This is an file that basically just contains a samll header and then rgb information (or sometimes argb, this is specified in the header which I haven't got 100% sussed yet). The background images are in the assets/ts folder in the theme .apk and are called ts_bg_app.acet and ts_bg_home.acet for the application and timescape home respectively. These can be modified with acetConverter.exe. You can load an image and export an acet file or you can go the other way. TS uses acet backgrounds without an alpha channel so leave the alpha checkbox unticked when creating them (it might work with alpha... never tried...).
2. The Tiles: I'm pretty sure the alpha blend images for the tiles are found in the system/usr/semc/seee/files folder (alpha_tile.acet and alpha_tile_fade*.acet) but I haven't modified these yet. As an aside the background for the first page of mediascape is here too. More important is the default background for a tile. This file, ts_tile_empty.acet, is a single pixel file found in the assets/ts folder for each theme. This specifies the solid colour to be used as a background for the alpha overlay on empty tiles.
3. Animation files: Wave and Pagination. This is all stored in three .afx java animation files in the themes assets/ts folder (ts_bg_wave.afx, pagination_glow.afx and pagination_area.afx). pagination_area is the square around the selected item in the scroll menu at the bottom (or the top if TS is the home page) and pagination_glow defines the lines at the top and bottom of this area. I haven't got these files fully sussed either, at the moment I'm restricted to doing some awful byte replacement to change the color (I can also change the wave pitch, but it doesn't look any good). I have attached an exe to generate these files (SetTimescapeAnimationColor.exe). Click on the white square to choose a base color and use the buttons to generate whichever of the files you want. If anyone knows how to edit these files properly please let me know, I come from a c# and c++ background and don't really know what I'm doing with java...
Thats pretty much it. Just sort out 6 files, update the png resources (the thumbnails for the theme selection are in the Timescape.apk resources folder) and you're done.
Note: I have had problems when I modified the wrong bytes in the afx files. Basically, after selecting the theme timescape just crashed. If you replace the theme file it still won't start, you need to clear the application data to get it running again. Along the same lines, after modifying a theme you need to reselect it from the themes menu as the files are cached.
Please let me know if I missed anything.
Update: I have attached the source code for the animation color tool. Please keep in mind that this was just a bit of code quickly thrown together so we can modify the animation color, I don't usually write code that looks like that
The project is a C# project from visual studio 2010 but the meat of it is in MainForm.cs so just open that if you use a different language/dev environment.
Here is the code from one of the buttons. Resources.pagination_glow is a byte array from an embedded resource (pagination_glow.afx).
Code:
string r = string.Format("{0:000}", (int)(((double)colorPanel.BackColor.R / 255.0) * 100));
string g = string.Format("{0:000}", (int)(((double)colorPanel.BackColor.G / 255.0) * 100));
string b = string.Format("{0:000}", (int)(((double)colorPanel.BackColor.B / 255.0) * 100));
byte[] bytes = new byte[Resources.pagination_glow.Length];
Array.Copy(Resources.pagination_glow, bytes, Resources.pagination_glow.Length);
bytes[949] = (byte)r[0];
bytes[950] = (byte)'.';
bytes[951] = (byte)r[1];
bytes[952] = (byte)r[2];
bytes[953] = (byte)',';
bytes[954] = (byte)g[0];
bytes[955] = (byte)'.';
bytes[956] = (byte)g[1];
bytes[957] = (byte)g[2];
bytes[958] = (byte)',';
bytes[959] = (byte)b[0];
bytes[960] = (byte)'.';
bytes[961] = (byte)b[1];
bytes[962] = (byte)b[2];
bytes[963] = (byte)',';
using (FileStream stream = new FileStream(saveDialog.FileName, FileMode.Create))
{
stream.Write(bytes, 0, bytes.Length);
}
What is important to note is that the embedded afx resources came from the orange theme, the other themes will require different offsets for the byte modification. I'm not sure why the different themes have different code here, I haven't looked closely at the wave animation code for each theme so there may only be a difference there, or there could just be one more space here and there in the preceeding lines or four spaces instead of a single byte tab ('\t')...
Anyway, the next step is to try and modify the number of bytes in the code and see if it still works, on my first few tests timescape just crashed so I thought that the number of bytes of clear-text code may be stored in the header. I'm not so sure now as I think I may have just been having problems while mixing the use of the .Net stream classes for reading an writing. I'll check this out though.
If we can modify the code however we want then I just need to learn a bit more java
The code for the wave animation is in the comments at the bottom of MainForm.cs. Here is the line with the characters being modified in bold:
fcolor.rgb = vec3(1.0, 0.91, 0.72) * ambientRatio + vec3(1.0, 0.516, 0.0) * specularRatio;
LOL this is just lazy lol, Thanks for the guide i will get the other 3 i need for Dark10 sorted on sunday.
this all sounds awesome =)
May I suggest posting the source code to your .exe files? that way others can pitch in and help improve the tools, too. slap on the GPL for a decent licence and it should be no problem
ttxdragon said:
this all sounds awesome =)
May I suggest posting the source code to your .exe files? that way others can pitch in and help improve the tools, too. slap on the GPL for a decent licence and it should be no problem
Click to expand...
Click to collapse
Good idea I have just updated the first post. I have only added the animation tool source as the .acet converter is just a direct color translation except for the header which is post in the acet thread linked in the first post.
I can post this code as well if anyone is really interested, but it will have to wait until I am back at work on the 14th, or until the VPN starts working again
VPN's up - posted the rest of the source.
calum.. just got a new charger today lol so back on track.. although some reason i cant seem to get my colour to change at al? ive rebooted, tried task managers n al but no luck..
Edit: ignore that.. managed to get it working! like an idiot i forgot to add the code at the top for mount/remount lol.. feel like a blonde
Has anyone got an original version of ms_bg_background_home_icn.acet?
Being the genius that I am, I tried to edit it without backing it up first.
I tried to convert a png image to an acet file using that acet converter but ended up with a background with a similar issue to what's in this post. Will read through all the posts tomorrow and try again.
Hey buddy any more progress with this project?
Sorry, on the road at the moment. I'll be back onto this next week.
@Mobzter: glad you got it sorted.
@Sixpence: you may have exported the image with the alpha channel. Make sure the alpha option is off for the timescape and mediascape backgrounds. I'll add complete backups to the first post next week
heres a backup of that file
_calum_ said:
@Sixpence: you may have exported the image with the alpha channel. Make sure the alpha option is off for the timescape and mediascape backgrounds. I'll add complete backups to the first post next week
Click to expand...
Click to collapse
Ah, yeh, I think that's what I did. I'll try again and see how I go. Cheers!
Thanks for backup Mobz!
EDIT: Sweet, that worked!
I just thought I'd post a link to my dark Timescape theme here.
Timescape (Dark)
If anyone else has got any modified timescape themes please post them (including the modified framework and thumbnail images). It would be nice if we didn't just all modify the Indigo them (as I did above) as if we use neutral images for the default contacts etc. then we can easily change between the different themes.
Any interest
Just a bump to see if anyone is interested in doing anything with the Timescape animation except changing the color.
If they are then I might get back into modifying the .afx files, otherwise I'll probably just move on....
I don't actually use it that much and now I've got rid of the blue I'm sorta happy, but it might be kinda cool if we can add our own animations to replace the wave...
How about the mediascape animation? I wanna make it melt into the next screen. Do u think that's doable?
How can i chnge theme for x10i
Sent from my X10i using XDA App
gavriel18 said:
How about the mediascape animation? I wanna make it melt into the next screen. Do u think that's doable?
Click to expand...
Click to collapse
Do you mean instead of the spline/fade animation when you hit the 'more' button? I think a melting animation would be pretty ambitious and probably only doable if the fade is actually part of the animation. I'll see if I can get an editor slapped together so we can just modify the afx code directly. I'll have a look at the mediascape animation files once I've got that done...
xian08 said:
How can i chnge theme for x10i
Click to expand...
Click to collapse
Sorry, I need a bit more information here. Where exactly are you stuck? Do you just want to install a different theme that you have from one of the x10 themes in another forum, or do you want to create you own?
That's exactly what I was thinking, a melt to a fade into the next screen.
I'm trying to understand how it works but i don't have enough spare time right now.
OK, 2.1 is here and the file formats for timescape themes have changed...
First off, the apk names have changed. They are now named like this:
TimescapeLargeUITheme[ThemeName].apk (e.g. TimescapeLargeUIThemeSakura)
The .acet files are now .uxraw files. The file header and content has also changed: the header is now 8 bytes, that can be split into 4 16bit integers. The first two I'm not sure about, (second one always seems to be 8...) but the 3rd and 4th are width and height respectively. After the header we still have the color info, but it seems that alpha is always included. The bytes are in the order R G B A (the alpha is now the 4th byte instead of the first).
I have attached the new converter and source.
Edit: I originally wrote an incorrect value for the first byte in the header (20 instead of 0x20... oops ) this resulted in a black background...
The afx files have also changed to uxsh. There seems to be a bit more in these files but the animation code is still in plain text. I'm working on an editor, and will update this post when it's done.
2.1 or 1.6 ?
Is this for 2.1 or 1.6 ?
Looks a silly question... But, am little cautious and more excited to see this on my 2.1update1.
Thx for such a great work.
_calum_ said:
OK, 2.1 is here and the file formats for timescape themes have changed...
Click to expand...
Click to collapse
mitalbr said:
Is this for 2.1 or 1.6 ?
Click to expand...
Click to collapse
2.1 (I had also changed the thread title to make this clearer )
_calum_ said:
2.1 (I had also changed the thread title to make this clearer )
Click to expand...
Click to collapse
I was just adb'ed the file system and I found I have following files...
TimescapeLargeUI.apk
TimescapeLargeUIThemeBlue.apk
TimescapeLargeUIThemeGreen.apk
TimescapeLargeUIThemeIndigo.apk
TimescapeLargeUIThemeOrange.apk
TimescapeLargeUIThemeSakura.apk
TimescapePluginManager.apk
I couldn't locate...
Timescape.apk
TimescapeThemeIndigo.apk

Updated:03-15-12-Better Draw9patch Program FOUND!

UPDATED 03-15-12:
Elex_kr has introduced a NEW DRAW9PATCH Program. Please scroll down through the post to view his work. AND DONATE. This DEV deserves a lot of credit for bringing a new improved program to the rooted community. I can attest that his program is very easy to use and extremely fast. We're working on new ways to improve the program. Please post your comments and suggestions to Elex_kr below.
03-15-12-Direct link to his latest Better 9-patch Tool
Here's quick video of what Elex_kr's Better 9-Patch Tool
Original Post:
I'm putting this thread together because it's been too long that draw9patch has been in place without any updates or improvements since its release. I'm also posting this because I'm sure there's a dev willing to redesign draw9patch and make it easier to use. Here's a quick video of why we need an improved draw9patch program.
The main issue for many themers is how time consuming it can be to fill in only ONE pixel at a time. I've been using draw9patch for almost a year and it consumes a large portion of my day. The IDEAL draw9patch would be able to select multiple pixels at the same time. For example, selecting one end of the png and holding down (Shift) while selecting the end point where the pixels would automatically fill in. I'm open to suggestions or comments. Please keep this professional.
Donation: I'm willing to give any DEV $100 for a newly improved draw9patch program. Conditions as follows:
1) Must be based off the original draw9patch
2) Must have the improvements stated above, allowing for multiple pixels to be selected based on holding (CTRL, SHIFT or ALT)
3) Must have the ability to save the PNG as a .9.png.
4) Must be compatible with Windows 7.
*-*-*
Just to give the dev an idea of how long draw9patch can take. Today I used the program to stretch 59 .9.png's. It took an average of 2 1/2 minutes per 9.png. That's 2 hours and 26 minutes of solid time spent using draw9patch. I could have done these in probably 35 minutes tops if the program was more user friendly and had the above stated actions.
Attention moderator(s). If this video can be embedded, please correct it.
Well as I am fairly new to the .9 drawing itself, can you please explain the general idea and workflow?
I know that those lines and pixels are used to determine what in the image is stretchable and what not.
And I have another question:
You say that the new too lneeds to be based on the old one... What do you mean exactly with that sentence?
Is there any special kind of problem doing these .9 files? Or is it just drawing the lines and then saving the file as a normal png?
Diamondback2010 said:
Well as I am fairly new to the .9 drawing itself, can you please explain the general idea and workflow?
I know that those lines and pixels are used to determine what in the image is stretchable and what not.
And I have another question:
You say that the new too lneeds to be based on the old one... What do you mean exactly with that sentence?
Is there any special kind of problem doing these .9 files? Or is it just drawing the lines and then saving the file as a normal png?
Click to expand...
Click to collapse
Thanks for dropping in Diamondback! Draw9patch places a one pixel border around the PNG. The border is used to place black pixels in areas the png will stretch.
My workflow consist of making the png from scratch in CS5 (Adobe Photoshop) then saving the image as a png. That PNG is then places into draw9patch for editing. I place the pixels around the border as needed then save the work in draw9patch. Draw9patch automatically saves the png as a .9.png.
The .9.png is in it's raw decompiled format. Which means, the pixels are still visible. The only way to hide the outer border is to place the .9.png into either Eclipse (Instructions found here on my thread:
http://forum.xda-developers.com/showthread.php?t=1140034
Or XUltimate draw9patch compiler(reference: xeudoxus). Website:
http://www.droidforums.net/forum/xeudoxus/47283-release-xultimate.html
Both of the programs will compile the .9.png which then can be used in any apk. XUltimate's being the quickest and easiest to use by far.
What the new draw9patch needs:
"The new Tool needs to be based on the old on." Really, I just need to be able to see how the png will look when my pixels on the border are added. When you drop a png into draw9patch, you'll know what I'm talking about. Aside from that, it's basic functions would be nice. Such as,
1) Show lock
2) Show Patches
3) Show content
4) Zoom
5) The drop and drag png's into the program
6) MOST IMPORTANTLY a faster way to draw the pixel border around the png. An example of this would be to hold shift down and select the beginning point and end point of where a pixel line should be place.
If it could compile itself upon saving, that would be another great feature to add.
There's really no kind of problem with doing .9.png's other than the draw9patch program we are forced to use is a dinosaur and lacks efficiency. Hundred's of Devs and themers use draw9patch on a daily basis. This product alone would be valuable to anyone needing a more efficient tool. With that said, I'm sure themers like myself would gladly pay to use a more efficient program.
raider3bravo said:
Thanks for dropping in Diamondback! Draw9patch places a one pixel border around the PNG. The border is used to place black pixels in areas the png will stretch.
My workflow consist of making the png from scratch in CS5 (Adobe Photoshop) then saving the image as a png. That PNG is then places into draw9patch for editing. I place the pixels around the border as needed then save the work in draw9patch. Draw9patch automatically saves the png as a .9.png.
The .9.png is in it's raw decompiled format. Which means, the pixels are still visible. The only way to hide the outer border is to place the .9.png into either Eclipse (Instructions found here on my thread:
http://forum.xda-developers.com/showthread.php?t=1140034
Or XUltimate draw9patch compiler(reference: xeudoxus). Website:
http://www.droidforums.net/forum/xeudoxus/47283-release-xultimate.html
Both of the programs will compile the .9.png which then can be used in any apk. XUltimate's being the quickest and easiest to use by far.
What the new draw9patch needs:
"The new Tool needs to be based on the old on." Really, I just need to be able to see how the png will look when my pixels on the border are added. When you drop a png into draw9patch, you'll know what I'm talking about. Aside from that, it's basic functions would be nice. Such as,
1) Show lock
2) Show Patches
3) Show content
4) Zoom
5) The drop and drag png's into the program
6) MOST IMPORTANTLY a faster way to draw the pixel border around the png. An example of this would be to hold shift down and select the beginning point and end point of where a pixel line should be place.
If it could compile itself upon saving, that would be another great feature to add.
There's really no kind of problem with doing .9.png's other than the draw9patch program we are forced to use is a dinosaur and lacks efficiency. Hundred's of Devs and themers use draw9patch on a daily basis. This product alone would be valuable to anyone needing a more efficient tool. With that said, I'm sure themers like myself would gladly pay to use a more efficient program.
Click to expand...
Click to collapse
Hm, okay so the only real "work" is drawing lines around the image, okay.
I wonder if those lines are really needed? Does the final (compiled) image somehow has those lines too?
Or are the lines only an easy way to tell the compiler what to do?
Would it be possible choose another way of "marking" those areas instead of lines if we create a different compiler?
What about the sources of the compilers? Are they opensource?
Edit: Actually the biggest problem would be the preview... But I see that this is the most important part too
Diamondback2010 said:
Hm, okay so the only real "work" is drawing lines around the image, okay.
I wonder if those lines are really needed? Does the final (compiled) image somehow has those lines too?
Or are the lines only an easy way to tell the compiler what to do?
Would it be possible choose another way of "marking" those areas instead of lines if we create a different compiler?
What about the sources of the compilers? Are they opensource?
Edit: Actually the biggest problem would be the preview... But I see that this is the most important part too
Click to expand...
Click to collapse
The lines are exactly what you say. They aid in telling the compiler which way to stretch the png. Sometimes if you have complex png's like I do, you have to be very specific on where you place the pixels. The same problem remains though, the bottom pixels and the right pixels take the longest.
If the compiler was modified to to automatically place these borders in a specific place each time, it would lead to png's that may not look as intended. For example:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
The screen shot on the left shows several of my buttons. Look specifically at the button with the words "Set" & "Cancel". These buttons require very specific pixel alignment on the bottom of the png which tells where to place the text. If it were on the entire bottom portion of the button it may lead to text running over parts of my graphic where I didn't intend it.
I'm not sure if the compilers are opensource. I would talk to the dev that made XUltimate.
**Adding the ability to select multiple pixels at the same time with the current program in place is the ideal solution.
I would love thus as well. Now while I don't mind hold the mouse button and dragging the pointer down to draw the line instead of the single click method it would be so much easier with making 2 points and then having the rest get filled in.
I would love to work on that project here but actually I don't have enough time to code and maintain two projects ( of which is one way bigger than everybody thinks)...
So maybe someone else can join me?
We do have several "harder" tasks to do:
Crerate an engine which can generate the patches fro mthe patch lines
Something that can work with the patch lines to show the previews
The user interface needs to be easy to work with
I would code that with C# and WPF, so if we have some talented experienced .NET WPF devs here it would be cool to make a little team
Alternative to using draw9patch
Here's a alternative method I uncovered using Adobe Photoshop.
1.Drag and drop png's into Adobe Photoshop instead of Draw9patch
2.Increase canvass size by 2w and 2h.
3. Use the pen tool to make your corrections like you would in draw9patch.
4. Convert pen tool by right clicking on the line you created and select stroke path/pencil/ok
5. Delete the path
6. save the png as .9.png
7. Compile
Here's video on how. For now, it's the best alternative to draw9patch.
This process alone has saved me hours of time. Especially, on large png's.
http://youtu.be/kwpQ8A9r_Zo
Updated 12-16-11. Someone out of Korea just created an awesome draw 9 patch program. It's a must see. Link here.
http://fly-elex.tistory.com/m/entry/the-9-patch-builder
Hello,
I just make a new id in xda to let you know that
I made an alternative 9 patch tool with Java.
And you can download it from my blog.
(sorry, it says that i shouldn't link external ... oh.. i'll attach the '.jar' file.)
Please try it. Thank you.
DOWNLOAD FROM HERE
Elex_kr said:
Hello,
I just make a new id in xda to let you know that
I made an alternative 9 patch tool with Java.
And you can download it from my blog.
(sorry, it says that i shouldn't link external ... oh.. i'll attach the '.jar' file.)
Please try it. Thank you.
Click to expand...
Click to collapse
Awesome work Elex_kr! Downloading now. This could change the entire Theme Community/rooted community. Good work. I'll report back soon.
Updated:
WOW! This is a must have Themer tool. Very nice job. Thanks for posting your initial link on my Youtube video. Very much appreciated, your donation has been sent!
Newly updated!!!
Following is your requirements.
1) Show the outer line pixel being drawn. It really helps to see it being draw9 out. This is a must. The shading you designed helps but it will help much more if we see the border being drawn.
2) Your program draws the line from one end to one end. The original draw9patch leaves at least one pixel at each corner. Have you experienced any problems with your .9.png’s being designed like this?
3) Can you add a copy button or port button to allow the image to be immediately opened up in the old draw9patch editor so we can see how the image stretched? Or at least make it super easy for us to save the path to our draw9patch program from command prompt then press a button to have the image created in your program transfer over to draw9patch.
4) Create a transparent border around the png. With your latest release, there’s only a transparent border on the left and right. The top and bottom should also have a little buffer room to make things equal.
5) A save as button would be nice so we can direct the image to a folder where we want our work to be saved. Even better, give us an option to create a default work folder where our .9.png’s are saved.
6) This is of course much more difficult but would be a nice feature. Being able to compile the .9.png upon save. That would save some time. That would for sure be the icing on the cake.
DOWNLOAD FROM HERE
------------------------------------------------------
I think I solved 1) ~ 5).
And 6) will be available on next release.
Please, check attached file.
And thanks for your donation!
FINALLY a New Draw9patch Program
Elex_kr said:
Following is your requirements.
1) Show the outer line pixel being drawn. It really helps to see it being draw9 out. This is a must. The shading you designed helps but it will help much more if we see the border being drawn.
2) Your program draws the line from one end to one end. The original draw9patch leaves at least one pixel at each corner. Have you experienced any problems with your .9.png’s being designed like this?
3) Can you add a copy button or port button to allow the image to be immediately opened up in the old draw9patch editor so we can see how the image stretched? Or at least make it super easy for us to save the path to our draw9patch program from command prompt then press a button to have the image created in your program transfer over to draw9patch.
4) Create a transparent border around the png. With your latest release, there’s only a transparent border on the left and right. The top and bottom should also have a little buffer room to make things equal.
5) A save as button would be nice so we can direct the image to a folder where we want our work to be saved. Even better, give us an option to create a default work folder where our .9.png’s are saved.
6) This is of course much more difficult but would be a nice feature. Being able to compile the .9.png upon save. That would save some time. That would for sure be the icing on the cake.
------------------------------------------------------
I think I solved 1) ~ 5).
And 6) will be available on next release.
Please, check attached file.
And thanks for your donation!
Click to expand...
Click to collapse
WOW. Your work is amazing and SPOT ON
I really enjoy having the push button that exports the 9.png to the old draw9patch, I'm impressed. The lines around the png certainly helps along with having an even buffer around the image. I'm very excited for the next release.
Up until now, theming .9.png's have been a serious pain and very time consuming. Another donation sent just now...as promised! Thank you sir. We all look forward to the next release.
This looks awesome guys. I cannot wait to give it a try.
Sent from my PG86100 using Tapatalk
Hey D! Thanks for the linky. I just got back from honeymoon
TO imbed youtube...........
Use the YOUTUBE Tags with this in between: 2Wvw1aNXRw4
[youtube ]2Wvw1aNXRw4[/youtube ]
no spaces in between brackets yield this:
now, you can drop '.9.png'.
as you know,
it's been a massively complicated calculating job..
i hope you could test it and report me some bug, if any.
and some 'preview' would be available on next release.
merry christmas~
DOWNLOAD FROM HERE
Elex_kr said:
as you know,
it's been a massively complicated calculating job..
i hope you could test it and report me some bug, if any.
and some 'preview' would be available on next release.
merry christmas~
Click to expand...
Click to collapse
So far, so good. The "Center" feature you added saves a lot of time. That's a very nice feature to have.
Here's a thought.
1) Add a "New Project/New" button so we don't have to close the program to start a new project.
2) Batch open and save, based on your "Center" feature you added. I'm sure we couldn't use this feature on all our .9.png's but the majority of the buttons all use the same "center" feature you added.
1) I couldn't understand why 'new' is needed. Is there any difference between dropping new image on a workspace? Please explain more..
2) Processing entire images inside a folder with same values, good idea! I'd better let it an additional function for a paid version.
Thank you for your ideas!
+ 1
raider3bravo said:
Here's a alternative method I uncovered using Adobe Photoshop.
1.Drag and drop png's into Adobe Photoshop instead of Draw9patch
2.Increase canvass size by 2w and 2h.
3. Use the pen tool to make your corrections like you would in draw9patch.
4. Convert pen tool by right clicking on the line you created and select stroke path/pencil/ok
5. Delete the path
6. save the png as .9.png
7. Compile
I was just about to suggest this same thing, however I use gimp.
But the process is exactly the same except I only add a 1 pixel border usually.
You then select that border so you don't affect the rest of the image when drawing your lines.
You must be good at 9 patching to use this method but after spending so much time with the android 9 patch tool like you said it should be a easy for you.
I don't think it could ever really get easier than this.
I swear I have seen a tutorial a long time ago when I was getting started that showed a guy doing exactly as you described by drawing the lines by hitting shift. I was never able to figure it out.
I am going to try your tool Elex_kr
It sounds very promising.
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Elex_kr said:
Following is your requirements.
1) Show the outer line pixel being drawn. It really helps to see it being draw9 out. This is a must. The shading you designed helps but it will help much more if we see the border being drawn.
2) Your program draws the line from one end to one end. The original draw9patch leaves at least one pixel at each corner. Have you experienced any problems with your .9.png’s being designed like this?
3) Can you add a copy button or port button to allow the image to be immediately opened up in the old draw9patch editor so we can see how the image stretched? Or at least make it super easy for us to save the path to our draw9patch program from command prompt then press a button to have the image created in your program transfer over to draw9patch.
4) Create a transparent border around the png. With your latest release, there’s only a transparent border on the left and right. The top and bottom should also have a little buffer room to make things equal.
5) A save as button would be nice so we can direct the image to a folder where we want our work to be saved. Even better, give us an option to create a default work folder where our .9.png’s are saved.
6) This is of course much more difficult but would be a nice feature. Being able to compile the .9.png upon save. That would save some time. That would for sure be the icing on the cake.
------------------------------------------------------
I think I solved 1) ~ 5).
And 6) will be available on next release.
Please, check attached file.
And thanks for your donation!
Click to expand...
Click to collapse
I would like to say thank you. I don't think clicking the button is good enough. Thank you for improving the infrastructure of development tools.
Awesome, awesome, awesome work. Every time I have to use draw9patch I'm reminded of how long it takes to do such a simple task. Can't thank you enough for the work you've done on this!

[WIDGET][2.1+] MicroNotes

MicroNotes​Android 2.1+​
Hello people!
I am new to XDA so first i would like to say Hi.
MicroNotes is my first android app/widget that i have made and so i would like some feedback.
DESCRIPTION
From planing out your daily schedule to writing a to do list for the day, MicroNotes for Android is your #1 Notepad app for your Android device.
FEATURES
-Multiple line notes, good for making lists
-Works on android Gingerbread(2.1) - android Ice-cream Sandwich(4.0.4)
-Updated almost daily
-Looks good on all types of devices (Android 2.1 - 4.1)
-No bugs
-Simple
-Dose not need a internet connection
Lots more to come!
Check out my portfolio at: http://besieger.ensocms.com
INFORMATION
This is a widget not an app, when you place the widget on your screen you will be taken to a app like screen where you can type your note and save it.
Should you need to edit your note simple tap the existing note on the screen and edit then press save to save the changes.
Any one interested in trying it here is a link: Link
If there is anything wrong with my post please let me know so i can change it
Thanks for your times guys,Josh
"wrighting" should be spelled writing.
I'd like to know more: when you click the widget, does it open the main app or does the keyboard appear on the launcher screen?
Also, is there a main app in the first place (since you're just saying "widget")?
---------- Post added at 11:48 PM ---------- Previous post was at 11:37 PM ----------
Ok, installed it. It's only a widget (make sure it's installed to the phone memory). Simple to use, simple interface, non existent loading times. Clicking the widget opens a screen where you can change the note. Some themes/transparency would be nice, other than that, it does what it says it does.
GermainZ said:
"wrighting" should be spelled writing.
I'd like to know more: when you click the widget, does it open the main app or does the keyboard appear on the launcher screen?
Also, is there a main app in the first place (since you're just saying "widget")?
---------- Post added at 11:48 PM ---------- Previous post was at 11:37 PM ----------
Ok, installed it. It's only a widget (make sure it's installed to the phone memory). Simple to use, simple interface, non existent loading times. Clicking the widget opens a screen where you can change the note. Some themes/transparency would be nice, other than that, it does what it says it does.
Click to expand...
Click to collapse
thanks for looking at my app, what do you mean by add themes?
besieger1 said:
thanks for looking at my app, what do you mean by add themes?
Click to expand...
Click to collapse
Different background/text colors, perhaps optional rounded corners, etc.

[Q] Bluestacks no phone/large phone view mode?

Bluestacks landscape/portrait only tablet view mode. Where are others?
As soon as the bluestacks have been progressing it has been deleting most of the crucial elements from it. Now the appsettings app doesn't contain the phone and large phone view mode only the tablet and default mode. Because of this most of the apps doesn't work fine and creates problem unless fiddled with the registry. As appsettings is an app and previously built bluestacks had these options can someone post them here as most of the games do not work with the default and tablet mode resolutions. Also some apps automatically changes resolution too, it's okay to change the orientation but instead of changing the app's orientation the bluestacks orientation is changed which is mind wobbling.
Do anyone else is having this problem?
Hiiii ... when I use blue stack my first word for this app is blue sh!t ...!!! he never my any I download
---------- Post added at 01:26 PM ---------- Previous post was at 01:11 PM ----------
everyone having problem by using bulestacks in my opinion

How can I decomp an APK & show a preview of it on Android Studio to make an overlay?

How can I decomp an APK & show a preview of it on Android Studio to make an overlay?
I want to make a substratum overlay of the Pocket app to tweak the layout. I'll admit I don't know much since I'm pretty new to this.
I extracted an APK for the Pocket app using adb pull, and decompiled it with apktool. I then tried importing it onto Android Studio (on Windows) and selected to import with Android Gradle instead of just Gradle (since the later doesn't work for me). I did some looking up online and it seems that apktool isn't perfect for decompiling apps, and I might be doing something wrong with showing the preview, what I tried is opening up XML files in the layout folder and the preview would not load (after looking stuff up online, apparently somewhere on the bottom of Android Studio, I have to select text instead of design but I don't see it anywhere). Are there ways to decompile the APKs like for the pocket app better, as well actually be able to preview XML files?
I attached the pocket APK in case that's helpful.
View attachment pocket.apk
You cannot preview unless you have source. Theming is a ton of trial and error so you'll have to find the resources and add them to an overlay to change the look..
Join the theme devs collective for substratum for faster help. We have links to tools and process but searching the forums on "how to theme" should be your first stop, as we only show you how to use substratum to theme not how to theme. Finding the resources and knowing what to change is on you. Moving those resources to substratum we can teach.
Hope that helps!
@themingHelp use in telegram to join.
DJ
Sent from my SM-G965U using Tapatalk

Categories

Resources