Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

gridlayout android studio

<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.GridLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:grid="http://schemas.android.com/apk/res-auto"

    android:id="@+id/choice_grid"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:layout_centerHorizontal="true"
    android:padding="4dp"

    grid:alignmentMode="alignBounds"
    grid:columnCount="2"
    grid:rowOrderPreserved="false"
    grid:useDefaultMargins="true">

    <TextView
        android:layout_width="0dp"
        android:layout_height="100dp"
        grid:layout_columnWeight="1"
        grid:layout_gravity="fill_horizontal"
        android:gravity="center"
        android:background="#FF33B5E5"
        android:text="Tile1" />

    <TextView
        android:layout_width="0dp"
        android:layout_height="100dp"
        grid:layout_columnWeight="1"
        grid:layout_gravity="fill_horizontal"
        android:gravity="center"
        android:background="#FF33B5E5"
        android:text="Tile2" />

    <TextView
        android:layout_width="0dp"
        android:layout_height="100dp"
        grid:layout_columnWeight="1"
        grid:layout_gravity="fill_horizontal"
        android:gravity="center"
        android:background="#FF33B5E5"
        android:text="Tile3" />

    <TextView
        android:layout_width="0dp"
        android:layout_height="100dp"
        grid:layout_columnWeight="1"
        grid:layout_gravity="fill_horizontal"
        android:gravity="center"
        android:background="#FF33B5E5"
        android:text="Tile4" />

</android.support.v7.widget.GridLayout>
Comment

PREVIOUS NEXT
Code Example
Java :: java string static arrat 
Java :: react The href attribute is required for an anchor to be keyboard 
Java :: how to change double to int in java 
Java :: java append file 
Java :: enum set in java 
Java :: array input java 
Java :: default argument in java 
Java :: spring swagger 
Java :: java booleans 
Java :: java get length of a string 
Java :: flutter java.lang.RuntimeException: Unable to instantiate activity ComponentInfo 
Java :: parse object to int java 
Java :: worldedit api paste schematic 
Java :: fakultät in java 
Java :: replace regex group() java 
Java :: java swing set icon to JFrame 
Java :: java long to hours minutes and seconds 
Java :: convert two bytes to int java 
Java :: java final meaning 
Java :: compare numbers in array in java 
Java :: java reverse string 
Java :: restart java windows 
Java :: how to get color from a hex string in android studio 
Java :: set view layout params android 
Java :: volley android 
Java :: java String revers 
Java :: java get jar execution directory 
Java :: generate uuid from string 
Java :: writing values in 2d array java 
Java :: java string.format system.currenttimemillis 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =