Você está na página 1de 3

<?xml version="1.0" encoding="utf-8"?

>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_main"
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"
android:orientation="vertical"
tools:context="com.babempatdua.tegararisatriak.latihanbab4_2.MainActivity"
android:background="@drawable/abstractback"
android:weightSum="1">
<TextView
android:id="@+id/hasil"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:textColor="#ffffff"
android:text="@string/hello" />
<TableLayout
android:layout_width="match_parent"
android:layout_height="200dp"
android:layout_gravity="center"
android:background="@drawable/crystal">
<TableRow
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center">
<TextView
android:text="@string/biasa"
android:layout_gravity="center"
android:textSize="15dp"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="@dimen/activity_horizontal_margin"
android:layout_marginTop="@dimen/activity_horizontal_margin"
android:id="@+id/textView" />
</TableRow>
<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center">
<RadioButton
android:text="@string/n1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/radioButton1" />
</TableRow>
<TableRow
android:layout_width="match_parent"

android:layout_height="match_parent"
android:gravity="center">
<RadioButton
android:text="@string/n2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/radioButton2" />
</TableRow>
<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center">
<RadioButton
android:text="@string/n3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/radioButton3" />
</TableRow>
<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center">
<ImageButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="200dp"
android:id="@+id/imageButton"
android:background="@android:drawable/btn_star_big_on" />
</TableRow>
</TableLayout>
<TableLayout
android:layout_width="match_parent"
android:layout_height="204dp"
android:layout_gravity="center"
android:background="@drawable/buttonglossyredblack">
<TableRow
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center">
<TextView
android:text="@string/grup"
android:textSize="15dp"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="@dimen/activity_horizontal_margin"
android:layout_marginTop="@dimen/activity_horizontal_margin"
android:id="@+id/textView2" />

</TableRow>
<TableRow
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center">
<RadioGroup
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<RadioButton
android:text="@string/n1"
android:textColor="#ffffff"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/radioButton6"
android:layout_weight="1"
android:onClick="pilihgrp"/>
<RadioButton
android:text="@string/n2"
android:textColor="#ffffff"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/radioButton5"
android:layout_weight="1"
android:onClick="pilihgrp"/>
<RadioButton
android:text="@string/n3"
android:textColor="#ffffff"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/radioButton4"
android:layout_weight="1"
android:onClick="pilihgrp"/>
</RadioGroup>
</TableRow>
</TableLayout>
</LinearLayout>

Você também pode gostar