Os:ubuntu Linux 12.04I manually updated the Firefox browser the other day (see http://www.cnblogs.com/yzsatcnblogs/p/4266985.html), but then when I opened the browser, there was no Firefox icon on the launcher. This allows us to no longer open the minimized browser ... Nor can you quickly open the browser. So I learned how to add an icon to the
When doing a mobile phone adaptation, encountered a very strange problem, in 1080x720 's phone can display the replacement ic_launcher.png icon, but in 1920x1080 's phone display ic_ Launcher.png is still the default icon, and after checking that it does not include the default Ic_launcher.png icon throughout the project, what is the
Icon background and default configuration for android launcher development1: Then I checked the desktop icon loading process myself:When the desktop is loaded for the first time, an xml configuration file is read by default to complete the configuration. The configuration file is in the Launcher directory,Path: \
= Mcontext.getresources (). GETXML (Workspaceresourceid);AttributeSet attrs = xml.asattributeset (parser);Begindocument (parser, tag_favorites);Final int depth = parser.getdepth ();Final HashmapLaunchermodel model = Launcherappstate.getinstance (). Getmodel ();。。。。return i;}is actually a process of parsing XML and writing to a database, Launcherprovider.java is the data source for the entire launcher,Knowing how these icons are loaded is good for mak
our application changes in data change the time when the new shortcut is reinstalled, and it identifies some of our data, so that the true situation. Which icon we can put in advance in the program, about how to load shortcuts, you can see the previous reprint of an article http://blog.csdn.net/wx_962464/article/details/7457939.The second way is to modify the launcher code, and then cooperate with other ap
previous step first):?
1
sudogedit sublime-text.desktop
Then go to the text editor and enter the information roughly as shown (the English system can ignore the parts in the red box):Where icon is the name of the path that you want to display in Launcher, Comment is the description. Perhaps there are children's boots to ask, this "%F" is what, in fact, this is the ability to
Ubuntu12.04 how to modify the left of the launcher icon size in the unbunt-2d desktop tossing a long time there is no way to modify the left of the icon size. because of the computer speed, there has been no use of 3d desktop. I finished it today and reduced the icon. specifically, modify the following... ubuntu12.04 h
1. Create a file named "Eclipse.desktop" in/usr/share/applicationsThe specific command is: Gedit eclipse.desktopand add the following content:[Desktop Entry]Encoding=utf-8Name=eclipse PlatfromComment=eclipse IDEExec=/home/lgh/desktop/eclipse/eclipseicon=/home/lgh/desktop/eclipse/icon.xpmTerminal=falseStartupnotify=trueType=applicationCategories=application;development;Attention:Exec=/home/lgh/desktop/eclipse/eclipseicon=/home/lgh/desktop/eclipse/icon.xpmThis place to be modified for your install
shortcut. * @param parent The group the shortcut belongs to. * @param info The data structure describing the shortcut. * * @return A View inflated from layoutResId. */ View createShortcut(int layoutResId, ViewGroup parent, ShortcutInfo info) { TextView favorite = (TextView) mInflater.inflate(layoutResId, parent, false); favorite.setCompoundDrawablesWithIntrinsicBounds(null, new FastBitmapDrawable(info.getIcon(mIconCache)), null,
How does android modify the built-in apk icon and androidapk in launcher?
Find the variable in IconCache under launcher to store the package name and icon to be modified to apk.
Private String [] className = {"com. google. android. apps. maps", "com. google. android. googlequicksearchbox "};Private int [] resId = {R.dr
In android2.2, the bottom of the launcher is changed to this mode. Sometimes, when you modify the launcher, you need to remove the phone and the browser. You can find the launcher in the Res/Layout-Port/folder. XML file with the following code
The two imageview controls below are the two left and right, one phone number and one browser
addition, we can also do some other things when displaying the start picture, for example: play a small piece of audio, to attract the user's attention.1. Click and open the "APPDELEGATE.M" file in the navigation area;2. Find1-(BOOL) Application: (UIApplication *) application didfinishlaunchingwithoptions: (Nsdictionary *) launchOptions2 {3 //Override point for customization after application launch.4 return yes;5}3. Add a sentence [nsthreadsleepfortimeinterval:5]; As shown below:1-(BOO
Locate the Iconcache in launcher to store the package name to be modified and the icon to be modified.Private string[] ClassName = {"Com.google.android.apps.maps", "Com.google.android.googlequicksearchbox"};Private int[] ResId = {R.drawable.com_android_google_map,r.drawable.com_android_googlesearch};Add the following code in the Cachelocked methodif (Systemproperties.getboolean ("persist.sys.ts18.sp025", fa
Add the launcher icon to eclipse, for example,% for command prompt, Shell command:%nano/usr/share/applications/eclipse.desktop.................................[Desktop Entry]Name=eclipseComment=eclipse SDKEncoding=utf-8Exec=/opt/eclipse/eclipseicon=/opt/eclipse/icon.xpmStartupnotify=trueTerminal=flaseType=applicationCategories=application;development;................................................Comments:
See the number on the iphone calendar icon will change with the date changes, recently on the Android platform also studied, the implementation method is as follows:directly on the sourceChanged it in the launcher.First, in the Iconcache.java file, find the method private CacheEntry cachelocked (componentname componentname, ResolveInfo info,HashmapIn Entry.icon = Utilities.createiconbitmap (icon, mcontext);
.getwidth (); Bitmap resultbmp = Bitmap.createbitmap (width, width,bitmap.config.argb_8888); Paint paint = new paint (); Canvas canvas = new canvas (resultbmp); canvas.drAwbitmap (lay1, 0, 0, paint);//Draw the lower layer//Let the upper icon center Display int top = 0;if (Lay1.getheight () > Lay2.getheight ()) {top = (Lay1.gethei Ght ()-lay2.getheight ())/2;} else{//here can determine whether the picture is larger than the box, and then continue to ge
To hide the boot icon from the APK in launcher:APK's Androidmanifest.xml file is removed from the main activity in Intent-filter.To see if the APK is installed successfully:See the application list for apps, settingsStart the APK method:Intent Intent = new Intent (intent.action_main);Intent.setcomponent (New ComponentName ("Com.my.demo", "com.my.demo.MainActivity"));Intent.addflags (Intent.flag_activity_new_task);StartActivity (Intent);Hide apk in
To run a command to create a desktop file:sudo gedit/usr/share/applications/android_studio.desktopOpen the window and enter the following, noting that exec and icon are modified to the path of Android studio under their own system.[Desktop Entry]Type=applicationName=android StudioExec= "/opt/android-studio/bin/studio.sh"%fIcon=/opt/android-studio/bin/studio.pngCategories=development;ide;Terminal=falseStartupnotify=trueStartupwmclass=jetbrains-android-
Android Launcher icon box-added to optimize display effect, androidlauncher
Read the code and explain it. Mainly used for image processing
PorterDuff. Mode. SRC_ATOPSRC_ATOP
The source pixel and target pixel are mixed to make the upper-layer graph display in the center to achieve the framed effect.
Package com. ferris. launchericonutils; import android. app. activity; import android. graphics. bitmap; impo
= context;This.resinfo = Resinfo;}@Overridepublic int GetCount () {TODO auto-generated Method Stubreturn Resinfo.size ();}@OverridePublic Object getItem (int position) {TODO auto-generated Method Stubreturn Resinfo.get (position);}@Overridepublic long getitemid (int position) {TODO auto-generated Method Stubreturn position;}The purpose of this place with Viewholder is to improve the app's speed by not having to reconstruct our convertview and find ImageView and textview every time.@OverridePubl
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.