Tags » St├ęphane

Android: Listener on SearchView - Ui seems to be updated only when clicked elsewhere

My SearchView updated my UI only when it looses focus

I have a searchView with an onTextListener on it

    //Keep a global variable of this so you can set it within the next listener
    SearchView user_search = (SearchView) search.getActionView();

    user_search.setOnQueryTextListener(new SearchView.OnQueryTextListener() {

        @Override
        public boolean onQueryTextChange(String newText) {
            final Intent intent = new Intent("menu-filtered-refreshed");
            intent.putExtra("filterText",newText);
            runOnUiThread(new Runnable() {
                @Override
                public void run() {

                    // You can also include some extra data. 206 more words
Stackoverflow

Android: Navigation Drawer + Fragment + NestedFragment + SupportMapFragment

I have been reading every possible threads on stackoverflow for the past two days, and I can’t figure out where my issue is… Experiencing a new error every time I bring a “fix” 2,057 more words

Stackoverflow

Android Onclick priority: ListView or ImageView in ListView?

Theorical question

I have a listview populated with items, which layout is defined by one TextView and one ImageView.
I set an onclick listener… 53 more words

Stackoverflow

SCADS44 Cleopatra Thea and Antiochus VIII SC 2262.1Ad

CLEOPATRA THEA AND ANTIOCHUS VIII

ANTIOCH

SC 2262.1Ad

Silver tetradrachm, Zeus Nicephorus type

Obv.: Jugate busts r. of Cleopatra Thea diademed, veiled and wearing stephane, and Antiochus VIII, diademed, dotted border. 30 more words

Tetradrachm

Android: Implement SQLite max number of history + no duplicate entries

I used this article

http://ift.tt/1opMyPh

How do I modify this code for:

  • Limiting the history of searches to 50 ? (performance concerns here)
  • Disabling inserts of duplicates for the value “search” (UI experience here)
  • 196 more words
Stackoverflow

Android Layout: Wrap two textview

I would like to achieve the following layout

AAAAAAAAAAAAAAAAAA
AAAAA... BBBBBBBBB

Where AAAA is a textview (ellipsize = “end”) and BBB is a textview as well. 43 more words

Stackoverflow

Android Layout: Wrap two textview

I would like to achieve the following layout

AAAAAAAAAAAAAAAAAA
AAAAA... BBBBBBBBB

Where AAAA is a textview (ellipsize = “end”) and BBB is a textview as well. 43 more words

Stackoverflow