Need help: Adding Refresh and image to my webview with slidingmenu app. - Android Q&A, Help & Troubleshooting

Dear Android developers!
I have made a simple webview application with a sliding menu. I would like to add 2 changes to my application, but I have no idea how to:
Number 1:
Above 'Home' where you see 'ConsoleHax Menu' I would like to place a header image:
w-w-w. consolehax .com /images/ xda02.png
[B]Number 2:[/B]
In the heading on the right, you see 3 dots. When users click on it, they'll see the text 'Coming Soon'. I would like to add a refresh functions to that menu.
[IMG]w-w-w. consolehax .com /images/ xda01.png
My Github Repository:
ConsoleHax/ConsoleHaxApp
I hope someone can help me figure this out!
Thanks in advance!

Related

[APP][12-Nov-2010] CHTEditor v2.0.0.0 - Final Released

Intro
Co0kie's Home Tab offers us a vast array of changes for our home tabs. A lot of the options are only available via registry edits, unless you use CHTEditor.
With this application you can modify all the settings for the mod without having to open a registry editor, as well as being able to export & import all your settings and quicklinks, in case you need to hard reset or flash a new ROM. Multiple settings files can be automatically linked in the start menu, so you can switch layouts without opening the editor. You can also add these shortcuts as quicklinks to switch layouts from the home tab itself.
This application DOES NOT make any changes to Sense. You MUST have Co0kie's Home Tab installed!!!
You can get Co0kie's Home Tab here.
A BIG thanks goes to eboelzner for the Sense Interface SDK UI controls. They've made a vast improvement to the application and he's been a great help getting the latest version looking the part.
You can find the Sense Interface SDK here.
Please read post #2 before...
upgrading (either the editor OR Co0kie's Home Tab)
changing the editor language
posting issues
posting change requests
cooking the editor into a ROM.
Click to expand...
Click to collapse
About CHTEditor v2.0.0.0
CHTEditor v2.0.0.0 final will only work with CHT 2.0.0 final.
There is no backward compatiblity with versions 1.x.x, so you can't import old CHTE settings files. But future versions will be compatile going forward, so you will be able to import you 2.0.0 settings into any 2.x.x version.
Click to expand...
Click to collapse
News
Update: 12-Nov-2010
CHTEditor v2.0.0.0 Final released. Changes since public beta:
-[new] options added in CHT 2.0 final
-[new] multiple language file support
-[new] HVGA specific setting adjustments
-[fixed] reversed tasks sortby
-[fixed] contact links export/import bug
Click to expand...
Click to collapse
Requirements and Compatibility
This application requires .Net 3.5 to be installed on your device. You can download it here.
Some people seem to be having trouble installing .Net 3.5. If you are one of them, read this post and this post for 2 different suggestions.
The application has been tested thoroughly and found to be stable for WM6.5. There is an issue when automatically restarting manila in WM6.1, but you get a friendly error message telling you about it. If you get this message then you will need to restart manila manually.
MAKE SURE that you have the same version of the mod and the editor installed - you'll be told when starting the editor if you don't.
(It only has to be the first 3 numbers eg. v1.7.1.0 will work with v1.7.1.1)
Click to expand...
Click to collapse
Important notes
If in the future you upgrade Co0kie's Home Tab to a newer version, please read post #2 below.
This application can be installed to either the device or your storage card.
Finally, a lot of time goes into this application and this thread, so I'm sorry but I won't answer any questions that are answered in these first few posts. Any major issues will either be resolved as a new release, or will be mentioned at the top of the thread somewhere.
Click to expand...
Click to collapse
Features list
Change the settings without a registry editor
Export and import settings and quicklinks (can also be done via command-line - see post 2)
Command-line support for import and export of settings (see post 2)
Create shortcuts to settings files for on-the-fly quick changes from the start menu or quicklinks, without running the editor
Remove dead quicklinks
Automatically restarts manila or soft resets for immediate changes
Multi-language support
Click to expand...
Click to collapse
Download
Section 2: Important information
Upgrade information
Please read carefully BEFORE upgrading Co0kie's Home Tab
Before upgrading Co0kie's Home Tab, use the Export option in the CHTEditor menu to create an export file for your Co0kie's Home Tab settings and all your quicklinks. Then, upgrade Co0kie's Home Tab and the editor (if needed), then run the Import option in the CHTEditor menu to restore your settings. This saves you having to setup Co0kie's Home Tab again, and re-creates all your quicklinks for you. (Note - this method is only available in v1.6.0+)
Files exported from version v1.x can't be imported to v2.x.
If you are upgrading Co0kie's Home Tab, you may well need to upgrade the editor as well. If so, follow the instructions above. To install a new version of CHTEditor, just run the CAB file and allow it to uninstall any previous version. Just continue the installation as normal after that.
Once you have upgraded Co0kie's Home Tab (and the Editor, if needed), run the editor and use the import option in the menu to import all your previous home tab and associated settings (quicklinks, layout, options etc.).
Click to expand...
Click to collapse
Command-line import & export
Please read for command-line help
You can now import and export settings files using command-line instructions, rather than having to run the application. Imports were previously introduced with v1.7.1.1, but you can now also export as well. This is the format of the instructions...
CHTEditor.exe /IMPORT "fullpath\filename.cht"
The /IMPORT is optional, as this method already existed in v1.7.1.1, without it. I've just added it for consitency.
CHTEditor.exe /EXPORT "fullpath\filename(.cht)" (/CREATESHORTCUT)
The .cht on the filename is optional, as it is automatically added if you don't do it yourself. If the /CREATESHORTCUT instruction is used, a shortcut is created for the exported settings, in a folder in your start menu (handy for adding quicklinks to exports).
Click to expand...
Click to collapse
Known issues
Please read BEFORE posting issues
Any bugs reported will be added to this list for fixing in later releases.
Export settings remembers your last folder. If this folder does not exist next time you try to export, an error will be raised.
Temp.Fix: Clear the value in HKCU\Software\HTC\Manila\CHTE.LastDialogPath to resolve this issue.
Importing does not always import the lockscreen layout.
Temp.Fix: Modify the lockscreen slightly, so that it creates the registry entries, and then import your settings again.
The dialog windows will still show button text such as "Yes", "No", "OK" or "Cancel", despite changing the language of the application. This text is part of the Sense SDK Interface that is used to make the application look (and work) the way it does. The developer of the interface, eboelzner, is currently adding localisation to these controls, so expect this to be resolved in a future release.
Click to expand...
Click to collapse
ROM chef information
Info for chefs wanting to cook the editor into a ROM
From v1.7 onwards, Co0kie's Home Tab now includes a menu link to the editor application. This requires a registry value that is set when installing the editor. Obviously, if you're cooking the application into a ROM then the installer is not being run, so this value is not being set.
The following value should point to the editor application to make this link work:
HKCU\Software\HTC\Manila:CHTE.Path
for example...
CHTE.Path = \Program Files\CHTEditor\CHTEditor.exe
Click to expand...
Click to collapse
CHTEditor Translations
Please read if you are interested in changing the language of CHTEditor or wish to translate it
Download the attached language_default.txt file and translate it - there are more detailed instructions inside.
Then rename the file to indicate which language it is: for example, language_german.txt or language_french.txt. (The part after the _ will be shown in the CHTEditor language selection menu.)
Just place the file in the CHTE install folder and it will show up in the language menu.
Upload the file here after you've translated it I'll add it to the language pack which will be attached in the first post.
Whenever there are updates to the application, the language files will need to be updated to include the new values. Anyone who does this, please post them, as described in above and they can be manually downloaded by people, as well as being uploaded to the application server by me.
<< Reserved for future use >> 3
<< Reserved for future use >> 4
Thanx man...
Also here the congrats from me for this release. It is also a kind of magic. HTC Editor makes all the things possible. Use, test and learn how many things are possible with this release. Wow, in simple words.
BIGTHX for hard work
Super thanks, congratulations to everyone involved in the making of CHT!!
please don't oversee that import and export had to be changed, so that the savings from 1.8.5 can't be applied.
And also that this app only triggers the registry keys of CHT, so please report - like used - new feature requests (if you have one now after the Releases) or not-Editor-related bugs in CHT thread and not here.
Have Fun
Micha
Repeatable Error:
Under Applications Mail
I found that if I add an email shortcut to the mail link causes a crash.
With error message install "NETCFv35.Messages.EN.WM.cab....etc"
Will try another shortcut to see if is the cut to the process of adding.
HTH
Nev
Neville.Holland said:
Repeatable Error:
Under Applications Mail
I found that if I add an email shortcut to the mail link causes a crash.
With error message install "NETCFv35.Messages.EN.WM.cab....etc"
Will try another shortcut to see if is the cut to the process of adding.
HTH
Nev
Click to expand...
Click to collapse
could you make a screenshot of the whole message?
Sorry tried coping message without luck. this is the best I can do at the moment
I've just added the calculator as the program to open, and it added successfully.
Tried renaming just in case "-" was the issue. "Mail" also fails.
Added shortcut for you as well.
HTH
Nev
Neville.Holland said:
Sorry tried coping message without luck. this is the best I can do at the moment
I've just added the calculator as the program to open, and it added successfully.
Tried renaming just in case "-" was the issue. "Mail" also fails.
Added shortcut for you as well.
HTH
Nev
Click to expand...
Click to collapse
Try Install NETCFv35.Messages.EN.WM.cab
anhphe076 said:
Try Install NETCFv35.Messages.EN.WM.cab
Click to expand...
Click to collapse
That won't fix the problem, will just give a more detailed error report.
Here's more detail then....
Update: 27-Sep-2010
CHTEditor v2.0.0.0 Public Beta R1 (revision 1) uploaded.
Changes:
-fixed application selection bug
-fixed free links import bug
Download it from the first post.
Please report if it works correctly now.
I find this option "Analog clock location (0-10) in CHTEditor.
Is this for establish an Analog clock with Time view of another city from the world clock menu??? For people who want to keep an eye on two different time zones???
If yes...how can I set this???
Thank you in advance
ducklas1 said:
I find this option "Analog clock location (0-10) in CHTEditor.
Is this for establish an Analog clock with Time view of another city from the world clock menu??? For people who want to keep an eye on two different time zones???
If yes...how can I set this???
Thank you in advance
Click to expand...
Click to collapse
It's connected to the Sense world clock (the list of locations you have when you tap the clock).
The 0 setting is default time.
Setting 1 connects the analog clock to the first location below "My location" in the world clock.
Setting 2 connects it to the second location, etc.
I hope I explained that clearly.
Co0kieMonster said:
It's connected to the Sense world clock (the list of locations you have when you tap the clock).
The 0 setting is default time.
Setting 1 connects the analog clock to the first location below "My location" in the world clock.
Setting 2 connects it to the second location, etc.
I hope I explained that clearly.
Click to expand...
Click to collapse
Great...more and more we get to know all hidden features of this Mod and everything is how we expected from the new release...amazing...
waitin' for final vers. and the manual....

Widget Tutorial for 2.3.3

Someone can post an example of Home Screen widget for Android SDK 2.3.3 with the source files? Just with a TextView will be enough.
In this page you'll find a very basic example (sorry, in Spanish). Don't forget to read the oficial documentation (basically the same info that is posted in the web, but less explained ).
Basically, you need:
Declare a layout for your widget.
Create a xml file, to store basic info about your widget (i.e its size in the homescreen).
Develop the callback methods (onUpdate at least, all others are optional).
Modify the Android Manifest, in order to obtain a widget and not an app.
Compile and test (if you wish to pray, you can do it )
I have tried all that I could.Followed tutorials from theNewBouston,vogella.de,android-dev.
First It was the No Launcher Activity Problem.I Fixed it with a configurator class.But now,after calling the configurator,the app closes.

[Q] Code for Copying Page URL in WebView

Hi All, i need some help with copy page url button, what i actually need is a Button in the WebView's layout which copies the page URL to the clipboard (no url bar is there in my webview ) so that i can paste it come where else.
Thanks :victory:

[APK][Xposed] resOverloader - Overload applications res files

Hello community,
I'm very glad to share my first trial of development which ran successfully for me and hope this will be useful for the rest.
I'm a big fan of a few chinese apps (baidu cloud, weiyun). Previously I was able to decompose and translate these apks to english until vendors injected apk signature validations into their apps. I even used these apps in foreign language but the experience were annoying. So I decided to translate these apps with some development. Eventually I came across resXploit by WisdomSky which give me a clue and I started this and it works :good:.
Basically resOverloader overloads strings.xml file for any apk (application). Source code is hosted on github for other devs to incorporate other resources as well. I'm not experienced dev and sharing this here for others and further development.
How to setup
Extract strings.xml from your target apk using apktool. read more
Translate strings.xml to your language. (I had developed a tool for it and would share it later)
Now create resOverloader folder in sdcard.
Find your app full qualified name in applications under settings and create a folder with app full name. (eg. com.baidu.netdisk)
Now copy the translated strings.xml to app folder inside resOverloader.
Restart your phone and it is done.
Hope this will help starters and requesting experience devs to add arrays.xml to this.
Github: https://github.com/babuilyas/resOverloader
Change log:
2.0 : rebuilt with targetSDK 14 and it should work for 2.2+ now. pls confirm.
Thank you for reading... Cheers.
reserved
Thanks all for praising my work. Here is my translation utility which can help you translate any xml file with auto fixing of literals and escapes within source text.
How it works!
The first step is, hand your xml file (strings.xml). Read OP
Run XML_translator.exe and select the file to translate. (language selectors are not working now and hardcoded to CN->EN)
Click Start translating.
The utility will take time and depends on source file length. At the end you will see strings-new.xml file. Rename it to strings.xml and use it with resOverloader.
I would soon remove the hardcoded part to enable multilingual translations.
Thank you very much.
I made a request for this feature in the request thread sometime back, but no developer was interested. . I will try it now and report back.
Edit: IT WORKS. My translated texts show up.
However, I would like only to see the translated texts when the system language is switched to that language only. So I could see original English texts when the system language is set to English.
nqk said:
Thank you very much.
I made a request for this feature in the request thread sometime back, but no developer was interested. . I will try it now and report back.
Edit: IT WORKS. My translated texts show up.
However, I would like only to see the translated texts when the system language is switched to that language only. So I could see original English texts when the system language is set to English.
Click to expand...
Click to collapse
OP could add localized string switching by checking filename suffix against Locale.getDefault().getLanguage(). So if you wanted to add multiple languages to an app, you'd just need strings-en.xml, strings-it.xml, etc etc
Yay , now yunpan/tencent/baidu drive shall all become translated
I was thinking about it latest two weeks and someone made it! Impressive!
nice work.. i'm waiting the translate strings tool..
This is really impressive.
Thank you very much for you work m8.
I'm on stock N4, and can't get this module to work. I decompiled and translated strings.xml, but there's no change in app. Should be translated strings.xml compiled back, before putting it to sdcard?
Great module, thx for your work. Also very interested in your translation tool. Also been thinking a lot about how to automate APK translation but to no avail.
Some features that i was thinking that can be added BUT not sure if they can be implemented:
- Load list of installed apps via GUI;
- Decompile the apk and extract the strings to a full app name folder (No idea if apk can be decompile from within an app)
- Tell user to edit the strings.xml
- Check if strings.xml was edited and in case it was prompt for reboot.
joluke said:
Some features that i was thinking that can be added BUT not sure if they can be implemented:
- Load list of installed apps via GUI;
- Decompile the apk and extract the strings to a full app name folder (No idea if apk can be decompile from within an app)
- Tell user to edit the strings.xml
- Check if strings.xml was edited and in case it was prompt for reboot.
Click to expand...
Click to collapse
I'm new and still learning android development. Im planning to integrate translating utility inside this app and would allow users to translate any app on the fly on the device.
geekon said:
I'm on stock N4, and can't get this module to work. I decompiled and translated strings.xml, but there's no change in app. Should be translated strings.xml compiled back, before putting it to sdcard?
Click to expand...
Click to collapse
make sure, you have copied translated xml in resOverloader\[your app full name]\strings.xml in internal memory (sdcard).
Bug: translated apps show an escaping slash-chars.
Can you add a possibility:
- to download and update of translation resources from github for all installed apps? In such case you should only define a resource location URL.
- for localization of res/layout/*.xml & res/xml/*.xml & etc
Is there a opportunity to use also preferences.xml?
babuilyas said:
make sure, you have copied translated xml in resOverloader\[your app full name]\strings.xml in internal memory (sdcard).
Click to expand...
Click to collapse
I tried with 4 apps, the results are as follows:
- AppSetting (xposed module): OK
- Nova Launcher: Partially OK, many strings remain in English
- Omniswitch (OmniRom): Not working (all texts are still in English)
- Transdroid: OK
:highfive:
nqk said:
I tried with 4 apps, the results are as follows:
- AppSetting (xposed module): OK
- Nova Launcher: Partially OK, many strings remain in English
- Omniswitch (OmniRom): Not working (all texts are still in English)
- Transdroid: OK
:highfive:
Click to expand...
Click to collapse
Share Xposed log and thanks for testing this app.
I saw the log, but didn't find any FC. See if there is anything in translated xml.
Benko111 said:
Great module, thx for your work. Also very interested in your translation tool. Also been thinking a lot about how to automate APK translation but to no avail.
Click to expand...
Click to collapse
i have some more ideas, so i will fork your module and add my ideas.
babuilyas said:
Share Xposed log.
Click to expand...
Click to collapse
Please have a look
https://m.app.box.com/view/f_16953900439
Sent from my Nexus 4
Very pleased.. Share it with all..
Sent from my LG-GEEB using Tapatalk

[APP][ENGINE][2.3.6+][Xposed] Resflux - A powerful and very easy to use per-application theming module.

[APP][ENGINE][2.3.6+][Xposed] Resflux - A powerful and very easy to use per-application theming module.
Resflux
--------------------------------------------------------------------------------------------------
Do you want to THEME your phone easily, without learning how to do it?
Then you are in the right place!!!
Resflux is very straight-forward. It's very easy to use. You don't need to learn anything just to get started. All you need is your common sense. Once you launch the application, you will see very big buttons with one-word description of what that button will do.
And I forgot to tell you that Resflux supports Gingerbread 2.3.6 and up! yeah you heard it right!
Just use the ported version of xposed installer for gingerbread users...
What else can I do with Resflux?
Tons! All you need is the idea!
- Theming an app or all of your apps.
- Replacing icon and name of your apps.
- Translating app from one language to another
- Overriding default settings inside frameworl-res.apk, settingsprovider.apk and systemui.apk
- and many more posibilities!
Laboratory
The laboratory is where most things will happen. It is where you start theming resources of a specific package. You can theme as many as packages if you want.
After you have selected the target package, Resflux will redirect you to the Experiment area where you can see five buttons namely "Drawable", "String", "Color", "Boolean" and "Integer" though you can only see their icons.
When you click a tab, the list will be populated with the corresponding resources and their current values are even shown so you can tell if it is what you are looking for and trying to replace.
Drawable Tab
{
"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"
}
In the Drawable tab, previews of every drawables are shown and by clicking the selected drawable, you can replace it with a new one.
This is replacement drawable chooser dialog
String Tab
In the String tab, you can take a look at the list of all string resources in an apk. The current value is shown in each string resource and you can replace the value with a new one if you want by clicking it.
Color Tab
In the color tab, all the color resources are listed and the preview of each color is also shown. You can replace it with a new color using the HoloColorPicker dialog.
Boolean Tab
In the boolean tab, you can see all the boolean resources of an apk. Boolean is type where its value is only true or false. You can also change it anytime just like the other resources.
Integer Tab
The integer tab is new in Resflux, since the old Resxploit only supported Drawable, String, Color and Boolean.
Export
If you plan to distribute your work or do a back-up or share it to your friend, then you can export it anytime. You can select which packages you want to export and which are not to be included.
From there, you can also completely, remove all modifications made to a specific package by long-pressing the target package.
Import
If you have exported a mod or got it somewhere and you want to upload it into your Resflux, then all you need to do is to put the zip file inside /sdcard/Resflux. By putting it inside /sdcard/Resflux, Resflux will quickly find it, but you can still leave it in other directories as Resflux will also search the other directories inside your sdcard.
Download Link:
http://repo.xposed.info/module/com.iwisdomsky.resflux
Please leave FEEDBACKS or SUGGESTIONS
And don't forget to hit Thanks if you find it useful!
Change logs:
Code:
1.6.1
- Replaced AAPT with ResourceFileParser library
(This will fix resflux compatibility issue with Kitkat and Lollipop. Marshmallow is yet to be tested. This change also causes resflux mapping of resources to becoming 2-10x faster than before)
[B]REMOVE:[/B]
[COLOR="Red"]1.7
- support for kitkat and above.
- faster mapping of resources (the mapping of resources will be done in the cloud)
- requires internet connection.
- 3x lesser apk file size.[/COLOR]
1.6
- Disabled xposed installed check on app start.
1.5
- UI updates.
1.4
- fix for colors not working issues.
- fix for double "#" on color resource's values.
- minor ui updates.
1.3
- The scroll position will remain and will not jump to the top when resetting/restoring a resource's value.
- Resflux Compiler link
1.2
- Fixed the resource name bug where an exclammation mark will appear before the modified resource's name.
- Forced the screen orientation of the Experiment area to stay in Portrait mode to avoid crashes when accidentally changed your phone's orientation.
- Added a possible fix for crashes on Import area.
- Increased the minimum width of dialogs to occupy some extra space on phones with bigger screen.
- Added labels to the tab buttons in the Experiment area.
- Updated the modified resource high-lighting feature for better visibility.
- Fast scroll enabled. Useful when you are trying to find a specific resource in the list quickly.
- Hold press a modified resource to restore its original value back.
- Clear cache action. If an installed app has received an update, it is a good practice clear the package's cache in Resflux so all changes to the resources to the updated app will become visible to Resflux.
- Added ability to supply a specific hex value to the color picker dialog as requested by many.
- Drawable picker dialog has been completely removed and replaced with an image chooser intent which will open the Gallery by default.
- When on drawable tab, you can change the drawable image preview's size by pressing the MENU key of your phone. Take note, this will not actually reflect to the final result but only to the previews.
- Other few minor UI changes.
1.1
- resource caching system for faster consecutive access.
- high-lighting of the modified resources to distinguish changes.
- added large heap attribute to the application element inside the android manifest file.
- empty package mods cleaner for the packages directory of Resflux.
1.0
- Initial release
Disclaimer
Though Resflux can modify any application, it is not guaranteed that it is can successfully modify all applications.
XDA:DevDB Information
Resflux, Xposed for all devices (see above for details)
Contributors
WisdomSky
Xposed Package Name: com.iwisdomsky.resflux
Version Information
Status: Stable
Current Stable Version: 1.5
Current Beta Version: 1.0
Beta Release Date: 2014-06-22
Created 2014-06-22
Last Updated 2014-08-03
How to use:
STEP 1: First, open Resflux then click Laboratory.
STEP 2: Next you need to choose the application you want to modify from the list and then click it.
STEP 3: Once you have clicked an application, Resflux will start mapping it's resources, you need to wait until it is finished before you can start.
STEP 4: If the mapping of resources has finished, you can now start changing any resource from the list. They are actually categorized as Drawable(Images), String(Texts), Color, Boolean(Switch) and Integer(Number)
STEP 5: Once you're done, you need to reboot your phone in order for the changes to take effect.
Sample Scripts
Disables Low Battery Warning notification
http://upfile.mobi/575226
System Font color changer (you need to extract the zip first then choose the zip of your fave color)
http://upfile.mobi/575213
NOTE: To install the scripts, you need to put all of them inside /sdcard/Resflux folder in your sdcard and then open Resflux and select Import and choose the file.
Reboot your phone afterwards to apply changes.
Resflux is proven working on these devices:
Motorola Moto G running Stock KitKat 4.4.2
S4 i9505 LTE running C-RoM 7.1 KitKat 4.4.4
Samsung Galaxy Y S3560 running Hyperion 8 GM Final Gingerbread 2.3.6
Cherry Mobile Flare S running Stock JellyBean 4.1.2
Cloudfone Thrill 430x running Stock JellyBean 4.1.2
Samsung Note Pro 12.2 tablet
HTC M8 running GPE KitKat 4.4.3
Samsung Note 2 running Touchwiz KitKat 4.4.2
Samsung S4 Mini
Xolo A500 running IceCreamSandwich 4.0.4
If Resflux is working on your device, please post your phone brand and model. thanks!
Special Thanks
I would like to thank everyone especially @rayjr13 for keeping the Resflux thread alive and answering all questions of other resflux users. Thank you very much! :good::good::good:
I would also like to thank all who donated! Please send me your names.
Source Code
Link.
Paypal Donations
If you have a very nice heart and want to make my wish come true, please don't hesistate to send your donations to my paypal account: [email protected]
Scripting
(For themers and programmers)
Apart from the Laboratory where users are provided with user-friendly interface, there is an another way to make modifications and that is by using the scripting feature of Resflux.
Soon, I will be focusing on adding more features to it. One is providing support for layouts. Not the whole layout, but to the components inside defined with an id.
When you export packages mod in Resflux, you will be given a zip file. And when you look inside it, you will actually find atleast a Resflux.ini file. And when you look inside the Resflux.ini file, you will see how Resflux turn everything into series of keys, sections, comments and how they are arranged.
The structure of the Resflux.ini complies with of an INI file as defined here:
http://en.m.wikipedia.org/wiki/INI_file
From the INI File wiki page, you can learn about which one is a key, section or comment.
From it, you may start studying how to write your own.
If you are a programmer, you may find it very easy to understand on how it works. And you can see that you are like dealing with objects. For now, we only have drawable, string, color, boolean, integer, layout, resflux and ini.
Rules
Resflux have rules in when it comes to syntax, grouping and arrangement.
RULE 1: The Resflux.ini can contain only keys, sections, comments and blank lines(with space or not) and should follow their corresponding syntax and must occupy a line therefore two keys in a single line is not honored.
For comments:
Code:
# [any text here]
; [any text here]
For sections:
Code:
[package.name.here]
For keys:
Code:
object.property_name = value
object.property_name : value
For blank lines:
A an empty line or composed of whitespaces.
If an invalid syntax is found, resflux will return error status 0
RULE 2: All resflux.* must be grouped together and must be placed before sections and any other keys except comments.
When this rule is violated, Resflux will return Error Status 1 during an attempt of importing it.
Rule 3: ]: All ini.* must be grouped together and must be placed after resflux.* and before sections and any other keys except comments.
When violated, it returns error status 2.
Rule 4: Before starting defining a key, you must have atleast defined a section. A section is composed of a opening square bracket "[", followed by the package name of the target app, and then a closing square bracket "]".
For example:
Code:
[com.my.app]
Rule 5: Each key must follow their respective value's format.
For drawable:
it could be a PNG image relative path like:
Code:
drawable.ic_launcher = icon.png
# or it could be also a color hex code:
drawable.ic_launcher = #ffff0000
For color:
color can have a single possible format for its value.
Code:
color.bg_color = #ff0000
For boolean:
boolean can only have two choices, the value could be either true or false.
Code:
boolean.enable_nothing = true
boolean.enable_nothing = false
For string:
string can have any value.
Code:
string.app_name = anything you want!!!
# enclosing value with quotes is also fine and work with all types of keys
string.app_name = "!want you anything"
OMG! the first themeing engine for gingerbread! many thanks sir! much appreciated it! :good:
i'm gonna try it soon & report back.
Two quick questions:
Will you upload this to the Xposed repo?
Do you plan on making the source available?
Thanks
GermainZ said:
Two quick questions:
Will you upload this to the Xposed repo?
Do you plan on making the source available?
Thanks
Click to expand...
Click to collapse
Thnx for the reminder sir...
I've uploaded it to the Xposed Repo.
I'm also planning to make it open sourced, but I still need to fix some things up. XD
Excelent work.
Enviado desde mi LG-D802 mediante Tapatalk
Has anyone been able to use this with Hangouts at all? It seems to never get past the "Mapping Resources" screen...
EDIT: Maybe I'm just not waiting long enough. Is it normal for it to take more than 10 minutes to map resources for some apps?
GermainZ said:
Two quick questions:
Will you upload this to the Xposed repo?
Do you plan on making the source available?
Thanks
Click to expand...
Click to collapse
mattdm said:
Has anyone been able to use this with Hangouts at all? It seems to never get past the "Mapping Resources" screen...
EDIT: Maybe I'm just not waiting long enough. Is it normal for it to take more than 10 minutes to map resources for some apps?
Click to expand...
Click to collapse
It really depends... if the /res dir contents of the apk file is really big for example (more than 1k resources) then it should take some considerable time... and it will also depend on ur phone's processing power...
I tested the framework-res.apk with a quad-core phone(not mine) and it took more than 30secs...
and when I tried it with my Samsung Galaxy Y, it took almost a lifetime...
WisdomSky said:
It really depends... if the /res dir contents of the apk file is really big for example (more than 1k resources) then it should take some considerable time... and it will also depend on ur phone's processing power...
I tested the framework-res.apk with a quad-core phone(not mine) and it took more than 30secs...
and when I tried it with my Samsung Galaxy Y, it took almost a lifetime...
Click to expand...
Click to collapse
Yeah, I let it go even longer, and it finally finished. I'm on an S4 Mini, which only has a dual-core Snapdragon 400.
Now my other problem is that when I look in the drawables of Dialer or Camera, there doesn't seem to be any launcher icon in the list. (I'm running an AOSP-based rom, FYI)
mattdm said:
Yeah, I let it go even longer, and it finally finished. I'm on an S4 Mini, which only has a dual-core Snapdragon 400.
Now my other problem is that when I look in the drawables of Dialer or Camera, there doesn't seem to be any launcher icon in the list. (I'm running an AOSP-based rom, FYI)
Click to expand...
Click to collapse
I believe the Camera is part of Gallery.apk and the Dialer is on Phone.apk
WisdomSky said:
I believe the Camera is part of Gallery.apk and the Dialer is on Phone.apk
Click to expand...
Click to collapse
Ohhhh, right. Now I feel dumb. This is an awesome module, I'm gonna have fun with it!
I'd like to offer a UI suggestion if I may though. Some of the lists are very long, and they scroll very slow on my phone. How about enabling a draggable scroll bar on the lists, so we can jump down to the bottom quickly?
mattdm said:
Ohhhh, right. Now I feel dumb. This is an awesome module, I'm gonna have fun with it!
I'd like to offer a UI suggestion if I may though. Some of the lists are very long, and they scroll very slow on my phone. How about enabling a draggable scroll bar on the lists, so we can jump down to the bottom quickly?
Click to expand...
Click to collapse
someone actually granted your wish already...
http://forum.xda-developers.com/xposed/modules/mod-force-fast-scroll-force-listviews-t2785006
WisdomSky said:
someone actually granted your wish already...
http://forum.xda-developers.com/xposed/modules/mod-force-fast-scroll-force-listviews-t2785006
Click to expand...
Click to collapse
Oh, nice! Thanks for pointing that out.
New problem...I changed the Hangouts launcher icon, but it's not actually changing after I restart. Any idea why this might be?
mattdm said:
Oh, nice! Thanks for pointing that out.
New problem...I changed the Hangouts launcher icon, but it's not actually changing after I restart. Any idea why this might be?
Click to expand...
Click to collapse
have you check the resflux in the xposed installer?
are you using samsung's default launcher?
coz I think it caches the packages' icon that's why u can't see the changes...
WisdomSky said:
have you check the resflux in the xposed installer?
are you using samsung's default launcher?
coz I think it caches the packages' icon that's why u can't see the changes...
Click to expand...
Click to collapse
Yes, I have it checked in the Xposed Installer. No, I'm using the Google Now Launcher (running SlimKat). The xSuite module also has trouble changing the Hangouts icon...there must be something different about it than other apps.
Great
Enviado desde mi unknown mediante Tapatalk
mattdm said:
Yes, I have it checked in the Xposed Installer. No, I'm using the Google Now Launcher (running SlimKat). The xSuite module also has trouble changing the Hangouts icon...there must be something different about it than other apps.
Click to expand...
Click to collapse
does resflux works fine with the other apps?
WisdomSky said:
does resflux works fine with the other apps?
Click to expand...
Click to collapse
Actually, I'm not sure. It's taking me quite a long time to test...I haven't been able to find a launcher icon to try to change in Phone, Dialer, Camera, Gallery, or Chrome. And each time I try a new app, it takes 5 - 10 minutes to map the resources. I'll find a small app to try and let you know...
EDIT: Ok, I just tried changing the icon of Buildprop Editor, and it worked perfectly.

Categories

Resources