android-holo-everywhere

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

心已入冬 提交于 2020-01-13 05:59:08
问题 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. 回答1: 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."

Activity as dialog using HoloEverywhere cuts off layout

≡放荡痞女 提交于 2020-01-03 05:45:20
问题 I'm using the HoloEverywhere library in my Android app to ensure a consistent theme across all supported devices. However, I'm running into trouble with activities that utilize Holo.Theme.Dialog: on my Android 2.2 emulator it displays correctly, but on my Android 4 device (which has the actual Holo theme available) the layout cuts off items on the right edge of the dialog. My question is, how can I force devices that have the stock Holo theme to use that instead of HoleEverywhere ? Or, how

SeekBar Holo Theme using Support Library

大城市里の小女人 提交于 2019-12-22 10:17:20
问题 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

What's a correct way of using HoloEverywhere

旧巷老猫 提交于 2019-12-21 06:03:25
问题 I'm trying to use dev branch of HoloEverywhere library to in my app. I understood that this is still during development but the demo seems to work okay so I give it a try. I put android:theme="@style/Holo.Theme.Sherlock.Light" in the activity in my manifest. The structure of the activity is that it's using Fragment, one is a list and another is just Fragment. The ActionBar looks Holo just fine. I turned my SherlockFragmentActivity into SActivity and Fragment into SFragment . Just as I checked

Building Android Studio project with HoloEverywhere fails

删除回忆录丶 提交于 2019-12-20 10:27:28
问题 Whenever I try to build my project that contains HoloEverywhere as a dependency, I come across this error: Gradle: FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':HoloEverywhere Library:processDebugManifest'. java.lang.AssertionError (no error message) Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Stack trace: C:\workspace>gradlew assemble --stacktrace The TaskContainer.add() method has

Force overflow menu in ActionBarSherlock

北慕城南 提交于 2019-12-17 02:30:58
问题 I want the 4.0+ overflow menu to be used on pre ICS devices (2.3 - 2.1). I'm using HoloEverywhere with ActionBarSherlock. I tried the following solution: ActionBarSherlock & HoloEverywhere - Forcing Overflow? but it does not work because absForceOverflow does not exist. Was it removed in the newest version or something? I've checked the R files of both ABS and HE library projects and the field is simply not there. My app's theme is set to @style/Holo.Theme.Sherlock.Light and that is the theme

ListFragment is empty after going back

你离开我真会死。 提交于 2019-12-13 04:21:52
问题 I have a simple activity built with HoloEverywhere with one fragment container. ListFragment appears there on start, and appears normally. Then, click on list item replaces ListFragment with another fragment and adds it to backstack. But when I'm pressing back button, list is empty, although it resumes normally. There's some code: Activity public class MainActivity extends Activity implements SongsFragment.IActivityCallback { public final static String TAG = "Lyrics"; @Override protected void

HoloEveryWhere still remains as a puzzle

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 04:14:04
问题 I have downloaded holoeverywhere from github,imported to eclipse ,added AcrionBarSherlock library problem with maven dependencies, then followed the instructions from stack overflow downloaded latest version from github,but if i add ABS in res/layout/attr.xml error as some tags already defined,but if i remove ABS library some of the tag elements remains unknown for the library ,,please give the working solution,if posible so me some tutorials or examples that will guide step by step in

Android Spinner Size very large

心不动则不痛 提交于 2019-12-12 08:29:39
问题 I'm trying to get an ICS spinner like in my app, and playing around for hours, finally I'm using HoloEverywhere to get this, and it's working, but I have a little disign issue, is that the spinner is not wrapping its content as I set in the xml, and by default looks like this : Really I googled this for hours, and all I found is that how to resize spinner items and not the view itself, means that I want the spinner to be adjusted to the selected item size like this : Here is my XML:

ProGuard and HoloEverywhere: Export Signed Application Errors

蹲街弑〆低调 提交于 2019-12-12 03:03:23
问题 I'm using ActionBarSherlock and HoloEverywhere in my project. Everything works perfectly, except when I try to export my signed application, ProGuard gives me grief: [2013-05-19 00:13:53 - ] Proguard returned with error code 1. See console [2013-05-19 00:13:53 - ] Warning: com.actionbarsherlock.widget.SuggestionsAdapter: can't find referenced field 'android.content.Context mContext' in class com.actionbarsherlock.widget.SuggestionsAdapter [2013-05-19 00:13:53 - ] Warning: com