2
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android orientation="vertical" >

    <TextView
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:text="@string/hello" />

    <Button
        android:id="@+id/button1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="xyz" />
    <EditText 
           android:id="@+id/editText1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"

        />
</LinearLayout>

上記のようなXMLレイアウトがあり、そのxyzボタンをクリックすると、ダイアログを表示するアプリケーション「SampleApp」を起動します。[設定]->[ユーザー補助]から「トークバック」アプリケーションを有効にしました。次に、xyzボタンをクリックすると、トークバックアプリは「アラート..」と表示されますが、「アラート+ダイアログタイトル」とは表示されません。しかし、アプリケーションでダイアログを開始すると、ダイアログのタイトルが正しく表示されます。

4

1 に答える 1

-1

マニフェストであなたの活動を宣言します。

<activity
        android:name=".ActivityName"           
        android:theme="@android:style/Theme.Dialog" >
于 2012-08-22T12:01:10.647 に答える