问题标签 [android-holo-everywhere]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
android - HoloEverywhere xml 解析错误/应用程序崩溃
出于某种原因,我在使用 HoloEverywhere 时遇到了这个错误。我的应用程序在创建时崩溃,并且我的 xml 布局在 3.0 以下时不显示。这是我的 xml 错误。
这是我的日志。它引用了我活动的 onCreate 第 57 行的错误。第 57 行扩充了 xml 文件。这只发生在 HoloEverywhere 上。请帮忙!
android - 在最后一步中使用 HoloEverywhere 时出错
我正在尝试将 HoloEveryWhere 与 ABS 一起使用。我从一个答案中遵循了这个小教程:导入 HoloEverywhere 时出错
最后一步说在我的清单中添加这个:
我已经添加了主题,但它在 Eclipse 中给了我一个错误。
我该如何解决这个问题?我肯定在我的应用程序中将 ABS 和 HE 作为库导入。我也将 ABS 作为库导入到 HE 中。想法?
android - 以编程方式生成的文本视图的全息效果?
我正在以编程方式在LinearLayout上生成TextView,我想在触摸 LinearLayout 时 显示以编程方式生成的具有Holo 效果的 TextView
我可以用这个查看 Holo TextViews
tv.setTextColor(getResources().getColor(R.color.holo_green_light));
但是我想在LinearLayout上ontouch后查看TextView上的全息效果。
下面的代码对于以编程方式生成的 TextView 的单个实例工作正常,但是在用户触摸 LinearLayout 后,我需要在 Holo 中显示多个文本视图!
android - Attribute Already Defined When Using HoloEverywhere and UnifiedPreference
I have a project that is currently using ActionBarSherlock, Crouton, and UnifiedPreference which works (compiles, runs without issue on devices and emulator for Android 2.3.3+). I want to add HoloEverywhere so that I can keep a unified interface when it runs on Gingerbread devices. Once I added HoloEverywhere to the mix I get the following AAPT errors:
The AAPT errors reference whichever library project is first (either UnifiedPreference OR HoloEverywhere) in my android library dependency list. I've also discovered that all of the offending attributes are defined as part of <declare-styleable name="PreferenceHeader">
My current Android Dependency order and structure is:
I have tried changing the order of HoloEverywhere and UnifiedPreference, removing ActionBarSherlock from one and making it dependent on the other, and tried pulling them down from git again.
Does anyone know how to get UnifiedPreference and HoloEverywhere to play nicely together since they both have attributes with the same name?
android - HoloEverywhere + ListPreference = 崩溃
我一直在努力ListPreference
与 HoloEverywhere 合作。我在一个 XML 文件中定义了我的设置。我holo
为属性使用了命名空间。与首选项相关的所有内容都使用org.holoeverywhere
包中的类,因此问题出在其他地方。
当我ListPreference
在我的应用程序中单击时会出现问题。该首选项应打开一个对话框,其中包含可供选择的选项。相反,它崩溃了,给了我以下堆栈跟踪:
我目前正在使用 a ,但是当我尝试直接在usingPreferenceFragment
中添加首选项时会发生完全相同的事情。PreferenceActivity
addPreferencesFromResource(int)
列表首选项 (XML) 本身:
我还想补充一点,我的所有 ListPreference 项目(我有多个)都会发生这种情况。
android - ActionOverflow 和 HoloEverywhere/ActionBarSherlock 的问题
**我可能会因此而被激怒,但我有我的理由。
我正在制作应用程序,可以选择在 3 个主题(Holo Dark、Holo Light 和 Holo Light with Dark ActionBar)之间切换。由于某些原因,我使用>>this<< hack 使 ActionOverflow 与使用 ActionBarSherlock 4.2 的硬菜单键的设备一起工作。问题是当我将主题设置为 Holo Dark 或 Holo Light 时,菜单项的高度相当大(大约 48dp),但是每当我将其设置为 Holo Light with Dark Actionbar 时,菜单的高度物品是正常的(无论正常是什么)。有人知道是什么让菜单项表现得很奇怪吗?我试过检查 Styles,但我不确定问题出在哪里。如果您需要更多信息,请询问:D
java - 如何使用下载的 android holo 图标、模板、字体?
我已经下载了整个包,http://developer.android.com/design/downloads/index.html
我想知道如何使用它们。我是否将它放置在 android sdk 文件夹中的某个位置,以便它在 Eclipse 编辑器的图形布局中可见,或者我应该通过将其放置在drawable-hdpi
文件夹中来使用项目中所需的单个图标和字体?
提前致谢。
android - 我无法让 ViewPageIndicator 滑动
我创建了一个新项目并包含了该HoloEveryWhere
库。然后我决定添加ViewPageIndicator
. 我从示例中复制了所有代码,ViewPageIndicator
但它不起作用。我尝试使用SherlockFragment
,但这也不起作用。所以我HoloEveryWhere
从我的项目中删除了,但显然这不是问题,因为它仍然没有滑动。
编辑:
这是我的xml:
你看,我只是从样本中复制了两个标签。这是main.java:
android - 旧设备上的 Holo 快速滚动外观
关于我的应用
我有一个具有全息外观的应用程序。
对于Honeycomb 之前的设备,我只是向后移植了Holo 主题的一些元素。
CheckBox、RadioButton 可以使用主题、样式和属性...
我正在尝试做的事情
我使用ListView来显示很多项目。我想在我的ListView上启用快速滚动,并且希望它具有全息外观。
我的问题
我在将快速滚动Drawable集成到我的应用程序主题中时遇到了一些困难。
到目前为止我尝试过的
寻找执行此操作的库。 HoloEverywhere很有希望,但没有处理。
尝试自己做:
我刚刚添加了那些drawable:
然后还添加了这个drawable:
在我的中添加了这个attrs.xml
:
我在我的themes.xml
:
此主题已正确设置为我的应用程序Manifest.xml
:
请记住,android:fastScrollThumbDrawable
不存在 pre-honeycomb。
我希望你能帮我解决这个问题。:)
更新 :
几个小时前, HoloEverywhere 似乎添加了快速滚动支持:
https://github.com/ChristopheVersieux/HoloEverywhere/commit/34561e48339bf6a3e0307d2d35fc4c5ac8409310
我会检查一下。:)