Felipe, n funfou cara :/ isso é muito bizarro bicho......n faz sentido!!!!
Em segunda-feira, 8 de julho de 2013 11h00min02s UTC-3, Felipe Aron escreveu:
--Colocando "gravity=center" para os controles - Button e EditText também não funciona?Eu utilizo sempre Relative e Linear layout. Não cheguei a ter problemas desse tipo.Em 8 de julho de 2013 10:53, Rudson Lima <rudso...@gmail.com> escreveu:
Troca o"dip" por "dp"
Em 8 de julho de 2013 10:50, Daniel Lima <danielhen...@gmail.com> escreveu:
Fala Felipe!!!Obrigado pela dica, mas não funcionou.... :/
Em segunda-feira, 8 de julho de 2013 10h45min10s UTC-3, Felipe Aron escreveu:Coloque "android:gravity=center" para o seu LinearLayout.Em 8 de julho de 2013 10:40, Daniel Lima <danielhen...@gmail.com> escreveu:
Alguém poderia me explicar o que pode ser este comportamento abaixo?
O xml abaixo, gera dois layouts distintos dependendo da API. Na API 17, exibe normalmente, ou seja, os campos de login centralizados. Na API10, o mesmo xml exibe os campos no canto superior esquerdo.
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.
android.com/apk/res/android "android:layout_width="match_pa
rent" android:layout_height="match_p
arent" android:background="#005500">
<LinearLayout
android:layout_width="match_pa
rent" android:layout_height="wrap_co
ntent" android:layout_marginLeft="15d
ip" android:layout_marginRight="15
dip" android:layout_marginTop="200d
ip" android:orientation="vertical" >
<EditText
android:id="@+id/et_nome_login
" android:layout_width="match_pa
rent" android:layout_height="40dip"
android:paddingRight="15dip"
android:paddingLeft="15dip"
android:inputType="text"
android:nextFocusDown="@+id/et
_senha_login" android:background="@drawable/
bg_login_name" />
<EditText
android:id="@+id/et_senha_logi
n" android:layout_width="match_pa
rent" android:layout_height="40dip"
android:paddingRight="15dip"
android:paddingLeft="15dip"
android:inputType="textPasswor
d" android:background="@drawable/
bg_login_senha" />
<ImageButton
android:id="@+id/ib_login"
android:layout_width="match_pa
rent" android:layout_height="50dip"
android:layout_marginTop="20di
p" android:background="@drawable/
btn_entrar" />
</LinearLayout>
<FrameLayout
android:id="@+id/progress_logi
n" android:layout_width="match_pa
rent" android:layout_height="match_p
arent" android:background="#AA000000"
android:clickable="true"
android:focusable="true"
android:focusableInTouchMode="
true" android:visibility="gone" >
<ProgressBar
android:layout_width="50dp"
android:layout_height="50dp"
android:focusable="true"
android:focusableInTouchMode="
true" android:layout_gravity="center
" /></FrameLayout>
</FrameLayout>
Vejam as imagens com os comportamentos registrados.
Desde já agradeço muitíssimo!!!!!!To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-...@googlegroups--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group..com .--
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-...@googlegroups.com .
For more options, visit https://groups.google.com/groups/opt_out .
--
--
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-...@googlegroups.com .
For more options, visit https://groups.google.com/groups/opt_out .
--Analista-Programador
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