Jump to content

Probléme Dans le fichier layout.xml dans un projet d'une petite application


AlaEddine Dridii

Recommended Posts

<?xml version="1.0" encoding="utf-8"?>

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"


    android:layout_width="wrap_content"

    android:layout_height="wrap_content"

    android:background="#0099cc"

    tools:context="com.example.sem201.FullscreenActivity" />

    <!--

         The primary full-screen view. This can be replaced with whatever view

         is needed to present your content, e.g. VideoView, SurfaceView,

         TextureView, etc.

    -->

 

    <TextView

        android:id="@+id/fullscreen_content"

        android:layout_width="match_parent"

        android:layout_height="match_parent"

        android:gravity="center"

        android:keepScreenOn="true"

        android:text="@string/dummy_content"

        android:textColor="#33b5e5"

        android:textSize="50sp"

        android:textStyle="bold" />

 

    <!--

         This FrameLayout insets its children based on system windows using

         android:fitsSystemWindows.

    -->

 

    <FrameLayout

        android:layout_width="match_parent"

        android:layout_height="match_parent"

        android:fitsSystemWindows="true" >

 

        <LinearLayout

            android:id="@+id/fullscreen_content_controls"

            style="?metaButtonBarStyle"

            android:layout_width="match_parent"

            android:layout_height="wrap_content"

            android:layout_gravity="bottom|center_horizontal"

            android:background="@color/black_overlay"

            android:orientation="horizontal"

            tools:ignore="UselessParent" >

 

            <Button

                android:id="@+id/dummy_button"

                style="?metaButtonBarButtonStyle"

                android:layout_width="0dp"

                android:layout_height="wrap_content"

                android:layout_weight="1"

                android:text="@string/dummy_button" />

        </LinearLayout>

        <EditText

            android:id="@+id/editText1"

            android:layout_width="match_parent"

            android:layout_height="wrap_content"

            android:ems="10"

            android:inputType="textPersonName" >

 

            <requestFocus />

        </EditText>

        <Button

            android:id="@+id/button1"

            style="?android:attr/buttonStyleSmall"

            android:layout_width="wrap_content"

            android:layout_height="wrap_content" />

 

 

 

 

    </FrameLayout>

 

</FrameLayout>

 

 

je ne c pas , ou est le probleme car le fichier activity.java est juste , ... , moi debutant dans ce domaine

Link to comment
Share on other sites

Bonjour,

 

Si tu ne nous donnes pas plus d'information sur ce que tu veux faire, ce qui ne marche pas, quelles erreurs tu recontres, ... on ne va pas pouvoir t'aider...

Merci

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...