Não tem scroll pra fazer: o conteúdo tem tamanho igual ao da ScrollView.
Meu amigo, pode me ajudar em mais uma coisinha?
Fiz assim mas não ta rolando a tela, o que pode estar errado?
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android"
>
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:padding="6dip" >
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:textSize="20dp"
android:textStyle="bold"
android:text="Razão Social / Nome:" />
<EditText
android:id="@+id/edtRazao_Nome"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/textView1"
android:layout_below="@+id/textView1"
android:hint="Razão Social"
android:ems="10" >
<requestFocus />
</EditText>
<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/edtRazao_Nome"
android:layout_below="@+id/edtRazao_Nome"
android:text="Nome Fantasia:" />
<EditText
android:id="@+id/edtNomeFantasia"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/textView2"
android:layout_below="@+id/textView2"
android:hint="Nome Fantasia"
android:ems="10" />
<TextView
android:id="@+id/textView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/edtNomeFantasia"
android:layout_below="@+id/edtNomeFantasia"
android:text="CNPJ/CPF:" />
<EditText
android:id="@+id/edtCNPJ_CPF"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/textView3"
android:hint="CNPJ / CPF"
android:ems="10" />
<TextView
android:id="@+id/textView4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/edtNomeFantasia"
android:layout_marginLeft="24dp"
android:layout_toRightOf="@+id/edtCNPJ_CPF"
android:text="Inscrição Estadual:" />
<EditText
android:id="@+id/edtIE"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBaseline="@+id/edtCNPJ_CPF"
android:layout_alignBottom="@+id/edtCNPJ_CPF"
android:layout_alignLeft="@+id/textView4"
android:hint="Inscrição Estadual"
android:ems="10" />
<TextView
android:id="@+id/textView6"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/edtCNPJ_CPF"
android:layout_below="@+id/edtCNPJ_CPF"
android:text="E-mail:" />
<EditText
android:id="@+id/edtEmail"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/textView6"
android:layout_below="@+id/textView6"
android:hint="E-mail"
android:ems="10"
android:inputType="textEmailAddress" />
<TextView
android:id="@+id/textView5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/edtIE"
android:layout_marginLeft="45dp"
android:layout_toRightOf="@+id/edtIE"
android:text="Nome do Contato:" />
<EditText
android:id="@+id/edtNomeContato"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignBaseline="@+id/edtIE"
android:layout_alignBottom="@+id/edtIE"
android:layout_alignLeft="@+id/textView5"
android:hint="Nome do Contato"
android:ems="10" />
<TextView
android:id="@+id/textView7"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/edtEmail"
android:layout_below="@+id/edtEmail"
android:text="Endereço:" />
<EditText
android:id="@+id/edtEndereco"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/textView7"
android:layout_alignRight="@+id/edtEmail"
android:layout_below="@+id/textView7"
android:hint="Endereço"
android:ems="10"/>
<TextView
android:id="@+id/textView8"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/edtEndereco"
android:layout_below="@+id/edtEndereco"
android:text="Bairro:" />
<EditText
android:id="@+id/edtBairro"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/textView8"
android:layout_below="@+id/textView8"
android:layout_toLeftOf="@+id/textView5"
android:hint="Bairro"
android:ems="10"/>
<TextView
android:id="@+id/textView9"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/edtNomeContato"
android:layout_below="@+id/edtEndereco"
android:text="CEP:" />
<EditText
android:id="@+id/edtCEP"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBaseline="@+id/edtBairro"
android:layout_alignBottom="@+id/edtBairro"
android:layout_alignLeft="@+id/textView9"
android:hint="CEP"
android:ems="10" />
<TextView
android:id="@+id/textView10"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/edtCEP"
android:layout_marginLeft="30dp"
android:layout_toRightOf="@+id/edtCEP"
android:text="Cidade:" />
<EditText
android:id="@+id/editText1"
android:layout_width="wrap_content"
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.






0 comentários:
Postar um comentário