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èmes swipe tab - ANDROID développement

Featured Replies

Posté(e)

Bonjour,

Je suis débutant sous Android et souhaite réaliser une application ou on peut changer de vue en glissant du doigt de droite à gauche.
J'ai suivis plusieurs tutoriels sur Youtube mais j'ai quelques petits soucis.
Pour faire suivre le menu avec le fragment dans lequel on se trouve il faut que je rajoute ça dans onTabSelected: "actionbar.setSelectedNavigationItem(arg0);"

Evidemment ça ne marche pas, voici mon code ci dessous. Je comprends que arg0 n'est pas déclaré dans onTabSelected, mais si je le fait en rajoutant ",int arg0" ça ne marche pas...
 

@@override
public void onTabSelected(android.support.v7.app.ActionBar.Tab tab, android.support.v4.app.FragmentTransaction fragmentTransaction) {
Log.d("myapplication", "onTabSelected at "+" position "+tab.getPosition()+" name "+tab.getText());
actionbar.setSelectedNavigationItem(arg0);
}
 

Si vous des petits conseils à me donner j'en serai reconnaissant !calim2.gif Merci d'avance

Modifié par Timoune007

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.