Announcement

Collapse
No announcement yet.

Scrollen in android ? Wie geht das ?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Scrollen in android ? Wie geht das ?

    Jo hallo , bin neu hier und habe auch schon auf allen möglichen foren nachgefragt und so aber ich hoffe hier wird man mir schnell und möglichst gut geantwortet ...

    Ich will halt das wenn ich auf meiner app bin und dank meiner Nav bar auf meine "termine" klicke diese sich in dieser Cardview erkennen lassen aber diesen design ding habe ich schon gemacht ... Für mich halt jetzt wichtig was ich machen soll damit ich mehrere Cardviews untereinander mache damit wenn ich runterscrolle diese sich untereinander so sehen ... Habe es mit Scrollviewv schon versucht aber irgendwie klappt es nicht .... Ich hoffe jemand kann mir helfen .. Wenn jemand mehr datein braucht als meine XML datei wo meine Cardviews sind dann schike ich diese gerne hier rein ... Ich danke für jede Antwort im Vorraus ...
    Code :


    Code:
     
     <?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:layout_width="match_parent"                 android:layout_height="match_parent"                 xmlns:app="http://schemas.android.com/apk/res-auto"                 android:background="@color/darkgrey">      <TextView             android:layout_width="wrap_content"             android:layout_height="match_parent"             android:text="Termine"             android:textSize="30sp"             android:textColor="@color/colorAccent"             android:layout_centerHorizontal="true"             android:layout_centerVertical="true"              ></TextView>               <android.support.v7.widget.CardView              android:layout_width="match_parent"             android:layout_height="173dp"             app:cardCornerRadius="8dp"             android:layout_marginTop="80dp"             android:layout_marginLeft="30dp"             android:layout_marginRight="30dp"             >          <Button                 android:text="Mehr infos"                 android:layout_width="120dp"                 android:layout_height="35dp"                 android:id="@+id/button1"                 android:layout_weight="1"                 android:layout_marginTop="130dp"                 android:layout_marginRight="170dp"                  />           <LinearLayout android:layout_height="match_parent"                       android:layout_width="match_parent"                       android:background="@color/maincolor"                  >          </LinearLayout>          <TextView android:layout_height="wrap_content"                   android:layout_width="wrap_content"                   android:textColor="@color/white"                   android:text="HPI - 29.06.19"                   android:textSize="24dp"                 />          <TextView android:layout_height="wrap_content"                   android:layout_width="wrap_content"                   android:textColor="@color/white"                   android:text="Sitzung: H-E.51"                   android:textSize="16dp"                   android:layout_marginTop="40dp"                  />         <TextView android:layout_height="wrap_content"                   android:layout_width="wrap_content"                   android:textColor="@color/white"                   android:text="Juni22, 2019"                   android:textSize="16dp"                   android:layout_marginTop="40dp"                   android:layout_marginRight="20dp"                   android:layout_marginLeft="270dp"                       />             </android.support.v7.widget.CardView>                         </RelativeLayout>


Working...
X