03 2013 档案
摘要:可以参考以下代码,这是drawable/seekbar_style.xml里面使用layer-list来实现层叠样式,为seekbar的background和progress设置style其中shape可以用来配置一些图形,像corners这样设定就相当于是圆角了solid设置图形的颜色为实心的,如果要设置成渐变的要使用gradient标签<layer-list xmlns:android="http://schemas.android.com/apk/res/android" > <item android:id="@android:id/ba
阅读全文
摘要:/** * 创建桌面快捷方式 */public void createShut() {// 创建添加快捷方式的IntentIntent addIntent = new Intent("com.android.launcher.action.INSTALL_SHORTCUT");String title = getResources().getString(R.string.app_name);// 加载快捷方式的图标Parcelable icon = Intent.ShortcutIconResource.fromContext(WelcomeActivity.this,
阅读全文

浙公网安备 33010602011771号