Mono for Android UI Blueprint: Listing 3.

Designing a TableLayout for Android.

<?xml version="1.0" encoding="utf-8"?>
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:stretchColumns="1">

  <TableRow>
    <TextView
      android:layout_column="1"
      android:text="Open..."
      android:padding="3dip" />
    <TextView
      android:text="Ctrl-O"
      android:gravity="left"
      android:padding="3dip" />
  </TableRow>
  <View
    android:layout_height="2dip"
    android:background="#FF909090" />
  <TableRow>
    <TextView
      android:layout_column="1"
      android:text="Save..."
      android:padding="3dip" />
    <TextView
      android:text="Save As..."
      android:padding="3dip" />
    <TextView
      android:text="Ctrl-S"
      android:gravity="right"
      android:padding="3dip" />
  </TableRow>
</TableLayout>

About the Author

Wallace (Wally) B. McClure has authored books on iPhone programming with Mono/Monotouch, Android programming with Mono for Android, application architecture, ADO.NET, SQL Server and AJAX. He's a Microsoft MVP, an ASPInsider and a partner at Scalable Development Inc. He maintains a blog, and can be followed on Twitter.

comments powered by Disqus

Featured

  • New TypeScript 4.2 Tweaks Include Project Explainer

    Microsoft shipped TypeScript 4.2 -- the regular quarterly update to the open source programming language that improves JavaScript with static types -- with a host of tweaks including a way to explain why files are included in a project.

  • What's Top-Paying .NET Skill, In-Demand Language?

    New tech reports reveal the top-paying .NET skills and most in-demand programming languages in the Microsoft-centric developer landscape.

  • Microsoft's Distributed Application Runtime (Dapr) Debuts for Microservices

    Dapr is now production ready in version 1.0, easing microservices development on-premises, on the edge or in the cloud by abstracting away distributed computing hassles.

  • What's New in EF Core 6.0 Preview 1

    The Entity Framework Core 6 dev team shipped Preview 1 this week, headed toward a debut with the larger, unifying .NET 6 umbrella platform in November.

Upcoming Events