Problème android:id en Kotlin
Dorianopg
Messages postés
24
Statut
Membre
-
BunoCS Messages postés 16550 Statut Modérateur -
BunoCS Messages postés 16550 Statut Modérateur -
Bonjour,
quand je veux attribuer un identifiant à mon vertical Recycler View ça ne marche pas alors que le horizontal recycler view tout à fonctionner. Je met le code ci-dessous.
Le code est en Kotlin mais le site ne le propose pas
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/horizontal_Recycler_view"
android:layout_width="match_parent"
android:layout_height="250dp"
android:orientation="horizontal"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/home_page_recents_projects"
android:layout_marginTop="@dimen/Default_margin"
android:layout_marginLeft="@dimen/Default_margin"
style = "@style/SubTitleTextStyle"/>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/vertical_Recycler_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="@dimen/Default_margin"
android:orientation="vertical"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"/>
</LinearLayout>
A voir également:
- Problème android:id en Kotlin
- Android recovery - Guide
- Begone android - Accueil - Protection
- Presse papier android - Guide
- À quoi sert google drive sur android - Guide
- Android 15 - Accueil - Android