小编yhu*_*_19的帖子

即使setFocusable(true),PopupWindow中的EditText也不显示键盘

我似乎无法完成这项工作.我已经将popWindow设置为关注我在其他论坛上阅读的内容,但仍然没有运气.

XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:adjustViewBounds="true"
android:background="@drawable/popbg"
android:orientation="vertical" >

<Button
    android:id="@+id/cancel"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_gravity="right"
    android:layout_marginRight="10dp"
    android:layout_marginTop="30dp"
    android:background="@drawable/zcancel" />

<TextView
    android:id="@+id/textView3"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_marginTop="10dp"
    android:layout_marginLeft="10dp"
    android:text="SSID"
    android:textAppearance="?android:attr/textAppearanceMedium" />

<EditText
    android:id="@+id/editText3"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:ems="10"
    android:inputType="textPersonName" />
Run Code Online (Sandbox Code Playgroud)

java的

 case(R.id.settings):
 switch (event.getAction()) 
 {
case MotionEvent.ACTION_DOWN:
v.setBackgroundResource(R.drawable.cpanel2);
return true;
case MotionEvent.ACTION_UP:
v.setBackgroundResource(R.drawable.cpanel1);

LayoutInflater layoutInflater =  
    (LayoutInflater)getBaseContext().getSystemService(LAYOUT_INFLATER_SERVICE);  

View popSwitchView = layoutInflater.inflate(R.layout.settings_xml, null);

final PopupWindow popWindow = new PopupWindow(popSwitchView);
popWindow.setWidth(LayoutParams.MATCH_PARENT);
popWindow.setHeight(LayoutParams.MATCH_PARENT);
popWindow.showAtLocation(popSwitchView, Gravity.CENTER, 0, 0);
popWindow.setOutsideTouchable(false);  
popWindow.setFocusable(true);
Drawable d = getResources().getDrawable(R.drawable.popbg); 
popWindow.setBackgroundDrawable(d);

Button …
Run Code Online (Sandbox Code Playgroud)

keyboard android popupwindow android-edittext

14
推荐指数
2
解决办法
1万
查看次数

avrdude:stk500_getsync():不同步:resp = 0x00(尝试除了替换之外的一切)

avrdude:stk500_getsync():不同步:resp = 0x00

在此输入图像描述

我有这个问题,没有任何我搜索过的帮助,我已经尝试了一切.我使用arduino uno与以太网盾.

如果这是问题,我将Led从数字引脚直接插入GND,没有任何电阻,如果那是因为它现在刚刚崩溃,我经常做到这一点.

如果有其他解决方案请帮助,我已经做了以下事情:

•港口检查

•董事会检查

•驱动程序检查/重新安装

•电缆检查/更新

似乎没有任何效果.如果它坏了我的以太网盾会受到伤害并被打破吗?我应该替换哪个.

ethernet arduino

7
推荐指数
1
解决办法
2万
查看次数