android-3.0-honeycomb

How to change the Option menu icon in the Action Bar?

£可爱£侵袭症+ 提交于 2019-12-13 17:09:00
问题 On Honeycomb, when the options are hidden (not ifRoom), they are displayed in a Spinner in an option menu. I simply would like to know how to change the icon of this option menu (furthest to the right). By default, the icon is just three lines and 3 dots on ICS. Thanks ! 回答1: See more attributes from your android sdk installation, in platforms/android-XX/data/res/values/style.xml Here is menu overflow action button style definition: <style name="Widget.Holo.ActionButton.Overflow"> <item name=

Ads Showing on HoneyComb Webview but Not ICS Webview

拟墨画扇 提交于 2019-12-13 07:42:33
问题 I have tweaked my Honeycomb application to work on ICS. All is well EXCEPT my ads in the webview no longer display. I have made no code changes to this section. The ICS compatible code shows ads on a HoneyComb device but not on an ICS device. What is different and how do I handle? Here are logs that I receive on ICS device, but not HoneyComb or lower: 03-08 14:50:42.485: W/webview(24262): java.lang.Throwable: Warning: A WebView method was called on thread 'Thread-617'. All WebView methods

activatedBackgroundIndicator on layout Android honeycomb

让人想犯罪 __ 提交于 2019-12-13 07:39:52
问题 I see that the new honeycomb has a gallery sample. and it shows you how to change the color of the selected text view by adding android:background="?android:attr/activatedBackgroundIndicator" to your textview However my row for the list is not only a text view but a collection of views under a linear layout . To get the same behavior as the honeycomb gallery list selection i tired to set the background of this linear layout but it does not work. The selected row wont change color to blue.

AudioRecord obtainBuffer Timed out with AudioRecorder.startRecording()

[亡魂溺海] 提交于 2019-12-13 06:22:46
问题 I have a problem with my program which records the microphone. Sometimes when I run it I have the following warnings and no sound is actually recorded: 12-14 11:17:50.660: W/AudioRecord(1857): obtainBuffer timed out (is the CPU pegged?) user=00000000, server=00000000 From what I have found, other have this problem with AudioTrack as explained here and here. However, for me it is AudioRecord which is not working properly. I understand that the buffer cannot be created for whatever reason. The

Why are the images in WidgetTab not shown if minSdkVersion>10?

╄→尐↘猪︶ㄣ 提交于 2019-12-12 20:15:28
问题 I have been attempting to create a simple TabActivity with 3 Tabs. All works except if I put android:minSdkVersion="11" in the Manifest file, the icons are not shown. If I set `minSdkVersion="10", all is well. I have looked high and low, but I have not been able to determine what is wrong. I have put the same images in the seemingly appropriate resource directories: res/drawable-hdpi-v5 res/drawable-ldpi-v5 res/drawable-mdpi-v5 res/drawable-xhdpi-v5 And the the code is simple: import android

Contextual Action Bar in Honeycomb

蹲街弑〆低调 提交于 2019-12-12 10:48:36
问题 I'd like to change my Action Bar buttons in code according to whatever is selected on screen. This is kind of like the Honeycomb Gmail app, where you can check a few mail items and get a different Action Bar with a different look too. Any idea how I can do this? 回答1: To obtain an action bar item, use the getActionBar() method within an activity. Once you have the ActionBar item, you can add and remove tabs using methods from within the ActionBar class. The setCustomView() and

Can i hide the App Icon from the Action Bar in Honeycomb?

南笙酒味 提交于 2019-12-12 08:15:40
问题 I am currently planning the honeycomb update for my app and i am wondering how to use the Action Bar correctly. My first question is if it is possible to hide the App-Icon and Title from the Action Bar. And is there any kind of Design guidline for the Honeycomb-UI yet? 回答1: Yes, you can hide the app icon and title. You can also replace the app icon with a wider logo image for your activity. The app icon/logo at the left is collectively treated as a "home" affordance. You can optionally ask

WebView inside ViewPager or ScrollView - weird rendering bug on Android 3.0+

≯℡__Kan透↙ 提交于 2019-12-12 07:52:34
问题 I have a ViewPager. Every page of the ViewPager is a ScrollView. The ScrollView contains a WebView and several other Views. On Android 2.3 and older everything works fine but on 3.0+ there's a weird rendering issue: When scrolling left / right in the ViewPager, there is also a very subtle rendering issue (which is present in Android 4.0 Gmail app too). 回答1: This might be related to hardwareAcceleration. Try specifically turning it off. You can do this 1) in the application tag inside your

android tablet arabic language support

放肆的年华 提交于 2019-12-12 04:45:58
问题 I am using Samsung Galaxy Tab and my app contains displaying Arabic texts. I have 2 rows that displays texts. One row will display in Arabic and other in English. The output will look like Some space is coming in front of the Arabic text. I have given these two text inside a tablelayout . But if I am displaying the text in English instead of Arabic then this extra space won't be there. Why is it so? Is that related to Arabic language? 回答1: Yes, Arabic is a right to left script. So nothing to

ContactsContract.Directory - How do I return a Photo?

江枫思渺然 提交于 2019-12-12 04:37:44
问题 I am trying to figure out why I can't seem to pass a photo Uri (Uri.parse(http://url/image.png)) to the contacts app via ContactsContract.Directory I have a web service which allows searching of an address book. One of the returned fields is a url of the contact which resides on a webserver which I have verified is accessible from my Honeycomb Tablet. My ContactsContract.Directory seems to be working flawlessly returning results, but when I pass back as part of the FILTER query Contacts.PHOTO