actionbarsherlock

ActionBarSherlock actionbar disappears when focus changes from EditText to Button

霸气de小男生 提交于 2020-01-11 04:01:12
问题 I have a simple login layout that contains two EditText fields and a Button to login. The problem is that the ActionBar disappears when the soft keyboard is open and I change the focus from an EditText to the Button, and the ActionBar comes back again when I press back. The problem does not occur when the soft keyboard is closed and I navigate through the EditTexts and Button with the DPAD. I use ActionBarSherlock, and the problem occurs only on Android 2.x emulators, on the 4.x emulators

ActionBarSherlock, ViewPager, TabsAdapter nested Tab Fragments

感情迁移 提交于 2020-01-11 01:08:09
问题 I implemented a ActionBarSherlock with a ViewPager and a TabsAdapter. It works well but now I tried to "push" from a Framework Loaded in "Tab 1" another Fragment. The behavior should be like: I've 3 Tabs in my Application, When launching I see the first Tab where a Fragment with a Button is in it Pressing the Button on the First Tab, the Fragment on the First Tab should be replaced and another Fragment should be displayed I tried to implement this, but I've a black Fragment when Replacing.

Use support library in android projects and library (Android Studio)

感情迁移 提交于 2020-01-10 22:16:50
问题 I'm using the new Android Studio, I'm looking for a way to use the support library from multiple projects. Basically I have a project that uses the ActionBarSherlock this projects requires the support library. So I added a reference as like in this question. Now I have the problem that my main project also uses the support library so I have it includes twice in some way. If I remove the library from one of both projects I'll get errors that some support library related classes are unknown

SherlockActionBar: How to adjust CustomView against actionBar

此生再无相见时 提交于 2020-01-09 19:04:48
问题 Question: How can I have the title back? Here's the screenshot (Missing title): Actionbar setting: ActionBar actionBar = getSupportActionBar(); actionBar.setTitle("My Title"); actionBar.setIcon(drawable.dropdown_user); View mLogoView = LayoutInflater.from(this).inflate(R.layout.mLogoView, null); actionBar.setCustomView(mLogoView); actionBar.setDisplayShowCustomEnabled(true); actionBar.setDisplayShowTitleEnabled(true); actionBar.setDisplayHomeAsUpEnabled(true); mLogoView.xml: <?xml version="1

AAPT failing with error code -1073741819

三世轮回 提交于 2020-01-09 09:44:31
问题 Building the project throws the following error from AAPT. I've rebuilt the project, but it is still failing. I can't find any references anywhere to what this error code actually means. I'm using Java 6, and Android tools r19 in IntelliJ with ActionBarSherlock v4.1.0. I/O error: Command "C:\android-sdk-windows\platform-tools\aapt.exe package -m --auto-add-overlay --extra-packages com.actionbarsherlock -J C:\Users\Ollie\.IntelliJIdea11\system\compiler\project6.b9f5599b\.generated\aapt\Project

Switching fragments within tab

我的梦境 提交于 2020-01-09 04:22:13
问题 I'm creating an app that uses ActionBarSherlock. The app consists of three tabs, and in each of them, multiple screens are shown consecutively based on user input. I am able to switch Fragments between tabs, but the switching of fragments within tabs gives a problem. I've tried it like this: In the main class: SingleStationFragment singleStationFragment = new SingleStationFragment(); FragmentTransaction transaction = getSupportFragmentManager().beginTransaction(); transaction.replace(android

Importing google-play-services lib into Intellij IDEA 12 (and 13)

随声附和 提交于 2020-01-08 15:29:52
问题 I'd like to import (and use) the Google Play Services library into an existing Android project, but I am struggling with what must be a dependency problem. All documentation written by google is based upon Eclipse. We use IntelliJ IDEA. Things I know: I know how to import Modules, Libraries, add Dependencies, etc. in IntelliJ. I also know that according to the getting started guide at Google, you have to add the google-play-services-lib into (Eclipse) as a project (by importing existing code

Importing google-play-services lib into Intellij IDEA 12 (and 13)

♀尐吖头ヾ 提交于 2020-01-08 15:29:07
问题 I'd like to import (and use) the Google Play Services library into an existing Android project, but I am struggling with what must be a dependency problem. All documentation written by google is based upon Eclipse. We use IntelliJ IDEA. Things I know: I know how to import Modules, Libraries, add Dependencies, etc. in IntelliJ. I also know that according to the getting started guide at Google, you have to add the google-play-services-lib into (Eclipse) as a project (by importing existing code

ActionBarSherlock leads to icons get stretched

ε祈祈猫儿з 提交于 2020-01-07 06:07:14
问题 We have started integrating ActionBarSherlock into our app. Everything looks great, it's a really great lib, that gets in easily. But, there's one issue we don't know how to solve: Some of the icons on some pages for larger screens get stretched . Has anybody had such problem? Upd. 1.: Device that has icons stretched is running on Android 4.2.2 (it's Nexus 7 actually). All ok on a smaller screen like HTC Desire (2.3.3). Upd. 2.: As the example of what is happening: there's an icon of a size

ActionBarSherlock leads to icons get stretched

我们两清 提交于 2020-01-07 06:06:09
问题 We have started integrating ActionBarSherlock into our app. Everything looks great, it's a really great lib, that gets in easily. But, there's one issue we don't know how to solve: Some of the icons on some pages for larger screens get stretched . Has anybody had such problem? Upd. 1.: Device that has icons stretched is running on Android 4.2.2 (it's Nexus 7 actually). All ok on a smaller screen like HTC Desire (2.3.3). Upd. 2.: As the example of what is happening: there's an icon of a size