( ! ) Deprecated: Function WP_Dependencies-&gt;add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers. in /var/www/html/wp-includes/functions.php on line 6131
Call Stack
#TimeMemoryFunctionLocation
10.0000484048{main}( ).../index.php:0
20.0000484400require( '/var/www/html/wp-blog-header.php ).../index.php:17
30.10374107008require_once( '/var/www/html/wp-includes/template-loader.php ).../wp-blog-header.php:19
40.10424136112include( '/var/www/html/wp-content/themes/twentyfifteen/archive.php ).../template-loader.php:125
50.10424136112get_header( $name = ???, $args = ??? ).../archive.php:19
60.10424136328locate_template( $template_names = [0 => 'header.php'], $load = TRUE, $load_once = TRUE, $args = [] ).../general-template.php:48
70.10424136424load_template( $_template_file = '/var/www/html/wp-content/themes/twentyfifteen/header.php', $load_once = TRUE, $args = [] ).../template.php:749
80.10424136968require_once( '/var/www/html/wp-content/themes/twentyfifteen/header.php ).../template.php:814
90.10444144376wp_head( ).../header.php:18
100.10444144376do_action( $hook_name = 'wp_head' ).../general-template.php:3197
110.10444144592WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
120.10444144592WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
130.10464148008wp_enqueue_scripts( '' ).../class-wp-hook.php:341
140.10464148008do_action( $hook_name = 'wp_enqueue_scripts' ).../script-loader.php:2311
150.10464148224WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
160.10464148224WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
170.10474274528twentyfifteen_scripts( '' ).../class-wp-hook.php:341
180.10484276048wp_style_add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../functions.php:440
190.10484276048WP_Styles->add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../functions.wp-styles.php:245
200.10484276048WP_Dependencies->add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../class-wp-styles.php:385
210.10484276048_deprecated_argument( $function_name = 'WP_Dependencies->add_data()', $version = '6.9.0', $message = 'IE conditional comments are ignored by all supported browsers.' ).../class-wp-dependencies.php:317
220.10484276368wp_trigger_error( $function_name = '', $message = 'Function WP_Dependencies->add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers.', $error_level = 16384 ).../functions.php:5925
230.10494277120trigger_error( $message = 'Function WP_Dependencies-&gt;add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers.', $error_level = 16384 ).../functions.php:6131

( ! ) Deprecated: Function WP_Dependencies-&gt;add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers. in /var/www/html/wp-includes/functions.php on line 6131
Call Stack
#TimeMemoryFunctionLocation
10.0000484048{main}( ).../index.php:0
20.0000484400require( '/var/www/html/wp-blog-header.php ).../index.php:17
30.10374107008require_once( '/var/www/html/wp-includes/template-loader.php ).../wp-blog-header.php:19
40.10424136112include( '/var/www/html/wp-content/themes/twentyfifteen/archive.php ).../template-loader.php:125
50.10424136112get_header( $name = ???, $args = ??? ).../archive.php:19
60.10424136328locate_template( $template_names = [0 => 'header.php'], $load = TRUE, $load_once = TRUE, $args = [] ).../general-template.php:48
70.10424136424load_template( $_template_file = '/var/www/html/wp-content/themes/twentyfifteen/header.php', $load_once = TRUE, $args = [] ).../template.php:749
80.10424136968require_once( '/var/www/html/wp-content/themes/twentyfifteen/header.php ).../template.php:814
90.10444144376wp_head( ).../header.php:18
100.10444144376do_action( $hook_name = 'wp_head' ).../general-template.php:3197
110.10444144592WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
120.10444144592WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
130.10464148008wp_enqueue_scripts( '' ).../class-wp-hook.php:341
140.10464148008do_action( $hook_name = 'wp_enqueue_scripts' ).../script-loader.php:2311
150.10464148224WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
160.10464148224WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
170.10474274528twentyfifteen_scripts( '' ).../class-wp-hook.php:341
180.13324278224wp_style_add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../functions.php:444
190.13324278224WP_Styles->add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../functions.wp-styles.php:245
200.13324278224WP_Dependencies->add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../class-wp-styles.php:385
210.13324278224_deprecated_argument( $function_name = 'WP_Dependencies->add_data()', $version = '6.9.0', $message = 'IE conditional comments are ignored by all supported browsers.' ).../class-wp-dependencies.php:317
220.13324278544wp_trigger_error( $function_name = '', $message = 'Function WP_Dependencies->add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers.', $error_level = 16384 ).../functions.php:5925
230.13334278768trigger_error( $message = 'Function WP_Dependencies-&gt;add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers.', $error_level = 16384 ).../functions.php:6131

免费的Android UI库及组件推荐

短短数年时间Android平台就已经形成了一个庞大而活跃的开发者社区。许多社区开发的项目业已进入成熟阶段,甚至可以用于商业的软件生产中,且不用担心质量问题。

本文编译自androiduipatterns,意在分享一些免费、开源的Android UI库及组件资源。

一、UI组件库

1. GreenDroid 

该项目可以实现下列的UI设计:

  • 动作栏(Action Bar)
  • 快捷动作(Quick Action)
  • 工作区(Workspace)
  • 动态列表(Dynamic List)

以及许多更有用的组件。

项目网站 / 示例

2. ActionBarSherlock 

在Google针对手机的动作条API推出前,该项目一直与ICS一起使用。Jake最近将项目拓展到了动作条之外。这里也有针对工作区等的组件。

项目网站 / 示例

3. Android Compatibility Package

这是一个来自Google Android库的官方扩展。Compatibility Package顾名思义就是Android官方针对旧平台版本所不支持的API或是Android Framework没有提供的函数库,将其打包发布。它包含了许多非常有用的API。该包同样包含工作区UI设计的实现。

项目网站

二、UI组件

1. iosched 

这是一个官方的Google I/O的应用(同样可用在GDD,Google Developer Day)(注:Google I/O是Google每年都会举办的历时两天的开发者大会,该大会谈及各种技术问题。开发人员会提供非常多的示例来展示他们的技术。这个项目专门为了这个会议提供了一个Android应用程序。)。该应用程序实现了大量的UI设计,成为Google Android设备拥护者的参考标准。强烈推荐使用该应用程序的仪表盘UI设计模式。(Google代码链接:Dashboard.java

项目网站:http://code.google.com/p/iosched/

2. Android-Viewflow 

该项目的工作区UI设计模式与Google Docs所使用非常相似。

项目网站:https://github.com/pakerfeldt/android-viewflow

3. android-coverflow 

该项目可以用于完成一个cover flow。在这个项目网站的视频中可以得到更多的信息。

项目网站:http://code.google.com/p/android-coverflow/

4. android-viewbadger 

该项目让devs无需修改布局文件(layout file)即可显示badges。

项目网站:https://github.com/jgilfelt/android-viewbadger

5. android-pulltorefresh 

该项目实现动态列表/下拉刷新(pull to refresh)的UI设计。

项目网站:https://github.com/johannilsson/android-pulltorefresh

6. Android-ViewPagerIndicator 

该项目可以用于实现工作区的UI设计。

项目网站/示例

VIA http://www.androiduipatterns.com/2011/10/free-android-ui-library-component.html