android-holo-everywhere

Theme_HoloEverywhereLight_Sherlock showing dark background

白昼怎懂夜的黑 提交于 2019-12-11 17:52:55
问题 I'm using Christophe Versiuex's HoloEverywhere library in concert with ActionBarSherlock to display an ICS looking app on Gingerbread phones. The Theme.HoloEverywhereDark.Sherlock theme works great. But when I try to change the theme to Theme.HoloEverywhereLight.Sherlock, all the text changes to dark text, but the Activity backgrounds stay dark. All I'm doing is: setTheme(R.style.Theme_HoloEverywhereLight_Sherlock); setContentView(R.layout.mylayout); in the Activity.onCreate() method. In

HoloEverywhere SeekBar ClassCastException

∥☆過路亽.° 提交于 2019-12-11 00:02:44
问题 I am using the SeekBar class provided by HoloEverywhere. I have the following imports: import org.holoeverywhere.widget.SeekBar; import org.holoeverywhere.widget.SeekBar.OnSeekBarChangeListener; I get no preliminary errors or warnings, but when I compile, I get a class cast exception on the following line: sectionTimeElapsedSeekBar = (SeekBar) findViewById(R.id.sectionTimeElapsedSeekBar); Here is the corresponding XML: <SeekBar android:id="@+id/sectionTimeElapsedSeekBar" android:layout_width=

Using holoeverywhere

独自空忆成欢 提交于 2019-12-10 11:54:52
问题 I am trying to install holoeverywhere to ADT using instructions from https://github.com/Prototik/HoloEverywhere/wiki/Import-in-IDE#eclipse Unfortunately this ends with: No valid Android XML Editor Delegate found for file /HoloEverywhere Addon The POM for com.google.android:support-v4:jar:r13 is missing, no dependency information available And hundreds of other similar errors. I tried it several times from scratch, doesn't help. I suspect installation steps changed again... Is anyone able to

My app force closes on setcontentview when using the holoeverywhere library

為{幸葍}努か 提交于 2019-12-08 09:37:11
问题 Hi I'm trying to make my app backwards compatible using holoeverywhere. In my app I have a tab activity and 3 holoeverywhere activitys. When I run my app on a 2.3.3 emulator it runs and my first tab is shown but if I switch to my second or third tab it closes unexpectedly. The error occurs in my second or third tab on my setContentView line. The error isn't caused by switching tabs because if I have the app start on the second tab by default I still get the same error. If I run my app on a 4

My app force closes on setcontentview when using the holoeverywhere library

为君一笑 提交于 2019-12-07 23:16:31
Hi I'm trying to make my app backwards compatible using holoeverywhere. In my app I have a tab activity and 3 holoeverywhere activitys. When I run my app on a 2.3.3 emulator it runs and my first tab is shown but if I switch to my second or third tab it closes unexpectedly. The error occurs in my second or third tab on my setContentView line. The error isn't caused by switching tabs because if I have the app start on the second tab by default I still get the same error. If I run my app on a 4.1.2 device then it works just fine though. Here is my logcat 12-26 13:33:03.511: E/AndroidRuntime(744):

HoloEverywhere: Dark action bars and dialogs

喜你入骨 提交于 2019-12-06 07:01:28
问题 I'm using HoloEverywhere library, I need action bars and dialogs (ProgressDialog and AlertDialog) to be styled with the Holo Dark theme and the rest of the controls with the Holo Light. I set the application theme to Holo.Theme.Light.DarkActionBar (this is the closest to what I need so far) but with this I get Light dialogs. How can I achieve this? Thanks in advance. 回答1: Create new context wrapper for dialogs: Context dialogContext = new ContextThemeWrapper(this, R.style.Holo_Theme); Dialog

SeekBar Holo Theme using Support Library

白昼怎懂夜的黑 提交于 2019-12-06 02:42:19
I am using the Android Support Library v4 and v7 to get Fragments, Swipe-able View Pagers, and even ActionBar! It works and the graphics are really nice! However while the graphics for the above look nice and consistent in Android 2.x and Android 4.x, some common widgets look very different between versions. This leads to colours mismatch inside the app with an otherwise consistent look UI - so no matter what I draw in the rest of the UI, either the yellow SeekBar or blue SeekBar won't match something. I thought the whole point of the support library is to get a consistent UI across platforms,

Spinner with multi-line items overlaps selected item display on Froyo

[亡魂溺海] 提交于 2019-12-05 21:35:27
问题 I'm trying to create Spinners that look the same on all versions of Android back to Froyo. To that end, I'm using HoloEverywhere. Some of the spinner item text is more than one line, and I'd like it to wrap. Using the default layout, android.R.layout.simple_spinner_dropdown_item , or HoloEverywhere's drop-in replacement for it, ellipsizes the text instead of wrapping it. Taking the HoloEverywhere's layout as a starting point for a custom layout with singleLine set to false , ellipsize set to

Can't add modules on project structure in Android Studio

允我心安 提交于 2019-12-04 20:17:10
问题 The structure project window does not show all the options and I can not add libraries or modules. Check the image: And this is how it should look with all the options: I try to fix that reinstalling androidstudio, but it didn't work. I'm using Android Studio 2.9 and i already have working ABS, but i can't make work HoloEverywhere Is there any solution for this problem? Beforehand, thanks 回答1: Do Right Mouse Click on visible package, then select 'Open Module Settings' - it will give you

How to get currently visible fragment from activity when using holoeverywhere slider addon?

浪尽此生 提交于 2019-12-04 16:01:54
I want to know how to perform these actions in holoeverywhere : Get reference to the currently visible and active fragment from the activity when using slider addon in combination with tabber. Get reference to TabsTabsSwipeFragment from the activity/other fragments and dynamically disable/enable swiping. Tom For getting the current active and visible Fragment, it's my understanding that HoloEverywhere uses Android's Support Library. Try something similar to " get currently displayed fragment ." public Fragment getActiveFragment() { if (getSupportFragmentManager().getBackStackEntryCount() == 0)