Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2017 The Android Open Source Project
      3 
      4      Licensed under the Apache License, Version 2.0 (the "License");
      5      you may not use this file except in compliance with the License.
      6      You may obtain a copy of the License at
      7 
      8          http://www.apache.org/licenses/LICENSE-2.0
      9 
     10      Unless required by applicable law or agreed to in writing, software
     11      distributed under the License is distributed on an "AS IS" BASIS,
     12      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13      See the License for the specific language governing permissions and
     14      limitations under the License.
     15 -->
     16 
     17 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     18                 android:layout_width="match_parent"
     19                 android:layout_height="wrap_content">
     20 
     21     <!-- Test EditorInfo.IME_NULL -->
     22     <TextView
     23         android:id="@+id/textview_imeoption_normal"
     24         android:layout_width="match_parent"
     25         android:layout_height="wrap_content"
     26         android:imeOptions="normal" />
     27 
     28     <!-- Test EditorInfo.IME_ACTION_* -->
     29     <TextView
     30         android:id="@+id/textview_imeoption_action_unspecified"
     31         android:layout_width="match_parent"
     32         android:layout_height="wrap_content"
     33         android:imeOptions="actionUnspecified" />
     34     <TextView
     35         android:id="@+id/textview_imeoption_action_none"
     36         android:layout_width="match_parent"
     37         android:layout_height="wrap_content"
     38         android:imeOptions="actionNone" />
     39     <TextView
     40         android:id="@+id/textview_imeoption_action_go"
     41         android:layout_width="match_parent"
     42         android:layout_height="wrap_content"
     43         android:imeOptions="actionGo" />
     44     <TextView
     45         android:id="@+id/textview_imeoption_action_search"
     46         android:layout_width="match_parent"
     47         android:layout_height="wrap_content"
     48         android:imeOptions="actionSearch" />
     49     <TextView
     50         android:id="@+id/textview_imeoption_action_send"
     51         android:layout_width="match_parent"
     52         android:layout_height="wrap_content"
     53         android:imeOptions="actionSend" />
     54     <TextView
     55         android:id="@+id/textview_imeoption_action_next"
     56         android:layout_width="match_parent"
     57         android:layout_height="wrap_content"
     58         android:imeOptions="actionNext" />
     59     <TextView
     60         android:id="@+id/textview_imeoption_action_done"
     61         android:layout_width="match_parent"
     62         android:layout_height="wrap_content"
     63         android:imeOptions="actionDone" />
     64     <TextView
     65         android:id="@+id/textview_imeoption_action_previous"
     66         android:layout_width="match_parent"
     67         android:layout_height="wrap_content"
     68         android:imeOptions="actionPrevious" />
     69 
     70     <!-- Test EditorInfo.IME_FLAG_* -->
     71     <TextView
     72         android:id="@+id/textview_imeoption_no_personalized_learning"
     73         android:layout_width="match_parent"
     74         android:layout_height="wrap_content"
     75         android:imeOptions="flagNoPersonalizedLearning" />
     76     <TextView
     77         android:id="@+id/textview_imeoption_no_fullscreen"
     78         android:layout_width="match_parent"
     79         android:layout_height="wrap_content"
     80         android:imeOptions="flagNoFullscreen" />
     81     <TextView
     82         android:id="@+id/textview_imeoption_navigation_previous"
     83         android:layout_width="match_parent"
     84         android:layout_height="wrap_content"
     85         android:imeOptions="flagNavigatePrevious" />
     86     <TextView
     87         android:id="@+id/textview_imeoption_navigation_next"
     88         android:layout_width="match_parent"
     89         android:layout_height="wrap_content"
     90         android:imeOptions="flagNavigateNext" />
     91     <TextView
     92         android:id="@+id/textview_imeoption_no_extract_ui"
     93         android:layout_width="match_parent"
     94         android:layout_height="wrap_content"
     95         android:imeOptions="flagNoExtractUi" />
     96     <TextView
     97         android:id="@+id/textview_imeoption_no_accessory_action"
     98         android:layout_width="match_parent"
     99         android:layout_height="wrap_content"
    100         android:imeOptions="flagNoAccessoryAction" />
    101     <TextView
    102         android:id="@+id/textview_imeoption_no_enter_action"
    103         android:layout_width="match_parent"
    104         android:layout_height="wrap_content"
    105         android:imeOptions="flagNoEnterAction" />
    106     <TextView
    107         android:id="@+id/textview_imeoption_force_ascii"
    108         android:layout_width="match_parent"
    109         android:layout_height="wrap_content"
    110         android:imeOptions="flagForceAscii" />
    111 
    112     <!-- test an action with multiple flags -->
    113     <TextView
    114         android:id="@+id/textview_imeoption_action_go_nagivate_next_no_extract_ui_force_ascii"
    115         android:layout_width="match_parent"
    116         android:layout_height="wrap_content"
    117         android:imeOptions="actionGo|flagNavigateNext|flagNoExtractUi|flagForceAscii" />
    118 
    119 </LinearLayout>
    120