Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.The previous article described using canvas to draw the corresponding final bitmap. In practice, in addition to adding numbers to the icons, it is possible to add icons such as red squares as reminders of new features.So is there any way to easily add a reminder icon or number to the icons?Yes, or with the help of the Open source project Viewbadg
Recently in playing 3g sports portal client, see this effect: Touch the game icon, there will be an icon to the effect of a large surface. It's kind of interesting. So I made a copy of it.This is the original artwork:
is actually adding a scaled animation to the icon's touch event, the code is as follows.
Package com.test;
Import android.app.Activity;
Import Android.os.Bundle;
Import android.view
Originally was idle to have nothing to do, browse the blog, see the browser address to open the app's article,After attempting to do so, I find that the app icon is not displayed on the desktop.Just modify it in the code below. intent-filter> action android:name="Android.intent.action.MAIN" /> category android:name="Android.intent.category.LAUNCHER" /> data android:scheme="MyApp" android:host="Akm.app" And
This blog is mainly about the following two points of knowledgeicon Change color :drawable, so that Android can also have iOS so convenient image tone conversion, like the same icon, but there are many places to use, and the color is different, you can use this method. Search Box: General is edittext realization, this article realizes TextView picture and text Center, the keyboard searches.Take a look at:ic
Android calculates the cache size and clears the cache. android caches
Reposted blog: http://www.2cto.com/kf/201503/385492.html
The project encountered the function of calculating the cache size and clearing the cache. This is a common function, which is available in almost every APP. I thought the implementation was s
Android development: calculates the cache size and clears the cache. android Cache
The project encountered the function of calculating the cache size and clearing the cache. This is a common function, which is available in almost every APP. I thought the implementation was simple and I searched a lot on the Internet, I
Open your projectWe saw res in the project. This folder has the following folders.DRAWABLE-HDPI-------High resolutionDRAWABLE-LDPI-------Medium ResolutionDRAWABLE-MDPI-------Low resolutiondrawable-xhdpi------at least 960*720DRAWABLE-XXHDPI---1280*720Replace the picture on the inside. According to the actual demand.Next: See the Androidmanifest.xml in the root directory of the project to see the following Red fontAndroid:allowbackup= "true"android:icon= "@drawable/ic_launcher"Android:label= "@st
1 Public"-//w3c//dtd XHTML 1.0 strict//en"2"Http://www.w3.org/TR/xhtml1/TDT/xhtml1-strit.dtd" >34567131 the133class= "box" >134class= "Ear1" >135class= "Ear2" >136class= "Head" >137class= "Shenti" >138class= "Footer" >139 $ 141142143Come back overtime and complete the full version of the Android icon
Imitation QQ pseudo-3D card sliding control is done, ready to make a big adjustment to the application UI, so there is a demand above;Rarely used Actionbar, then a burst of find grep in the source, minute lock Actionbarview.java----------Body----------1,actionbar the program icon and program name in the upper left corner (default)2, the program icon ID is: Android
During development, sometimes the icon is slightly larger. For example, when it is 48 × 48, the text will be superimposed with the icon. The solution is as follows:
Copy codeThe Code is as follows: TabWidget tw = tabHost. getTabWidget ();
For (int I = 0; I {
TextView TV = (TextView) tw. getChildAt (I). findViewById (android. R. id. title );
ImageView iv = (Im
Android obtains the coordinates of custom controls, screen size, title bar, Status Bar Height, and android status bar.Android obtains the coordinates of custom controls, screen size, title bar, and Status Bar Height.
1. Get the height of the custom control
Obtain the height of the control in the current Activity in thi
According to: https://www.douban.com/note/637446089/Http://bbs.16rd.com/blog-23795-3446.htmlThe following excerpt from the original:(Android host) when each device is searched, the (device) will provide COD (class of devices) to each other, the search party can determine the device type according to Cod.When Android searches for device, it will (get) COD update to Settings, save to Cachedbluetoothdevice.mbt
Custom implementation of the Android Baidu Map zoom icon, you need to customize a zoom control, the effect is as follows:The zoom effect here enables the Click button to zoom in and out of the map, and also controls the available state of the zoom icon by gesture magnification and zoom out. The specific implementation is as follows:The first is the two XML config
Android encapsulates this approach, and we don't have permission to call it, so we can just go through the aidl and use the Java reflection mechanism to invoke the system-level approach.
The following code: (note more detailed)
/** * Role:-----Get the size of the package-----* @param context * @param pkgname app's package name * @param appInfo entity class for storing some information about the app/PU
Original: Http://www.ui.cn/detail/59734.html?utm_source=tuicool
before, I always think of 320pt and 640px, because this can 1x2x perfect fit,
Now that the idea is a little outdated,
iphone 4 iphone 4S iphone 5 iphone 5C iphone 5S are designed with 320pt, now 357pt,414pt come, everyone is holding P6 and p6+ have face.
and Android is generally according to the design of the iOS to adjust the development of appropriate, 640 and 720 difference 80px (40D
Android-automatically wrap ViewGroup based on the size of child controls, android-viewgroup
1. Custom ViewGroup
1/** 2 * Created by Administrator on 2016/2/26. 3*4 * -------- automatically wrap ViewGroup ----------- 5 */6 public class LineWrapLayout extends ViewGroup {7 private static final boolean DEBUG = true; 8 private static final String TAG = "AutoLineFeedLa
For example, an Android program contains two activity, mainactivity and otheractivity,mainactivity for program-initiated activity. If the program is located in Otheractivity, click the Home button, the program returns to the desktop,In the second click of the program icon, the program will automatically restart by default, that is, to re-enter mainactivity, rather than enter the time to click the Home butto
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.