actionbarsherlock

Greendroid or ActionbarSherlock - setup

▼魔方 西西 提交于 2019-12-30 12:54:05
问题 do you guys know any tutorial on how to use one of the above frameworks in eclipse on windows? I've downloaded both of them and followed the instructions - but I still get errors in both cases. Frustratin. 回答1: I just tried these instructions on ActionBarSherlock, but I'm pretty sure the process was the same when I was using GreenDroid. Download the .zip/.tgz and extract it somewhere Go to eclipse and choose File->New->Project Choose Android Project Select Create project from existing source

Add a shadow on ActionBar

元气小坏坏 提交于 2019-12-30 11:04:40
问题 I am trying to add a shadow under the title of the ActionBar. I have tried putting the attributes <item name="android:textColor">@color/white</item> <item name="android:shadowRadius">1</item> <item name="android:shadowColor">@color/black</item> <item name="android:shadowDy">1</item> but while textColor is working, the shadow isn't. I am using ActionBarSherlock 3.5 but I think it would not work on native either. Thanks 回答1: I can't get this to work either on native or ABS backport. Using the

Add a shadow on ActionBar

人盡茶涼 提交于 2019-12-30 11:04:23
问题 I am trying to add a shadow under the title of the ActionBar. I have tried putting the attributes <item name="android:textColor">@color/white</item> <item name="android:shadowRadius">1</item> <item name="android:shadowColor">@color/black</item> <item name="android:shadowDy">1</item> but while textColor is working, the shadow isn't. I am using ActionBarSherlock 3.5 but I think it would not work on native either. Thanks 回答1: I can't get this to work either on native or ABS backport. Using the

The method getChildFragmentManager() is undefined

僤鯓⒐⒋嵵緔 提交于 2019-12-30 08:30:51
问题 I have a SherlockFragmentActivity, this Activity have a SectionsPagerAdapter and a ViewPager. When I call the constructor of the SectionsPagerAdapter with getChildFragmentManager() method, it shows me this error message: The method getChildFragmentManager() is undefined for the type ViewPagerActivity This is my code: public class ViewPagerActivity extends SherlockFragmentActivity implements OnPageChangeListener, OnQueryTextListener{ private SectionsPagerAdapter sectionsPagerAdapter; private

Determine if action bar is split

自闭症网瘾萝莉.ら 提交于 2019-12-30 08:18:07
问题 I have a MapView with an action bar powered by ActionBarSherlock. The action bar is both split (on "narrow" screens) and overlayed / semi-transparent (android:windowActionBarOverlay is true). More or less like the Google Maps app. Now I would like to push views on top of the map, at the bottom of the screen still keeping it above the bottom action bar. My problem here is that I don't know the height of the bottom action bar. Frankly, I can't even find a way to know if it's drawn or not.

Actionbar tabs don't fill the tabbar

别等时光非礼了梦想. 提交于 2019-12-30 08:16:25
问题 After hours of trying I finally found a method to separate the actionbar tabbar from the actionbar manualy. actionbar convert tabs to list navigation if there is no room But now there is one problem left. The tabs don't fill the tabbar. EDIT The tabs are added to the actionbar by: ActionBar.Tab relatieTab = actionBar.newTab().setText("Relaties"); actionBar.addTab(relatieTab); 回答1: Try to switch the parent. If that doesn't work try visiting this post: Stacked ActionBar tab bar not filling

Actionbar tabs don't fill the tabbar

a 夏天 提交于 2019-12-30 08:16:06
问题 After hours of trying I finally found a method to separate the actionbar tabbar from the actionbar manualy. actionbar convert tabs to list navigation if there is no room But now there is one problem left. The tabs don't fill the tabbar. EDIT The tabs are added to the actionbar by: ActionBar.Tab relatieTab = actionBar.newTab().setText("Relaties"); actionBar.addTab(relatieTab); 回答1: Try to switch the parent. If that doesn't work try visiting this post: Stacked ActionBar tab bar not filling

ActionBarSherlock doesn't support light-theme alert dialogs?

主宰稳场 提交于 2019-12-30 06:59:07
问题 Well as the title says, i'm using the actionBarSherlock library and a light theme, and sometimes I need to show a dialog using the alertDialog.Builder class. Thing is, no matter what I try, the theme doesn't apply to the dialog itself. The theme should work on both new APIs and old ones (prior to honeycomb). example: code: final AlertDialog.Builder builder = new AlertDialog.Builder(new ContextThemeWrapper(activity, R.style.AppTheme_LightDialog)); or: final AlertDialog.Builder builder = new

Action Bar Sherlock 4 title text colour - where am I going wrong?

爷,独闯天下 提交于 2019-12-30 06:21:23
问题 I'm having difficulty making my Action Bar title text colour go white. Having followed examples I believe my code is correct, however the text appears black. Can anyone see what I am doing wrong? <resources> <style name="Theme.MyApp" parent="Theme.Sherlock.Light"> <item name="actionBarStyle">@style/Widget.MyApp.ActionBar</item> <item name="android:actionBarStyle">@style/Widget.MyApp.ActionBar</item> <item name="titleTextStyle">@style/Widget.MyApp.TitleTextStyle</item> <item name="android

How To Center Icon in Android Action Bar

妖精的绣舞 提交于 2019-12-30 06:01:27
问题 I'm trying to center the icon in the android action bar. I'm using a custom layout that has a button on the left side, an icon in the center and the menu options on the right. <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/ActionBarWrapper" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <ImageButton android:id="@+id/slideMenuButton" android:layout