There is a list of TextView , in which when you click on the Button sub-list crashes The problem is that if we are on TextView37 , when we press the button, we are thrown to the first TextView1 .
Is there a parameter or code that "anchors", that is, leaves the current position in the TextView , without moving us to the top of the list? [! [enter image description here] [1]] [1]

That's how I get the order number

  String idCurrent = cur.getString(cur.getColumnIndex("id")); String rowKeyCurrent = cur.getString(cur.getColumnIndex("rowKey")); holder.llResults.setTag(R.id.TAG_ID, idCurrent); holder.llResults.setTag(R.id.TAG_ROW_KEY, rowKeyCurrent); 

But onClick:

  holder.llResults.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { agendaItemClick.onVotesViewClick((String) view.getTag(R.id.TAG_ID), (String) view.getTag(R.id.TAG_ROW_KEY)); } }); 

List:

 <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1" android:gravity="center_vertical" android:layout_marginTop="12dp" android:layout_marginBottom="12dp"> <LinearLayout android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="20dp" android:background="@drawable/bg_status_transperant" android:id="@+id/llTag" android:visibility="visible" android:layout_marginBottom="10dp"> <TextView android:id="@+id/txtTag" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Обновленный" android:textSize="14sp" android:textColor="@color/brownish_grey" android:maxLines="2" android:layout_gravity="center_vertical"/> </LinearLayout> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Название" android:id="@+id/txtName" android:textColor="@color/black" android:textSize="40sp" android:layout_marginRight="24dp"/> </LinearLayout> 

Button:

 <LinearLayout android:orientation="horizontal" android:layout_width="100dp" android:layout_height="fill_parent" android:layout_weight="0" android:gravity="center_vertical|center_horizontal" android:id="@+id/llResults" android:focusableInTouchMode="true" android:clickable="true"> <ImageView android:layout_width="18dp" android:layout_height="18dp" android:id="@+id/imageView20" android:src="@drawable/graf_4"/> </LinearLayout> <LinearLayout android:orientation="horizontal" android:layout_width="24dp" android:layout_height="fill_parent" android:layout_weight="0" android:gravity="center_vertical"/> 
  • How do you show the dropdown list? - Vladyslav Matviienko
  • Elements are located under each TextView (first, second, etc.) - GuardFromUA
  • code that shows them where? - Vladyslav Matviienko
  • you most likely have an error in the code that shows drop-down lists - Vladyslav Matviienko
  • one
    I do not think that someone can guess from the pictures what is happening and why you are there and how to help it. Without a reproducible example of a problem, you can only say with certainty that you are doing something wrong. - pavlofff pm

0