android-3.0-honeycomb

Display cursor in AutoCompleteTextView Android HoneyComb Action bar

荒凉一梦 提交于 2019-12-23 10:08:01
问题 I have placed an Android AutoCompleteTextView in Honeycomb action bar. The problem is even if the AutoCompleteTextView has focus, it does not show the cursor, so end-user thinks that the box does not have focus. 回答1: Add these attributes to your AutoCompleteTextView, to make the cursor black: android:textColor="#000000" android:textCursorDrawable="@null" From: https://stackoverflow.com/a/9165217/1267112 来源: https://stackoverflow.com/questions/5382571/display-cursor-in-autocompletetextview

Android and Honeycomb - how to have a menu icon with SDK 13 without having an “action bar”

∥☆過路亽.° 提交于 2019-12-23 08:05:07
问题 I would like to maximize use of the screen for a Honeycomb app. Since the bottom of the screen is already stuck with "always-on" items, I'd like to add a menu button down there in that space rather than sacrificing more screen space putting an "action bar" across the top. How can I accomplish this without downgrading to API 10 or less? (As much as I don't need an action bar using up more space, I also don't need a resize button that does my app no good at all and can't be disabled except by

Show tab bar and listIn Actionbar at same time. (Android Honeycomb)

大城市里の小女人 提交于 2019-12-23 07:03:20
问题 There is a situation in which I want to use Tab bar as well as List navigation, Both at same time in Action bar. Documentation says 'we can put Actionbar in to list navigation mode or tabs navigation mode'. Is there any way to use both at same time. Any pointers, help. Thank you in Advance. 回答1: Sorry, you can only have one or the other. That being said, you can use android:actionLayout to convert an options menu item into a custom inflated layout in the action bar. You might be able to use

openOptionsMenu() across android versions

我是研究僧i 提交于 2019-12-23 02:43:33
问题 I have an app that's been designed with the titlebar hidden in all intents. I want to utilize Activity.openOptionsMenu() from a button. It works fine on 2.2 but when I run the app on honeycomb, calling openOptionsMenu() doesn't seem to work. Is there another way? onclick code here, if it matters. This is inside my mapview activity, extending MapView: OnClickListener ocl = new OnClickListener() { @Override public void onClick (View v) { switch (v.getId ()) { case R.id.b_options: Log.d (TAG,

Android: how to the design app for Smartphone AND Tablet?

元气小坏坏 提交于 2019-12-23 01:05:06
问题 I know there are already quite a lot of blog entries, how to's, questions out there that cover backward compatibility of Android 3.0 apps. However, after reading them all I'm just more confused than before. :( What I have is a Smartphone app that supports min. SDK version 8 (2.2). I now want this one to stay the same on Smartphones, but also provide a fancy version on Honeycomb Tablets with Action Bar and Fragments and so on. I know there is the compatibility pack, but all I read about it was

How best to convey a message from one Fragment to its parent (onActivityResult equivalent)

跟風遠走 提交于 2019-12-22 10:34:38
问题 OK I know that I may be thinking about this the wrong way but ... A) I have activity A loading Fragment F1 which loads fragment F2. F2 performs an action which should result in it being closed and then F1 performing a certain action based on how it was closed. B) Now because I'm also supporting a single pane, non-fragment, version F1 also loads F2 indirectly via a startActivityForResult call. This means that when F2's wrapper activity is finished F1 recieves an onActivityResult call and F1

Android Tab Action Bar

可紊 提交于 2019-12-22 05:15:35
问题 I am trying out on the android action bar for 3.0, where I refer to http://www.youtube.com/watch?v=gMu8XhxUBl8 The code in the TabsActivity are as follow: package com.test.actionbar; import android.app.ActionBar; import android.app.ActionBar.Tab; import android.app.Activity; import android.app.Fragment; import android.app.FragmentTransaction; import android.os.Bundle; public class TabsActivity extends Activity{ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate

Is it possible to write a driver for the input system in android

允我心安 提交于 2019-12-21 20:59:49
问题 Is it possible for a public sdk only app write a "driver" to an input device, like a joystick that uses some vague, possibly alien, protocol over USB using the new 3.1 USB Apis? For example, would it be possible to implement a driver for the brand-new-just-out-the-door O-Triangle 3.15 Controller with 13 joysticks and 159 buttons and virtual head tracking and soda dispenser, or would this have to wait for android to be updated with a new low-level driver for the O-Triangle 3.15's controller

SectionIndexer with GridView in Android

半腔热情 提交于 2019-12-21 19:47:48
问题 Is it possible to use a SectionIndexer with a GridView in Android? Fast scroll is working fine, and I'm using a custom adapter that extends BaseAdapter . The adapter is currently implementing SectionIndexer and seems to be identical to the examples shown online and on Stack Overflow. This made me think if it's even possible to do with a GridView and a custom adapter. 回答1: static class YOUR_ADAPTER extends SimpleCursorAdapter implements SectionIndexer { private AlphabetIndexer mIndexer; YOUR

Popup/Overlay screen in android honeycomb

自古美人都是妖i 提交于 2019-12-20 10:56:02
问题 I would like to achieve a popup/overlay screen like Places (i`m more interested how can i place that screen for example in the right/left side of the screen ) in the android maps application (image below). I can create an activity and use the Dialog theme, this mostly resolve my problem, but it placed center in the screen. Somebody have any better idea how i can create a popup/overlay screen like the places in a non-map application and place to top/right of the screen ?. My guess they did it