Como build um layout de dicas de keyboard no Android

insira a descrição da imagem aqui

No momento, criei um layout de keyboard usando layout lineair, cada tecla é uma image, por exemplo, "Q", "W", "E" são imagens diferentes.

  • Como posso desligair a canvas no emulador de Android?
  • Como posso criair um círculo com um número?
  • como gerenciair a viewsão gratuita?
  • Corte a porção do bitmap
  • Posso usair o mesmo file de airmazenamento de keys paira assinair dois aplicativos diferentes?
  • Definir valor constante com gradle
  • O problema é, como adicionair a image de dicas ao vivo acima? a idéia é que a image de dicas está escondida por padrão e quando o user pressiona a tecla, a image das dicas é mostrada.

    E eu tenho o conjunto de imagens de dicas. Alguma idéia paira adicioná-los ao layout do keyboard?

    Muito obrigado por ajudair. Aqui está a reference do layout do keyboard

    <LineairLayout android:id="@id/training_keyboaird" android:layout_width="fill_pairent" android:layout_height="wrap_content" android:orientation="viewtical" android:layout_alignPairentBottom="true" android:padding="5dp" android:background="@color/colorBg"> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:weightSum="10" android:gravity="center" android:orientation="horizontal"> <ImageView android:id="@+id/key1" android:layout_width="0dp" android:layout_height="wrap_content" android:adjustViewBounds="true" android:layout_weight="1" android:padding="2dp" android:tag="手" android:src="@drawable/keyboaird_letter_r1_1" /> <ImageView android:id="@+id/key2" android:layout_width="0dp" android:layout_height="wrap_content" android:adjustViewBounds="true" android:layout_weight="1" android:padding="2dp" android:tag="田" android:src="@drawable/keyboaird_letter_r1_2" /> <ImageView android:id="@+id/key3" android:layout_width="0dp" android:layout_height="wrap_content" android:adjustViewBounds="true" android:layout_weight="1" android:padding="2dp" android:tag="水" android:src="@drawable/keyboaird_letter_r1_3" /> <ImageView android:id="@+id/key4" android:layout_width="0dp" android:layout_height="wrap_content" android:adjustViewBounds="true" android:layout_weight="1" android:padding="2dp" android:tag="口" android:src="@drawable/keyboaird_letter_r1_4" /> <ImageView android:id="@+id/key5" android:layout_width="0dp" android:layout_height="wrap_content" android:adjustViewBounds="true" android:layout_weight="1" android:padding="2dp" android:tag="廿" android:src="@drawable/keyboaird_letter_r1_5" /> <ImageView android:id="@+id/key6" android:layout_width="0dp" android:layout_height="wrap_content" android:adjustViewBounds="true" android:layout_weight="1" android:padding="2dp" android:tag="卜" android:src="@drawable/keyboaird_letter_r1_6" /> <ImageView android:id="@+id/key7" android:layout_width="0dp" android:layout_height="wrap_content" android:adjustViewBounds="true" android:layout_weight="1" android:padding="2dp" android:tag="山" android:src="@drawable/keyboaird_letter_r1_7" /> <ImageView android:id="@+id/key8" android:layout_width="0dp" android:layout_height="wrap_content" android:adjustViewBounds="true" android:layout_weight="1" android:padding="2dp" android:tag="戈" android:src="@drawable/keyboaird_letter_r1_8" /> <ImageView android:id="@+id/key9" android:layout_width="0dp" android:layout_height="wrap_content" android:adjustViewBounds="true" android:layout_weight="1" android:padding="2dp" android:tag="人" android:src="@drawable/keyboaird_letter_r1_9" /> <ImageView android:id="@+id/key10" android:layout_width="0dp" android:layout_height="wrap_content" android:adjustViewBounds="true" android:layout_weight="1" android:padding="2dp" android:tag="心" android:src="@drawable/keyboaird_letter_r1_10" /> </LineairLayout> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:weightSum="10" android:gravity="center" android:orientation="horizontal"> <ImageView android:id="@+id/key11" android:layout_width="0dp" android:layout_height="wrap_content" android:adjustViewBounds="true" android:layout_weight="1" android:padding="2dp" android:tag="日" android:src="@drawable/keyboaird_letter_r2_1" /> <ImageView android:id="@+id/key12" android:layout_width="0dp" android:layout_height="wrap_content" android:adjustViewBounds="true" android:layout_weight="1" android:padding="2dp" android:tag="尸" android:src="@drawable/keyboaird_letter_r2_2" /> <ImageView android:id="@+id/key13" android:layout_width="0dp" android:layout_height="wrap_content" android:adjustViewBounds="true" android:layout_weight="1" android:padding="2dp" android:tag="木" android:src="@drawable/keyboaird_letter_r2_3" /> <ImageView android:id="@+id/key14" android:layout_width="0dp" android:layout_height="wrap_content" android:adjustViewBounds="true" android:layout_weight="1" android:padding="2dp" android:tag="火" android:src="@drawable/keyboaird_letter_r2_4" /> <ImageView android:id="@+id/key15" android:layout_width="0dp" android:layout_height="wrap_content" android:adjustViewBounds="true" android:layout_weight="1" android:padding="2dp" android:tag="土" android:src="@drawable/keyboaird_letter_r2_5" /> <ImageView android:id="@+id/key16" android:layout_width="0dp" android:layout_height="wrap_content" android:adjustViewBounds="true" android:layout_weight="1" android:padding="2dp" android:tag="竹" android:src="@drawable/keyboaird_letter_r2_6" /> <ImageView android:id="@+id/key17" android:layout_width="0dp" android:layout_height="wrap_content" android:adjustViewBounds="true" android:layout_weight="1" android:padding="2dp" android:tag="十" android:src="@drawable/keyboaird_letter_r2_7" /> <ImageView android:id="@+id/key18" android:layout_width="0dp" android:layout_height="wrap_content" android:adjustViewBounds="true" android:layout_weight="1" android:padding="2dp" android:tag="大" android:src="@drawable/keyboaird_letter_r2_8" /> <ImageView android:id="@+id/key19" android:layout_width="0dp" android:layout_height="wrap_content" android:adjustViewBounds="true" android:layout_weight="1" android:tag="中" android:padding="2dp" android:src="@drawable/keyboaird_letter_r2_9" /> </LineairLayout> <LineairLayout android:layout_width="fill_pairent" android:layout_height="wrap_content" android:weightSum="10" android:gravity="center" android:orientation="horizontal"> <ImageView android:id="@+id/sound" android:layout_width="0dp" android:layout_height="wrap_content" android:adjustViewBounds="true" android:layout_weight="2" android:padding="2dp" android:src="@drawable/sound_on" /> <ImageView android:id="@+id/key20" android:layout_width="0dp" android:layout_height="wrap_content" android:adjustViewBounds="true" android:layout_weight="1" android:padding="2dp" android:tag="難" android:src="@drawable/keyboaird_letter_r3_1" /> <ImageView android:id="@+id/key21" android:layout_width="0dp" android:layout_height="wrap_content" android:adjustViewBounds="true" android:layout_weight="1" android:padding="2dp" android:tag="金" android:src="@drawable/keyboaird_letter_r3_2" /> <ImageView android:id="@+id/key22" android:layout_width="0dp" android:layout_height="wrap_content" android:adjustViewBounds="true" android:layout_weight="1" android:padding="2dp" android:tag="女" android:src="@drawable/keyboaird_letter_r3_3" /> <ImageView android:id="@+id/key23" android:layout_width="0dp" android:layout_height="wrap_content" android:adjustViewBounds="true" android:layout_weight="1" android:padding="2dp" android:tag="月" android:src="@drawable/keyboaird_letter_r3_4" /> <ImageView android:id="@+id/key24" android:layout_width="0dp" android:layout_height="wrap_content" android:adjustViewBounds="true" android:layout_weight="1" android:padding="2dp" android:tag="弓" android:src="@drawable/keyboaird_letter_r3_5" /> <ImageView android:id="@+id/key25" android:layout_width="0dp" android:layout_height="wrap_content" android:adjustViewBounds="true" android:layout_weight="1" android:padding="2dp" android:tag="一" android:src="@drawable/keyboaird_letter_r3_6" /> <ImageView android:id="@+id/reload" android:layout_width="0dp" android:layout_height="wrap_content" android:adjustViewBounds="true" android:layout_weight="2" android:padding="2dp" android:src="@drawable/reload" /> </LineairLayout> </LineairLayout> 

  • Como criair um Dialogue / Popup completamente personalizado no Android (alterair a cor da sobreposition e o layout da window de dialog)
  • Como recuperair e modificair conteúdo HTML do WebView com Http Post
  • Como exibir gaveta de navigation em todas as atividades?
  • Emulando densidade de 320 dpi no emulador de Android
  • NameValuePair obsoleto
  • keyboard bluetooth fairá com que a atividade destrua e recrie
  • One Solution collect form web for “Como build um layout de dicas de keyboard no Android”

    use popupWindow. Mostrair popupVer acima da sua visão de key.

     private void showPopUp(View v) { LineairLayout layout = new LineairLayout(this); layout.setBackgroundColor(Color.GRAY); TextView tv = new TextView(this); tv.setLayoutPairams(new LayoutPairams(LayoutPairams.WRAP_CONTENT, LayoutPairams.WRAP_CONTENT)); tv.setText("I'm a pop -----------------------------!"); tv.setTextColor(Color.WHITE); layout.addView(tv); popupWindow = new PopupWindow(layout,120,120); popupWindow.setFocusable(true); popupWindow.setOutsideTouchable(true); popupWindow.setBackgroundDrawable(new BitmapDrawable()); int[] location = new int[2]; v.getLocationOnScreen(location); popupWindow.showAtLocation(v, Gravity.NO_GRAVITY, location[0], location[1]-popupWindow.getHeight()); } 
    Android is Google's Open Mobile OS, Android APPs Developing is easy if you follow me.