标签: android-holo-everywhere

Holo快速滚动看旧设备上

关于我的应用

我有一个具有全息外观的应用程序.

对于pre-Honeycomb设备,我只是向后推出了Holo主题的一些元素.

使用主题,样式和attrs适用于CheckBox,RadioButton ......

我想做什么

我使用ListView来显示很多项目.我想在我的ListView上启用快速滚动,我希望它具有全息外观.

我的问题

我有一些困难将快速滚动Drawable它集成到我的应用主题中.

到目前为止我尝试过的

  1. 寻找能够做到这一点的图书馆. HoloEverywhere很有希望,但没有处理.

  2. 试图自己做:

我刚刚添加了那些drawable:

在此输入图像描述 在此输入图像描述

然后还添加了这个drawable:

<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:state_pressed="true" android:drawable="@drawable/fastscroll_thumb_pressed_holo" />
    <item android:drawable="@drawable/fastscroll_thumb_default_holo" />
</selector>
Run Code Online (Sandbox Code Playgroud)

在我的添加中attrs.xml:

<attr name="fastScrollThumbDrawable" format="reference" />
Run Code Online (Sandbox Code Playgroud)

我在我的中添加了这个themes.xml:

<style name="MyTheme">
    <item name="fastScrollThumbDrawable">@drawable/fastscroll_thumb_holo</item>
</style>
Run Code Online (Sandbox Code Playgroud)

此主题已正确设置为我的应用程序Manifest.xml:

android:theme="@style/MyTheme"
Run Code Online (Sandbox Code Playgroud)

请记住android:fastScrollThumbDrawable 蜂窝前不存在.


我希望你能帮我解决这个问题.:)

更新:

几个小时前,HoloEverywhere已经添加了快速滚动支持:

https://github.com/ChristopheVersieux/HoloEverywhere/commit/34561e48339bf6a3e0307d2d35fc4c5ac8409310

我会检查一下.:)

android android-layout fastscroll android-theme android-holo-everywhere

8
推荐指数
1
解决办法
1860
查看次数

无法在Android Studio中的项目结构上添加模块

结构项目窗口没有显示所有选项,我无法添加库或模块.

检查图像: 在此输入图像描述

这就是它应该如何看待所有选项: 在此输入图像描述

我尝试修复重新安装androidstudio,但它没有用.我正在使用Android Studio 2.9,我已经有了工作ABS,但我无法完成HoloEverywhere的工作

这个问题有什么解决方案吗?事先,谢谢

project-structure android-library android-holo-everywhere android-studio

8
推荐指数
1
解决办法
7776
查看次数

ActionBarSherlock&HoloEverywhere - 强制溢出?

我有一个简单的问题.对于我的Android应用程序,我打算使用ActionBarSherlock和HoloEverywhere库.除了一件事之外,一切都很好:强制溢出菜单到旧设备上.如果没有HoloEverywhere项目,强制溢出与以下行完美配合:

android:theme="@style/Theme.Sherlock.ForceOverflow"
Run Code Online (Sandbox Code Playgroud)

我的问题是,当我申请时,我无法让Forced Overflow工作

android:theme="@style/Theme.HoloEverywhereDark.Sherlock.ForceOverflow"
Run Code Online (Sandbox Code Playgroud)

Eclipse给出了一个错误,指出找不到与给定名称匹配的资源.没有.ForceOverflow它很好用.这是不是HoloEverywhere不支持,还是有办法亲自手动完成?

java android android-layout actionbarsherlock android-holo-everywhere

5
推荐指数
1
解决办法
4970
查看次数

使用holoeverywhere库时,Holo主题不适用于对话框

我正在Android项目中使用ChristopheVersieux的HoloEverywhere库.

除了对话框,一切都很好.Holo样式不适用于AlertDialogs和自定义对话框.

android android-theme android-holo-everywhere

5
推荐指数
1
解决办法
1691
查看次数

使用WebView时HoloEverywhere CLassNotFoundException

在我的项目中,我已经包含了ActionbarSherlock和HoloEverywhere.我在扩展的类中使用WebView,SActivity并发生以下错误.关于可能出现什么问题的任何想法?

09-26 11:06:01.508: E/ActivityThread(16109): Failed to inflate
09-26 11:06:01.508: E/ActivityThread(16109): android.view.InflateException: Binary XML file line #2: Error inflating class WebView
09-26 11:06:01.508: E/ActivityThread(16109):    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:691)
09-26 11:06:01.508: E/ActivityThread(16109):    at android.view.LayoutInflater.inflate(LayoutInflater.java:466)
09-26 11:06:01.508: E/ActivityThread(16109):    at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
09-26 11:06:01.508: E/ActivityThread(16109):    at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
09-26 11:06:01.508: E/ActivityThread(16109):    at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:251)
09-26 11:06:01.508: E/ActivityThread(16109):    at com.actionbarsherlock.internal.ActionBarSherlockNative.setContentView(ActionBarSherlockNative.java:119)
09-26 11:06:01.508: E/ActivityThread(16109):    at com.WazaBe.HoloEverywhere.sherlock.SActivity.setContentView(SActivity.java:225)
09-26 11:06:01.508: E/ActivityThread(16109):    at com.mccrajsui.MeetingRoomActivity.onCreate(MeetingRoomActivity.java:122)
09-26 11:06:01.508: E/ActivityThread(16109):    at android.app.Activity.performCreate(Activity.java:4465)
09-26 11:06:01.508: E/ActivityThread(16109):    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
09-26 11:06:01.508: E/ActivityThread(16109):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2033)
09-26 11:06:01.508: E/ActivityThread(16109): …
Run Code Online (Sandbox Code Playgroud)

android android-webview actionbarsherlock android-holo-everywhere

