alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Android example source code file (main.xml)

This example Android source code file (main.xml) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Android by Example" TM.

Java - Android tags/keywords

checkbox, edittext, radiobutton, radiogroup, tablelayout, tablerow, textview

The main.xml Android example source code

<?xml version="1.0" encoding="utf-8"?>
<TableLayout
android:id="@+id/widget39"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
xmlns:android="http://schemas.android.com/apk/res/android"
>
<TableRow
android:id="@+id/widget40"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20px"
android:layout_marginBottom="20px"
android:orientation="horizontal"
>
<TextView
android:id="@+id/widget38"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10px"
android:layout_marginRight="10px"
android:text="@string/SpriteTitle"
android:layout_gravity="center_vertical"
>
</TextView>
<EditText
android:id="@+id/spriteCount"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="10"
android:textSize="18sp"
>
</EditText>
<CheckBox
android:id="@+id/animateSprites"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/AnimateTitle"
android:layout_gravity="center_vertical"
android:checked="true"
>
</CheckBox>
</TableRow>
<RadioGroup android:id="@+id/renderMethod">
<RadioButton android:id="@+id/methodCanvas" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/CanvasTitle">
<RadioButton android:id="@+id/methodOpenGL" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/OpenGLTitle">
</RadioGroup>

<RadioGroup
android:paddingLeft = "50px"
android:id="@+id/GLSettings">
<RadioButton android:id="@+id/settingVerts" android:layout_width="wrap_content" android:text="@string/UseVertsTitle" android:layout_height="wrap_content">
<RadioButton android:id="@+id/settingDrawTexture" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/UseDrawTextureTitle">
<RadioButton android:id="@+id/settingVBO" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/UseVBOTitle">
</RadioGroup>

<Button
android:id="@+id/runTest"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/RunTestTitle"
>
</Button>

</TableLayout>

Other Android examples (source code examples)

Here is a short list of links related to this Android main.xml source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.