Using "android:textAppearance" on TextView/EditText fails, but "style" works-ThrowExceptions

Exception or error: This is a sample TextView in XML, which will properly apply the style TextContactContactName to the TextView. <TextView android:id=”@+id/name” android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:layout_toRightOf=”@id/photo” android:layout_alignTop=”@id/photo” android:paddingLeft=”10dp” android:text=”First Last” style=”@style/TextContactContactName” /> Now, I have some other things to set on this element, which are not text related. As such I tried to move the TextContactContactName …

Android – ListView doesn't receive OnItemClick for textview with clickable links-ThrowExceptions

Exception or error: I have a ListView that contains a TextView in each row besides a number of other views. The TextView renders html content which may contain links. The below code appears in the list adapter. m_textview.setMovementMethod(LinkMovementMethod.getInstance()); m_textview.setText(Html.fromHtml(myhtmlcontent)); This causes the listview to no longer receive on click events though. I decided to put …

android – search listview?-ThrowExceptions

Exception or error: Is it possible with Android to have a search bar for a ListView so that when the search bar is touched a keyboard pops up, and when text is typed into the search bar, the items that match in the ListView are shown? What I really need is the search bar that …

android – Load an SWF into a WebView-ThrowExceptions

Exception or error: I’m having problems with this. If I go to an SWF directly in the browser, it works fine. If I attempt to use loadUrl on an SWF file it stays blank and loads nothing. How to solve: Figured it out. You have to enable plugins. webview.getSettings().setPluginsEnabled(true); ### Niky, you have a code …

Android TextView: Getting "W/StaticLayout: maxLineHeight should not be -1. maxLines:1 lineCount:1" when setting text-ThrowExceptions

Exception or error: I’m setting some text on a TextView every 0.5 seconds based on a timer. Everytime, when the timer runs and the text is set, I’m getting this warning message being spammed in my console. W/StaticLayout: maxLineHeight should not be -1. maxLines:1 lineCount:1 XML Code: <RelativeLayout xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:app=”http://schemas.android.com/apk/res-auto” xmlns:tools=”http://schemas.android.com/tools” android:layout_width=”match_parent” android:layout_height=”match_parent”> <TextView android:id=”@+id/title_text” …

android – onOptionsItemSelected not getting called when using custom action view-ThrowExceptions

Exception or error: I set an custom view for one of my actionbar MenuBar like this @Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.loop_thread, menu); ImageView iv = (ImageView)(getLayoutInflater().inflate(R.layout.image_container, null)); menu.findItem(R.id.action_filter).setActionView(iv); … but when I tap that menu item in my app, onOptionsItemSelected() does not get called. (I have verified this via setting a breakpoint at …

android – Rich text in a textview-ThrowExceptions

Exception or error: I need create an “Info” for my program. I’d like fill the info text with several colors, style, fonts, ecc. I found this: http://www.chrisumbel.com/article/android_textview_rich_text_spannablestring is there another way (better easy) to do this? thanks! How to solve: Upon reading your question title, I was prepared to give you a link to that …