WEB开发网
开发学院手机开发Android 开发 Android Dialog用法总结 阅读

Android Dialog用法总结

 2010-05-31 17:27:00 来源:WEB开发网   
核心提示:android:layout_marginLeft="20dip"android:layout_marginRight="20dip"android:scrollHorizontally="true"android:autoText="false&q

android:layout_marginLeft="20dip"

android:layout_marginRight="20dip"

android:scrollHorizontally="true"

android:autoText="false"

android:capitalize="none"

android:gravity="fill_horizontal"

android:textAppearance="?android:attr/textAppearanceMedium" />

< p>

android:id="@+id/password_view"

android:layout_height="wrap_content"

android:layout_width="wrap_content"

android:layout_marginLeft="20dip"

android:layout_marginRight="20dip"

android:text="Password"

android:gravity="left"

android:textAppearance="?android:attr/textAppearanceMedium" />

< p>

android:id="@+id/password_edit"

android:layout_height="wrap_content"

android:layout_width="fill_parent"

android:layout_marginLeft="20dip"

android:layout_marginRight="20dip"

android:scrollHorizontally="true"

android:autoText="false"

android:capitalize="none"

android:gravity="fill_horizontal"

android:password="true"

android:textAppearance="?android:attr/textAppearanceMedium" />

Step 3: code

package com.zx.te;

import android.app.Activity;

import android.app.AlertDialog;

import android.content.DialogInterface;

import android.os.Bundle;

import android.view.LayoutInflater;

import android.view.View;

import android.view.View.OnClickListener;

import android.widget.Button;

public class TextEntryDialogTest extends Activity {

Button btnTEDlg;

/** Called when the activity is first created. */

@Override

public void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

上一页  1 2 3 4  下一页

Tags:Android Dialog 用法

编辑录入:coldstar [复制链接] [打 印]
赞助商链接