5
推荐指数
1
解决办法
402
查看次数

在主题中混合holo light和holo dark EditText

我使用Holo dark作为我的应用程序的主题.但是,有一部分我希望使用EditText,holo light因为这部分背景很轻.我试过这样做themes.当我为按钮做了类似的事情时(我们想要使用姜饼样式按钮):

<style 
       name="Theme.Banks" parent="Theme.Sherlock.ForceOverflow">
       <item name="android:buttonStyle">@android:style/Widget.Button</item>
</style>
Run Code Online (Sandbox Code Playgroud)

我尝试用android:editTextStyle做同样的事情,但它不会影响drawable.这是由android:editTextBackground属性处理的.查看代码,我不能只是覆盖它并将其指向light主题,因为它引用了一个私有的drawable:

这来自SDK中的themes.xml:

<item name="editTextBackground">@android:drawable/edit_text_holo_dark</item>
Run Code Online (Sandbox Code Playgroud)

所以我的问题是如何做到这一点?

另一个用例可能是希望使用姜饼的EditText.

有任何想法吗?

android android-theme android-holo-everywhere

5
推荐指数
1
解决办法
1852
查看次数

使用HoloEverywhere库

我是新手使用其他库,但我正在处理的当前项目是使用这个HoloEverywhere库.不幸的是,没有文件从我的库中提供给我,所以我必须自己下载.我克隆了git存储库,但是当我将HoloEverywhere文件夹添加到我的Eclipse工作区时,我得到了大量的错误消息,如下所示:

[2012-12-08 13:46:51 - HoloEverywhere Demo] D:\Downloads\HoloEverywhere\library\res\values\styles.xml:662: error: Resource entry Holo.Theme already has bag item textAppearanceListItemSmall. 
[2012-12-08 13:46:51 - HoloEverywhere Demo] D:\Downloads\HoloEverywhere\library\res\values\styles.xml:638: Originally defined here. 
[2012-12-08 13:46:51 - HoloEverywhere Demo] D:\Downloads\HoloEverywhere\library\res\values-v14\styles.xml:61: error: Resource entry Holo.Theme already has bag item textAppearanceListItemSmall. 
[2012-12-08 13:46:51 - HoloEverywhere Demo] D:\Downloads\HoloEverywhere\library\res\values-v14\styles.xml:37: Originally defined here. 
[2012-12-08 13:46:51 - HoloEverywhere Demo D:\Downloads\HoloEverywhere\library\res\values\styles.xml:602: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.Sherlock'. 
[2012-12-08 13:46:51 - HoloEverywhere Demo] D:\Downloads\HoloEverywhere\library\res\values\styles.xml:667: error: Error: No resource …
Run Code Online (Sandbox Code Playgroud)

git android android-holo-everywhere

5
推荐指数
1
解决办法
4045
查看次数

Android HoloEverywhere:mChildFragmentManager无法解析为变量

我跟着这个紧密合作,并成功添加ActionBarSherlock lib添加到我的项目,HoloEverywhere两者.但是,当我构建HoloEverywhere库时,我遇到了以下错误:

android.support.v4.app包中,_HoloFragment.java:

mChildFragmentManager cannot be resolved to a variable
Run Code Online (Sandbox Code Playgroud)

android.support.v4.app包中,_HoloFragmentInflater.java:

mParentFragment cannot be resolved or is not a field

The method moveToState(Fragment, int, int, int) in the type FragmentManagerImpl is not applicable for the arguments (Fragment, int, int, int, boolean)

The method getChildFragmentManager() is undefined for the type Fragment
Run Code Online (Sandbox Code Playgroud)

我几乎尝试了所有工作,但没有成功.请帮忙!

android android-theme actionbarsherlock android-holo-everywhere

4
推荐指数
1
解决办法
2227
查看次数

android holo light什么是背景颜色

android:minSdkVersion ="14"android:targetSdkVersion ="18"

理论上简单的事情.holo.light的背景颜色是什么,因为我想使用相同的颜色来制作其他颜色?它不是白色的background_light.此外,我的问题不是如何确定它的价值,而是如何使用android预定义常量(好像有一天谷歌在全息灯中改变这种浅色背景色,我的颜色也会改变).

顺便说一下,透明色在这种情况下不是解决方案.:(

android android-holo-everywhere

4
推荐指数
1
解决办法
9738
查看次数

在Android Studio中添加Holoeverywhere项目

我是Gradle和Android Studio(基于Intellij Idea的IDE)的新手.我的问题是纠正导入holoeverywhere to project.我阅读了很多类似的主题,但他们没有给出解决我问题的方法.

类似主题:

Android Studio无法使用HoloEverywhere和ActionBarSherlock

使用HoloEverywhere构建Android Studio项目失败

如何将库项目添加到Android Studio?

下面放了我操作方法的屏幕:

1首先从头开始创建新项目

新项目

2为libs创建目录

在此输入图像描述

3导入新模块 在此输入图像描述

4使用Maven模型导入holoeverywhere 在此输入图像描述

5导入设置 在此输入图像描述 在此输入图像描述 在此输入图像描述 在此输入图像描述 在此输入图像描述

6向主应用程序模块添加依赖项 在此输入图像描述 在此输入图像描述 在此输入图像描述

7将Holoeverywhere dir移动到图书馆 在此输入图像描述 在此输入图像描述 在此输入图像描述

8更改父模块名称 在此输入图像描述

9添加对gradle文件的依赖性 在此输入图像描述

10更改活动中的导入 在此输入图像描述

11运行结果 在此输入图像描述

12另一种设定依赖的尝试 在此输入图像描述

请给我同样的想法如何纠正导入holoeverywhere

android intellij-idea gradle android-holo-everywhere android-studio

3
推荐指数
1
解决办法
3523
查看次数