Aller au contenu
View in the app

A better way to browse. Learn more.

Forum de Frandroid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

Posté(e)
<?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

Rejoignez la conversation

Vous pouvez poster maintenant et vous enregistrez plus tard. Si vous avez un compte, connectez-vous maintenant pour poster.

Invité
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Répondre à ce sujet…

Account

Navigation

Rechercher

Rechercher

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.