2011-01-24 8 views
0

を働いていない私は、マーキータグを追加しましたが、それは動作していない....ここ は私coding..any 1つのチェックであり、それが動作していないtell..why ...マーキーが

<?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" 
    > 
    <TextView 
    android:id="@+id/txt3" 
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:singleLine="true" 
    android:ellipsize="marquee" 
    android:marqueeRepeatLimit="marquee_forever" 
    android:textColor="#00FF00" 
    android:text="News Blog" 
    /> 
<TextView 
    android:id="@+id/txt1" 
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:text="Artical topic" 
    /> 
    <EditText android:id="@+id/txtName1" 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" 
     /> 
     <TextView 
     android:id="@+id/txt2" 
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:text="Artical" 
    /> 
    <EditText android:id="@+id/txtName2" 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" 
     /> 
    <Button 
     android:id="@+id/submit" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:layout_alignParentRight="true" 
     android:layout_marginLeft="dip" 
     android:text="Submit" /> 
    <Button 
     android:id="@+id/Cancel" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:layout_toRightOf="@id/submit" 
     android:layout_alignTop="@id/submit" 
     android:text="Cancel" /> 

</LinearLayout> 
+0

申し訳ありませんplsは、マーキーを適用したときのxmlの全体コードを入れます –

+0

マーキーは、テキストビューにフォーカスがある場合にのみ機能します。 – Eby

答えて

0

Aマーキーは、TextViewがフォーカスまたは選択されたときに開始します。

あなたがどんな問題を取得した場合、その後のコメントを入れ

tv.setSelected(true); 

を呼び出すことによって開始することを強制することができます。

関連する問題