mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-15 15:41:24 +01:00
wrap password query field in layout too so it can have some margins.
This commit is contained in:
parent
e9e8211050
commit
dfc8519c9c
2 changed files with 26 additions and 16 deletions
|
@ -1,13 +1,20 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<EditText xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_marginLeft="20dip"
|
||||
android:layout_marginRight="20dip"
|
||||
android:autoText="false"
|
||||
android:capitalize="none"
|
||||
android:gravity="fill_horizontal"
|
||||
android:password="true"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
/>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<EditText android:id="@+id/edit"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_marginLeft="30dip"
|
||||
android:layout_marginRight="30dip"
|
||||
android:autoText="false"
|
||||
android:capitalize="none"
|
||||
android:gravity="fill_horizontal"
|
||||
android:password="true"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
|
|
@ -39,9 +39,10 @@ import android.app.AlertDialog;
|
|||
import android.app.ProgressDialog;
|
||||
import android.content.DialogInterface;
|
||||
import android.widget.ImageButton;
|
||||
import android.widget.Toast;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.EditText;
|
||||
import android.widget.TextView;
|
||||
import android.widget.Toast;
|
||||
import junit.framework.Assert;
|
||||
import android.content.res.Configuration;
|
||||
import android.content.pm.ActivityInfo;
|
||||
|
@ -83,6 +84,7 @@ public class BoardActivity extends XWActivity
|
|||
|
||||
private String m_dlgBytes = null;
|
||||
private EditText m_passwdEdit = null;
|
||||
private LinearLayout m_passwdLyt = null;
|
||||
private int m_dlgTitle;
|
||||
private String m_dlgTitleStr;
|
||||
private String[] m_texts;
|
||||
|
@ -225,7 +227,7 @@ public class BoardActivity extends XWActivity
|
|||
m_passwdEdit.setText( "", TextView.BufferType.EDITABLE );
|
||||
ab = new AlertDialog.Builder( this )
|
||||
.setTitle( m_dlgTitleStr )
|
||||
.setView( m_passwdEdit )
|
||||
.setView( m_passwdLyt )
|
||||
.setPositiveButton( R.string.button_ok,
|
||||
new DialogInterface.OnClickListener() {
|
||||
public void
|
||||
|
@ -822,9 +824,10 @@ public class BoardActivity extends XWActivity
|
|||
m_dlgTitleStr = String.format( fmt, name );
|
||||
|
||||
if ( null == m_passwdEdit ) {
|
||||
m_passwdEdit =
|
||||
(EditText)Utils.inflate( BoardActivity.this,
|
||||
R.layout.passwd_view );
|
||||
m_passwdLyt =
|
||||
(LinearLayout)Utils.inflate( BoardActivity.this,
|
||||
R.layout.passwd_view );
|
||||
m_passwdEdit = (EditText)m_passwdLyt.findViewById( R.id.edit );
|
||||
}
|
||||
waitBlockingDialog( ASK_PASSWORD_BLK, 0 );
|
||||
|
||||
|
|
Loading…
Reference in a new issue