my code stock.com

El código xml para el lay_mail.java. El único recurso drawable es el logo de la compañia

Snippet options

Download: Download snippet as lay_mailxml.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" android:gravity="center_vertical">
    <LinearLayout android:layout_weight="1" android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/linearLayout4" android:orientation="vertical" android:gravity="center_vertical">
        <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:id="@+id/linearLayout6" android:gravity="center_vertical|center" android:paddingTop="10sp" android:orientation="horizontal">
            <ImageView android:src="@drawable/logo_company_chico" android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/imageView1"></ImageView>
            <TextView android:textSize="30sp" android:textStyle="bold" android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/txt_contacto"></TextView>
        </LinearLayout>
        <LinearLayout android:paddingBottom="10sp" android:orientation="vertical" android:layout_width="match_parent" android:paddingLeft="20sp" android:gravity="center_vertical" android:layout_height="wrap_content" android:paddingRight="20sp" android:id="@+id/linearLayout1" android:paddingTop="10sp">
            <EditText android:id="@+id/edit_cuerpoMail" android:layout_width="match_parent" android:layout_height="wrap_content" android:lines="8"></EditText>
            <LinearLayout android:layout_width="match_parent" android:paddingTop="10sp" android:layout_height="wrap_content" android:id="@+id/linearLayout2" android:gravity="center_vertical">
                <Button android:layout_width="match_parent" android:id="@+id/btn_send" android:layout_height="wrap_content" android:text="@string/btn_enviar"></Button>
            </LinearLayout>
        </LinearLayout>
    </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.