일부 항목을 목록으로 표시하고 목록의 각 항목에 대해 화면 오른쪽에 작은 드롭 다운을 추가하는 방법이 있는지 궁금합니다. 삭제/편집 옵션을 제공합니다.안드로이드 - 옵션 메뉴를 listItem에 추가하는 방법이 있습니까
그럴 수 있습니까?
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<include android:id="@+id/header"
layout="@layout/header"
android:layout_height="wrap_content"
android:layout_width="fill_parent"/>
<TextView
android:id="@+id/no_problems"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Enter the business(es) you want to plan or choose from your existing list."
/>
<ListView
android:id="@android:id/list"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@+id/label"
android:textSize="20px" >
</ListView>
<Button
android:id="@+id/add_problem_ok"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textColor="@color/light_best_blue"
android:text="Plan a New Business"
android:layout_marginTop ="15dp"
/>
</LinearLayout>
및 목록보기에 나는이 있습니다 : Rigth 지금은이 같은 일을 나열
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="10dp"
android:textSize="16sp" >
</TextView>
감사합니다!
각 항목에 상황에 맞는 메뉴를 추가하면 사용자가 약 2 초 동안 항목을 터치하면 메뉴가 표시됩니다. 모든 옵션을 추가 할 수 있습니다. 그곳에. 또한 혼란을 줄이는 데 도움이됩니다. – axiom
@amanmadaan 예 migth가 멋지지만 많은 사용자는 2 초 동안 메뉴를 터치하지 않을 것입니다. – Genadinik
요즘에는 상황에 맞는 메뉴가 표준이되어야하며 모든 일반 Android 사용자는 어떻게 작동하는지 알고 있어야한다고 생각합니다. . 도움말 파일이나 팝업에서 이들에 대한 정보를 추가 할 수 있습니다. 글쎄, 내 사건을 발표했다 :) 만약 당신이 그들이 당신에게 옳다는 것을 느낀다면, 언제든지 봐 달라. [this] (https://github.com/appliedXml/Tarang/blob/master) /src/com/bvp/miniproject/ViewSavedMessagesActivity.java) – axiom