KIT*_*ITT 1 notifications android views scrollview
我已经为我的扩展通知添加了按钮,有很多.我们的想法是在通知中进行电源控制或在那里显示最近的应用程序.但是,LayoutInflater不允许ScrollView为"RemoteViewsv"充气.
必须有一个解决方法:允许扩展通知中的UI左右滚动.就像HTC Sense最近的应用程序一样.
06-18 15:10:24.991: ERROR/StatusBar(1251): Caused by: android.view.InflateException: Binary XML file line #3: Class not allowed to be inflated android.widget.ScrollView
Run Code Online (Sandbox Code Playgroud)
就像HTC Sense最近的应用程序一样.
作为固件实现的一部分,HTC Sense没有使用RemoteViews.
你分析的其余部分是正确的-你不能把ScrollView一个RemoteViews.
| 归档时间: |
|
| 查看次数: |
980 次 |
| 最近记录: |