Android GridLayout orientation acting like vertical -


i did dive android designing not long ago , can't understand, why gridlayout orientation acting vertical one, stating horizontal.(clicking next brings me editfield below selected, instead of right one). can explain i'm missing here?

<?xml version="1.0" encoding="utf-8"?>  <relativelayout xmlns:android="http://schemas.android.com/apk/res/android"      xmlns:tools="http://schemas.android.com/tools"      android:layout_width="match_parent"      android:layout_height="match_parent"      android:paddingbottom="@dimen/activity_vertical_margin"      android:paddingleft="@dimen/activity_horizontal_margin"      android:paddingright="@dimen/activity_horizontal_margin"      android:paddingtop="@dimen/activity_vertical_margin"      tools:context="tiskevicius.armandas.myapplication.mainactivity"      tools:showin="@layout/activity_main"      android:background="@drawable/ss"      style="@style/apptheme"      android:theme="@style/apptheme"      android:touchscreenblocksfocus="false">        <gridlayout          android:layout_width="match_parent"          android:layout_height="match_parent"          android:columncount="7"          android:rowcount="8"          android:background="#aa181818"          android:orientation="horizontal">            <edittext              android:inputtype="numberdecimal"              android:ems="3"              android:id="@+id/edittext2"              android:layout_row="0"              android:layout_column="0"              android:editable="false"              android:backgroundtint="#21a9e8"              android:autotext="false"              android:drawabletint="#aa1e1e"              style="@style/base.textappearance.appcompat.title"              android:focusable="true"              android:foregroundtint="#e50e0e"              android:shadowcolor="#ffffff"              android:text="0,0"              android:textalignment="center"              android:textcolor="#21a9e8"              android:textcolorhighlight="#e142c4"              android:textstyle="bold"              android:textisselectable="false" />            <edittext              style="@style/base.textappearance.appcompat.title"              android:inputtype="numberdecimal"              android:ems="3"              android:id="@+id/edittext5"              android:layout_row="0"              android:layout_column="1"              android:editable="false"              android:backgroundtint="#21a9e8"              android:autotext="false"              android:drawabletint="#aa1e1e"              android:focusable="true"              android:foregroundtint="#e50e0e"              android:shadowcolor="#ffffff"              android:text="0,1"              android:textalignment="center"              android:textcolor="#21a9e8"              android:textcolorhighlight="#e142c4"              android:textstyle="bold"              android:textisselectable="false" />            <edittext              android:inputtype="numberdecimal"              android:ems="3"              android:id="@+id/edittext3"              android:layout_row="1"              android:layout_column="1"              android:backgroundtint="#21a9e8"              android:autotext="false"              android:drawabletint="#aa1e1e"              style="@style/base.textappearance.appcompat.title"              android:focusable="true"              android:foregroundtint="#e50e0e"              android:shadowcolor="#ffffff"              android:text="1,1"              android:textalignment="center"              android:textcolor="#21a9e8"              android:textcolorhighlight="#e142c4"              android:textstyle="bold" />            <edittext              android:inputtype="numberdecimal"              android:ems="3"              android:id="@+id/edittext4"              android:layout_row="1"              android:layout_column="2"              android:editable="false"              android:backgroundtint="#21a9e8"              android:autotext="false"              android:drawabletint="#aa1e1e"              style="@style/base.textappearance.appcompat.title"              android:focusable="true"              android:foregroundtint="#e50e0e"              android:shadowcolor="#ffffff"              android:text="1,2"              android:textalignment="center"              android:textcolor="#21a9e8"              android:textcolorhighlight="#e142c4"              android:textstyle="bold" />            <edittext              style="@style/base.textappearance.appcompat.title"              android:inputtype="numberdecimal"              android:ems="3"              android:id="@+id/edittext"              android:layout_row="1"              android:layout_column="0"              android:editable="false"              android:backgroundtint="#21a9e8"              android:autotext="false"              android:drawabletint="#aa1e1e"              android:focusable="true"              android:foregroundtint="#e50e0e"              android:shadowcolor="#ffffff"              android:text="1,0"              android:textalignment="center"              android:textcolor="#21a9e8"              android:textcolorhighlight="#e142c4"              android:textstyle="bold"              android:textisselectable="false" />            <edittext              style="@style/base.textappearance.appcompat.title"              android:inputtype="numberdecimal"              android:ems="3"              android:id="@+id/edittext8"              android:layout_row="0"              android:layout_column="2"              android:editable="false"              android:backgroundtint="#21a9e8"              android:autotext="false"              android:drawabletint="#aa1e1e"              android:focusable="true"              android:foregroundtint="#e50e0e"              android:shadowcolor="#ffffff"              android:text="0,2"              android:textalignment="center"              android:textcolor="#21a9e8"              android:textcolorhighlight="#e142c4"              android:textstyle="bold"              android:textisselectable="false" />            <edittext              android:inputtype="numberdecimal"              android:ems="3"              android:id="@+id/edittext6"              android:layout_row="0"              android:layout_column="3"              android:editable="false"              android:backgroundtint="#21a9e8"              android:autotext="false"              android:drawabletint="#aa1e1e"              style="@style/base.textappearance.appcompat.title"              android:focusable="true"              android:foregroundtint="#e50e0e"              android:shadowcolor="#ffffff"              android:text="0,3"              android:textalignment="center"              android:textcolor="#21a9e8"              android:textcolorhighlight="#e142c4"              android:textstyle="bold" />            <edittext              android:inputtype="numberdecimal"              android:ems="3"              android:id="@+id/edittext7"              android:layout_row="2"              android:layout_column="0"              android:editable="false"              android:backgroundtint="#21a9e8"              android:autotext="false"              android:drawabletint="#aa1e1e"              style="@style/base.textappearance.appcompat.title"              android:focusable="true"              android:foregroundtint="#21a9e8"              android:shadowcolor="#ffffff"              android:text="2,0"              android:textalignment="center"              android:textcolor="#21a9e8"              android:textcolorhighlight="#e142c4"              android:textstyle="bold" />            <edittext              style="@style/base.textappearance.appcompat.title"              android:inputtype="numberdecimal"              android:ems="3"              android:id="@+id/edittext9"              android:layout_row="2"              android:layout_column="1"              android:editable="false"              android:backgroundtint="#21a9e8"              android:autotext="false"              android:drawabletint="#aa1e1e"              android:focusable="true"              android:foregroundtint="#e50e0e"              android:shadowcolor="#ffffff"              android:text="2,1"              android:textalignment="center"              android:textcolor="#21a9e8"              android:textcolorhighlight="#e142c4"              android:textstyle="bold"              android:textisselectable="false" />            <edittext              style="@style/base.textappearance.appcompat.title"              android:inputtype="numberdecimal"              android:ems="3"              android:id="@+id/edittext10"              android:layout_row="2"              android:layout_column="3"              android:editable="false"              android:backgroundtint="#21a9e8"              android:autotext="false"              android:drawabletint="#aa1e1e"              android:focusable="true"              android:foregroundtint="#e50e0e"              android:shadowcolor="#ffffff"              android:text="2,3"              android:textalignment="center"              android:textcolor="#21a9e8"              android:textcolorhighlight="#e142c4"              android:textstyle="bold"              android:textisselectable="false" />        </gridlayout>    </relativelayout>


Comments