main_activity.xml 2.75 KB
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/RelativeLayout1"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="@color/backgroundmain"
    android:focusable="true"
    android:focusableInTouchMode="true"
    tools:ignore="Deprecated" >

    <ImageButton
        android:id="@+id/button"
        android:layout_width="256dp"
        android:layout_height="256dp"
        android:layout_centerHorizontal="true"
        android:layout_centerVertical="true"
        android:background="@drawable/startbuttontoggle"
        android:contentDescription="@string/startbuttondescription"
        android:focusable="false"
        android:focusableInTouchMode="false"
        android:maxHeight="@dimen/lesize"
        android:maxWidth="@dimen/lesize"
        android:scaleType="fitCenter" />
    
    <TextView
        android:id="@+id/textViewXml"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_centerHorizontal="true"
        android:layout_marginBottom="51dp"
        android:gravity="clip_vertical"
        android:hint="@string/hint"
        android:scrollbarStyle="insideInset"
        android:scrollbars="vertical"
        android:textColorHint="@color/Whyte_POwaH"
        android:textStyle="bold" />

    <TextView
        android:id="@+id/textViewUrl"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignTop="@+id/textViewXml"
        android:layout_centerHorizontal="true"
        android:layout_marginTop="21dp"
        android:textAppearance="?android:attr/textAppearanceSmall" />

    <TextView
        android:id="@+id/textViewAlerta"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignBottom="@+id/imageViewAlerta"
        android:layout_alignTop="@+id/imageViewAlerta"
        android:layout_toRightOf="@+id/imageViewAlerta"
        android:text="@string/alertVitamioNotInstalled"
        android:textColor="@color/Orange"
        android:visibility="invisible" />

    <ImageView
        android:id="@+id/imageViewAlerta"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_above="@+id/button"
        android:layout_alignLeft="@+id/button"
        android:layout_marginBottom="28dp"
        android:layout_marginLeft="17dp"
        android:contentDescription="@string/alertLogoDescription"
        android:src="@android:drawable/ic_dialog_alert"
        android:visibility="invisible" />

</RelativeLayout>