Hello everyone
It's not important to have a preview but I think (maybe others too) it's just nice to have a preview. That's why I'm gonna show it to you. Let's start.
{
"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"
}
First put the screenshots or pictures you want to set as preview in to the drawable folder of your theme and name it for example semc_theme_preview_screenshot.
jpg and pngs are both supported.
Example: themefolder/res/drawable-xxhdpi/semc_theme_preview_screenshot.jpg
Then open your AndroidManifest.xml of the theme and add the red marked line:
Code:
<uses-permission android:name="com.sonymobile.permission.RUNTIME_SKIN"/>
<application android:icon="@drawable/semc_theme_preview" android:label="@string/somc_theme_title">
<uses-library android:name="com.sonymobile.runtimeskinning"/>
<meta-data android:name="com.sonymobile.runtimeskinning.core.image_wallpaper" android:resource="@drawable/semc_theme_wallpaper"/>
<meta-data android:name="com.sonymobile.runtimeskinning.core.lockscreen_background" android:resource="@drawable/semc_theme_lockscreen_wallpaper"/>
<meta-data android:name="com.sonymobile.runtimeskinning.core.SKIN_COLOR" android:resource="@color/skin_color"/>
[COLOR="Red"] <meta-data android:name="com.sonymobile.runtimeskinning.core.SKIN_PREVIEW" android:resource="@array/previews"/>[/COLOR]
</application>
Now go to themefolder/res/value and create a xml file called arrays.xml which should look like this (you can also just use my attached arrays.xml file if you like):
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<array name="previews">
<item>@drawable/semc_theme_preview_screenshot</item>
</array>
</resources>
If you want to add more screenshots you have to add more item in arrays.xml.
Now recompile your theme and you've done it.
Attatchments
arrays.xml
How to order the screenshots / pictures
It depends on the name of the screenshots / pictures. You have to call them for example this way:
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<array name="previews">
<item>@drawable/theme_ss_a</item>
<item>@drawable/theme_ss_b</item>
<item>@drawable/theme_ss_c</item>
<item>@drawable/theme_ss_d</item>
<item>@drawable/theme_ss_e</item>
<item>@drawable/theme_ss_f</item>
</array>
</resources>
Just changing the order in string file won't have any effect to the preview order!
I don't know if there is a limitation of pictures you can set, but 6 are defenetly possible
Good one
Just figured out how to change order of the screenshoots/pictures (first, second,..) in preview.
It depends on the name of the screenshots/pictures. You have to call them for example this way:
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<array name="previews">
<item>@drawable/theme_ss_a</item>
<item>@drawable/theme_ss_b</item>
<item>@drawable/theme_ss_c</item>
<item>@drawable/theme_ss_d</item>
<item>@drawable/theme_ss_e</item>
<item>@drawable/theme_ss_f</item>
</array>
</resources>
I don't know if there is a limitation of pictures you can set, but 6 are defenetly possible
Edit: Added it to second post
Related
Is there a way to change the browser that launches from the internet tab? It's default at Opera Mobile and even though I have Opera 9.7 as the default browser, it still launches the old one.
Thanks,
Marky
Best bet is to search the forum for the question.
Here is a link:
http://forum.xda-developers.com/showthread.php?t=548770
markyochoa said:
Is there a way to change the browser that launches from the internet tab? It's default at Opera Mobile and even though I have Opera 9.7 as the default browser, it still launches the old one.
Thanks,
Marky
Click to expand...
Click to collapse
Connect your phone to computer
open folder device storage\application data\manila\InternetPortal-en-us.xml
on your computer open notepad
drag the InternetPortal-en-us.xml file into notepad
this is how it looks:
<?xml version="1.0" encoding="utf-16"?>
<InternetPortal>
<BrowserExe>\Windows\iexplore.exe</BrowserExe>
<IncludeUserFavorites>False</IncludeUserFavorites>
<Banner
DefaultImagePath="\Windows\HTC\Assets\Images\InternetPortal\banner.qtc"
SelectedImagePath="\Windows\HTC\Assets\Images\InternetPortal\banner_selected.qtc"
Text="Launch Browser"
NavigateUrl="http://www.Google.com"
UrlText="GoOogl3"
Width="480"
Height="215" />
<OperatorLinks>
<Link
Text="PR Radio Station"
NavigateUrl="mms://38.106.70.66/reggaeton_live"
ImagePath="\Windows\PrFlag.png" />
</OperatorLinks>
</InternetPortal>
the items in red you can customized yourself by adding your own web address and name.
once your done you can file save as, save as type all files and
drag it back to device storage\application data\manila.
select yes to overwrite or replace.
you can also add more shorcuts by adding this formula and changing the red:
<Link
Text="PR Radio Station"
NavigateUrl="mms://38.106.70.66/reggaeton_live"
ImagePath="\Windows\PrFlag.png" />
if you add more shorcuts then makesure this is on the bottom:
</OperatorLinks>
</InternetPortal>
you can also add icons with jpg, png, bmp, ico extensions on device storage\windows. but make sure the imagepath root address is correct.
good luck!
My Quick Pic:
{
"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"
}
Hi everyone,
So I'm a big fan of supercurio's work with Voodoo sound, but I'm also a semi-OCD theming/graphic design nerd, lol.
So I made a couple gingerbread style status icons, and found a way to enable them in the voodoo control app, and thought I'd share them for anyone else that's interested.
{
"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"
}
http://dl.dropbox.com/u/9401664/stat_notify_icon.png
http://dl.dropbox.com/u/9401664/stat_notify_icon 2.png
Download whichever icon you prefer (please note, that the white space in both icons is actually "negative" space, so that will be transparent, and inherit the color of your status bar) and make sure its named stat_notify_icon.png
Then decompile the voodoo control app (I used apk manager), and browse to /smali/org/projectvoodoo/controlapp and open VolumeManager.smali
Change line 846 in VolumeManager.smali to:
Code:
const v9, 0x7f020002
Save and close that file, and navigate to /res/values and open Public.xml
Right after
Code:
<public type="drawable" name="icon" id="0x7f020001" />
Add the following line, then save and close:
Code:
<public type="drawable" name="stat_notify_icon" id="0x7f020002" />
Now copy the icon into /res/drawable-hdpi
Finally, compile, sign (zipalign if you want) and install.
Make sure you uninstall your old version first, or this will fail to install because of the signature mis-match.
Anyway, hope someone else likes this, and Supercurio is free to use either icon in the app if he wants.
Cheers everyone, =)
Can any one help, How to saperate overlapping Battery icon and time in SystemUI,
{
"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"
}
Thanks in advance
I think you must decompile the .apk, edit .xml files (I don't know what exactly) and recompile the apk. :good:
Try Apktool and take a look at the XML files, if you see positions/coordinates files of battery & time, just invert them.
WrathChild08 said:
I think you must decompile the .apk, edit .xml files (I don't know what exactly) and recompile the apk. :good:
Try Apktool and take a look at the XML files, if you see positions/coordinates files of battery & time, just invert them.
Click to expand...
Click to collapse
Thanks for reply, but I dont know which xml files to edit and how.
I'll take a look.
EDIT : Can't find what XML files to edit.. So :/
Wait someone else. ^^
WRONG TOPIC!!!
Can you peeps find the Q/A topic ??
Very anoying this
Best Regards
..:: [email protected]€m!c ::..
chiragvagh said:
Thanks for reply, but I dont know which xml files to edit and how.
Click to expand...
Click to collapse
Which? res/layout/status_bar.xml
How? I don't know. Compare your xml to original one, especially that section:
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<ImageView android:id="@id/battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
btw, you'll learn more and faster by yourself through comparing, watching other work etc. Leave questions for really hard things
[MOD][HowTo] JWR66Y DEODX Op.app & Debug LatinIme (themes) integration on dev options
{
"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"
}
This is flashable mod for JWR66Y DEODEXED to show hidden features like OP.APP and Latin Ime Debug Settings (there's themes inside!! )... on developer options
http://d-h.st/hr6
If You want to add this to Your ROM or try make for stock Odex follow these guidelines using Apktool and Notepad++ (There's a plenty of guides on XDA ):
1) Install framework-res from the ROM
2) Decompile Settings.apk from the ROM
3) Navigate to /res/xml and find/open development_prefs.xml in Notepad++
4) Put GREEN lines at the end of the file to show like this:
Code:
<CheckBoxPreference android:title="@string/disable_overlays" android:key="disable_overlays" android:summary="@string/disable_overlays_summary" />
</PreferenceCategory>
<PreferenceCategory android:title="@string/debug_monitoring_category" android:key="debug_monitoring_category">
<CheckBoxPreference android:title="@string/strict_mode" android:key="strict_mode" android:summary="@string/strict_mode_summary" />
<CheckBoxPreference android:title="@string/show_cpu_usage" android:key="show_cpu_usage" android:summary="@string/show_cpu_usage_summary" />
<ListPreference android:persistent="false" android:entries="@array/track_frame_time_entries" android:title="@string/track_frame_time" android:key="track_frame_time" android:entryValues="@array/track_frame_time_values" />
<ListPreference android:persistent="false" android:entries="@array/enable_opengl_traces_entries" android:title="@string/enable_opengl_traces_title" android:key="enable_opengl_traces" android:entryValues="@array/enable_opengl_traces_values" />
</PreferenceCategory>
<PreferenceCategory android:title="@string/debug_applications_category" android:key="debug_applications_category">
<CheckBoxPreference android:title="@string/immediately_destroy_activities" android:key="immediately_destroy_activities" android:summary="@string/immediately_destroy_activities_summary" />
<ListPreference android:persistent="false" android:entries="@array/app_process_limit_entries" android:title="@string/app_process_limit_title" android:key="app_process_limit" android:entryValues="@array/app_process_limit_values" />
<CheckBoxPreference android:title="@string/show_all_anrs" android:key="show_all_anrs" android:summary="@string/show_all_anrs_summary" />
<CheckBoxPreference android:title="@string/experimental_webview" android:key="experimental_webview" android:summary="@string/experimental_webview_summary" />
[B][COLOR="Lime"][COLOR="SeaGreen"] </PreferenceCategory>
<PreferenceCategory android:title="LatinImeGoogle Debug Mode" android:key="english_ime_debug_settings">
<PreferenceScreen android:title="Android keyboard Debug settings" android:key="english_ime_debug_settings">
<intent android:targetPackage="com.google.android.inputmethod.latin" android:action="android.intent.action.MAIN" android:targetClass="com.android.inputmethod.latin.DebugSettingsActivity" />
</PreferenceScreen>
</PreferenceCategory>
<PreferenceCategory android:title="App Permission Manager" android:key="app_ops_settings">
<PreferenceScreen android:title="@string/app_ops_settings" android:key="app_ops_settings">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.Settings$AppOpsSummaryActivity" />
</PreferenceScreen>
</PreferenceCategory>[/COLOR][/COLOR][/B]
</PreferenceScreen>
And recompile back properly.
Hello guys here is a small tut
very simple thing to add changelog in settings
you need stock deodexed settings.apk
1. First decompile settings.apk
2. Open res/values/strings.xml and add these codes
Code:
<string name="changelog_title"><b>Changelog</b></string>
<string name="changelog_title_summary">View recent changes in ROM</string>
<string name="changelog_loading">Loading changelog...</string>
<string name="changelog_error">Unable to load changelog</string>
<string name="changelog_unknown">Unknown</string>
<string name="changelog_version">Version</string>
3. Open res/xml/device_info_settings.xml and look for this code ( or your wish)
Code:
<PreferenceScreen android:title="@string/device_feedback" android:key="device_feedback" />
Add this code after or before that code
Code:
<PreferenceScreen android:title="@string/changelog_title" android:key="changelog" android:summary="@string/changelog_title_summary" android:fragment="com.android.settings.rz.ChangeLog" />
4. Now Download this View attachment Settings.zip merge this code
5. Now compile and Decompile for Replacing public id
#0x7f090f8e #<public type="string" name="changelog_error" id="0x7f090f8e" />
6. Then after download this View attachment RZChangelog.txt ( Place this in System/etc )
edit what you need in the text file
Ohhh now its done
Thanks to Cyanogenmod
Great bro.. Keep up the good work. Master of making tutorials
For cm12??
Thanks Sir !!!
Thanks Sir !!! @venkat kamesh
Confirmed work on CM 13 with 6.0.1 :laugh:
{
"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"
}
@venkat kamesh
Thanks a lot for this guide
Its working perfectly on My Galaxy S5 G900H Running S7edge Port Rom
But when i apply dark themes i cant view text in Changelog
Only when i use light Bg themes i am able to view
Not a problem but any way to change color of text as per theme??
@venkat kamesh
Hi I have not tried this method in a main screen application, do not have root authority and how should I follow a way to android 6 system?