GridLayout Row Span Column Span
activity_main.xml
<GridLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content" android:columnCount="3" android:rowCount="4" android:layout_margin="15dp" android:background="#DEB887" > <Button android:text="Button 1" /> <Button android:text="Button 2" /> <Button android:text="Button 3" /> <Button android:text="Button 4" /> <Button android:text="Column Span 2" android:layout_columnSpan="2" /> <Button android:text="Button 6" /> <Button android:text="Row Span 2" android:layout_rowSpan="2" /> <Button android:text="Button 8" /> <Button android:text="Button 9" /> <Button android:text="Button 10" /> <Button android:text="Button 11" /> <Button android:text="Button 12" /> <Button android:text="Button 13" /> </GridLayout>
- How to convert Hex color to int color
- How to create a Button with text and image
- How to change Button text color
- How to data bind GridView with ArrayAdapter
- How to use ArrayAdapter with ListView
- CountDownTimer example
- How to convert string to int to string
- How to animate alpha property of a View using ObjectAnimator
- How to set padding in CheckBox
- How to scroll at the bottom of a ListView
Komentar
Posting Komentar