小编Abb*_*Abb的帖子

如何在对话框中创建edittext框

我正在尝试在对话框中创建一个edittext框来输入密码.当我在做的时候,我无法做到.我是初学者.请帮帮我.

public class MainActivity extends Activity {

Button create, show, setting;
//String pass="admin";String password;

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    create = (Button)findViewById(R.id.amcreate);
    setting = (Button)findViewById(R.id.amsetting);
    show = (Button)findViewById(R.id.amshow);
    //input = (EditText)findViewById(R.id.this);

    setting.setVisibility(View.INVISIBLE);

    create.setOnClickListener(new View.OnClickListener() {
        public void onClick(View view) {
            Intent myIntent1 = new Intent(view.getContext(), Create.class);
            startActivityForResult(myIntent1, 0);
        }

    });

    show.setOnClickListener(new View.OnClickListener() {
        //@SuppressWarnings("deprecation")
        public void onClick(final View view) {

            // Creating alert Dialog with one Button
            AlertDialog.Builder alertDialog = new AlertDialog.Builder(MainActivity.this);

            //AlertDialog alertDialog = new AlertDialog.Builder(MainActivity.this).create(); …
Run Code Online (Sandbox Code Playgroud)

android dialog android-edittext

196
推荐指数
6
解决办法
25万
查看次数

安装SQL Server Management Studio后,SQL Server服务在服务列表中不可用

我在我的系统上安装了Windows 7 Home Edition SP1,并下载了SQL Server 2008 R2 Management Studio并安装了它.但是当我尝试通过.\ SQLEXPRESS连接时,SSMS显示错误

建立与SQL Server的连接时发生与网络相关或特定于实例的错误.服务器未找到或无法访问.验证实例名称是否正确,以及SQL Server是否配置为允许远程连接.(提供程序:SQL网络接口,错误:26 - 查找指定的服务器/实例时出错)(Microsoft SQL Server,错误:-1)如需帮助,请单击:http://go.microsoft.com/fwlink?ProdName = Microsoft + SQL + Server&EvtSrc = MSSQLServer&EvtID = -1&LinkId = 20476.

我回去检查那里的本地服务我没有找到任何SQL Server服务运行.

我必须为此做些什么?我需要在我的系统上安装任何SQL服务吗?或者我该怎么办?

sql sql-server sql-server-2008

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