my code stock.com

XML de nuestra actividad principal

Snippet options

Download: Download snippet as mainxml.xml.
Copy snippet: For this you need a free my code stock.com account.
Embed code : You will find the embed code for this snippet at the end of the page, if you want to embed it into a website or a blog!

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >
<TextView  
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" android:text="@string/tw_mensaje" android:id="@+id/tw_mensaje"/>
<LinearLayout  android:layout_weight="1" android:layout_height="wrap_content" android:id="@+id/linearLayout2" android:layout_width="match_parent">
<com.google.android.maps.MapView
android:id="@+id/map_view"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:enabled="true"
android:clickable="true"
android:apiKey="----------------------------------------------------"
/>    


</LinearLayout>
    <LinearLayout android:layout_height="wrap_content" android:id="@+id/linearLayout1" android:layout_width="match_parent" android:orientation="vertical">
        <Button android:id="@+id/button1" android:layout_height="wrap_content" android:layout_width="match_parent" android:text="@string/mas"></Button>
        <TextView android:layout_height="wrap_content" android:id="@+id/tw_zoom" android:text="TextView" android:layout_width="wrap_content" android:layout_gravity="center"></TextView>
        <Button android:id="@+id/button2" android:layout_height="wrap_content" android:layout_width="match_parent" android:text="@string/menos"></Button>
    </LinearLayout>
</LinearLayout>

Create a free my code stock.com account now.

my code stok.com is a free service, which allows you to save and manage code snippes of any kind and programming language. We provide many advantages for your daily work with code-snippets, also for your teamwork. Give it a try!

Find out more and register now

You can customize the height of iFrame-Codes as needed! You can find more infos in our API Reference for iframe Embeds.