<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:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity"> <LinearLayout android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"> <LinearLayout android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="wrap_content"> <LinearLayout android:orientation="vertical" android:layout_width="464dp" android:layout_height="wrap_content"> <LinearLayout android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="50dp" android:layout_row="0" android:layout_column="1" android:weightSum="1"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textAppearance="?android:attr/textAppearanceMedium" android:text="@string/name" android:id="@+id/textView2" android:layout_gravity="center_vertical" /> <Space android:layout_width="20px" android:layout_height="20px" /> <AutoCompleteTextView android:layout_width="340dp" android:layout_height="wrap_content" android:id="@+id/atxvName" android:imeOptions="actionNext" android:singleLine="true" android:layout_columnSpan="1" android:layout_row="0" android:layout_column="0" android:layout_weight="0.54" /> <ImageButton android:layout_width="30dp" android:layout_height="30dp" android:id="@+id/btnRefresh" android:scaleType="fitXY" android:background="@drawable/ic_menu_refresh" android:onClick="onClick" android:layout_gravity="center_vertical" /> </LinearLayout> <Space android:layout_width="20px" android:layout_height="30px" android:layout_column="1" android:layout_row="2" /> <Button android:text="@string/btn_oneEuro" android:id="@+id/btnOneEuro" android:background="@drawable/btn_blue" style="@style/ButtonText" android:layout_row="3" android:layout_column="1" android:width="10dp" android:onClick="onClick" android:layout_width="300dp"></Button> <Button style="@style/ButtonText" android:text="@string/btn_fiftyCent" android:id="@+id/btnFiftyCent" android:background="@drawable/btn_blue" android:layout_row="4" android:layout_column="1" android:width="10dp" android:layout_width="300dp" android:onClick="onClick" android:layout_height="wrap_content" /> <Space android:layout_width="20px" android:layout_height="230px" /> </LinearLayout> <LinearLayout android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"> <LinearLayout android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="60dp"> <Space android:layout_width="20px" android:layout_height="20px" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textAppearance="?android:attr/textAppearanceMedium" android:text="Guthaben: " android:id="@+id/txtCredit" android:layout_gravity="center_vertical" /> <View android:layout_width="0dp" android:layout_height="0dp" android:layout_weight="1" /> <Button style="@style/ButtonText" android:text="@string/btnLogout" android:id="@+id/btnLogout" android:background="@drawable/btn_red" android:layout_row="3" android:layout_column="1" android:width="10dp" android:layout_width="140dp" android:layout_height="50dp" android:layout_gravity="right" android:onClick="onClick" android:textSize="20dp" /> </LinearLayout> <ListView android:layout_width="wrap_content" android:layout_height="291dp" android:id="@+id/lstOrdered" android:layout_row="2" android:layout_column="12" android:choiceMode="singleChoice" /> <Space android:layout_width="20px" android:layout_height="50px" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:textAppearance="?android:attr/textAppearanceMedium" android:text="@string/sum" android:id="@+id/txtSum" /> <Space android:layout_width="wrap_content" android:layout_height="10dp" /> <Space android:layout_width="20px" android:layout_height="20px" /> </LinearLayout> </LinearLayout> <LinearLayout android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="match_parent"> <Button style="@style/ButtonText" android:text="@string/btnCharge" android:id="@+id/btnCharge" android:background="@drawable/btn_yellow" android:layout_row="40" android:layout_column="1" android:width="10dp" android:layout_width="300dp" android:onClick="onClick" android:layout_height="60dp" /> <Space android:layout_width="200px" android:layout_height="20px" /> <Button style="@style/ButtonText" android:text="@string/btn_pay" android:id="@+id/btnPay" android:background="@drawable/btn_green" android:layout_row="4" android:layout_column="0" android:width="10dp" android:layout_width="355dp" android:onClick="onClick" android:layout_height="wrap_content" /> </LinearLayout> </LinearLayout> </RelativeLayout>