小编Coo*_*ter的帖子

在Windows 8 metro应用程序中使用Sencha Touch

我想知道如何在windows 8 metro app项目中使用Sencha Touch Frame与Windows JS项目.

当我尝试将sencha Touch添加到html页面时,我收到异常

Unable to add dynamic content. A script attempted to inject dynamic content, or elements previously modified dynamically, that might be unsafe. For example, using the innerHTML property to add script or malformed HTML will generate this exception. Use the toStaticHTML method to filter dynamic content, or explicitly create elements and attributes with a method such as createElement. For more information, see http://go.microsoft.com/fwlink/?LinkID=247104.
Run Code Online (Sandbox Code Playgroud)

如果没有办法使用Sencha触摸框架有任何方法可以添加Sencha ExtJS到Windows 8 metro应用程序.

因为我们还需要为所有 …

extjs sencha-touch windows-8 hybrid-mobile-app

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

Android基本编程

我想写一个公司的协议(长文本)并在应用程序在对话框中启动时加载它.我试过加载,但事情是它允许用户输入该协议上的文本.但我想要的是,它不应该允许用户编辑协议.

有什么建议吗?

public class MainActivity extends Activity {
EditText ed;

SharedPreferences sp;
SharedPreferences.Editor sped;


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

    ed=(EditText) findViewById(R.id.editText1);

    sp=getSharedPreferences("user", MODE_APPEND);
    sped=sp.edit();

}
@SuppressWarnings("deprecation")
public void ShowDialog(View v) {

    showDialog(1);


}
@SuppressWarnings("deprecation")
protected Dialog onCreateDialog(int id)  {

    switch (id) {
    case 1:
        AlertDialog.Builder builder= new AlertDialog.Builder(this);
        builder.setTitle("Did you read the policy?");
        builder.setCancelable(false);
        builder.setMessage("Please wait while we continue");
        builder.setPositiveButton("Accept", new OnClickListener() {

            @Override
            public void onClick(DialogInterface arg0, int arg1) {
                Toast.makeText(getBaseContext(), "You have accepted",
                        Toast.LENGTH_SHORT).show();
            } …
Run Code Online (Sandbox Code Playgroud)

java android

-2
推荐指数
1
解决办法
80
查看次数