Fórum Layout com botões estilo Windows 8 #447708
03/07/2013
0
Frederico Brigatte***
Curtir tópico
+ 0Posts
03/07/2013
Frederico Brigatte***
Gostei + 0
03/07/2013
Frederico Brigatte***
Gostei + 0
03/07/2013
Frederico Brigatte***
Gostei + 0
03/07/2013
Frederico Brigatte***
Gostei + 0
03/07/2013
Joel Rodrigues
03/07/2013 - 11:09 03/07/2013 - 12:04 03/07/2013 - 12:39 03/07/2013 - 12:58 03/07/2013 - 13:25
De 11:09 até 13:25 você postou 5 vezes no mesmo tópico perguntando se ninguém poderia lhe ajudar.
Gostei + 0
03/07/2013
Joel Rodrigues
Gostei + 0
03/07/2013
Frederico Brigatte***
Gostei + 0
03/07/2013
Frederico Brigatte***
Gostei + 0
03/07/2013
Frederico Brigatte***
Gostei + 0
03/07/2013
Joel Rodrigues
No meu post é feito em HTML, não sei se dá para aproveitar. Mas a ideia certamente se aproveita.
Gostei + 0
03/07/2013
Frederico Brigatte***
Gostei + 0
03/07/2013
Joel Rodrigues
Gostei + 0
03/07/2013
Frederico Brigatte***
O gridView tem uma propriedade chamada numColumns, esta define a número máximo de colunas que o grid terá.
Ex: Na primeira linha, quando for preenchido 3 colunas o 4º item será autimaticamente posicionado na segunda linha e primeira coluna.
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<ScrollView //ScrollView = scroll vertical = Windows phone, HorizontalScrollView = scroll horizontal = Windows 8
android:id="@+id/scrollView1"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:layout_gravity="center_vertical">
<GridView
android:id="@+id/gridView1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:numColumns="3" >
</GridView>
</LinearLayout>
</ScrollView>
</RelativeLayout>
<GridView
android:id="@+id/gridView1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:numColumns="3" > // <<<<
Gostei + 0
03/07/2013
Frederico Brigatte***
Gostei + 0
03/07/2013
Frederico Brigatte***
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)