How to displayed information on pop up window from the card view

General Tech Bugs & Fixes 2 years ago

1 1 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 28 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (1)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

 

I am developing an app similar to tinder but this is not dating app.

I am working on the card view function and have encountered some errors I am unable to solve.

Here is the card view function of the app I have successfully coded (for the time being).

The Main layout (top portion of card) contains the profile image and user name. The second is pop up window contains text fields.

Users will see details of other users on the card view.

I have the option to view more information about another user by touching a more information button. When the more information button is selected, pop up window will be animated

The user can go back to the default view, by touching the icon to reduce the 'more information' display.

At the moment, I am facing an issue with the information displayed on pop up window of the card view after a swipe has been performed. The issue is that the text fields in the pop up window need to seamlessly update when a card swipe has been performed and a new user’s card has been displayed.

user information is via firebase real time database

Card view


<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/constraint2"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_gravity="center"
    android:background="@android:color/white"
    android:clipToPadding="false"
    android:outlineProvider="bounds"
    android:paddingLeft="1sp"
    android:paddingTop="1sp"
    android:paddingRight="1sp"
    android:paddingBottom="1sp">

  <android.support.v7.widget.CardView
      android:id="@+id/cw1"
      android:layout_width="match_parent"
      android:layout_height="0dp"
      android:layout_gravity="center"
      android:elevation="0dp"
      app:cardCornerRadius="2dp"
      app:layout_constraintBottom_toBottomOf="parent"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintHorizontal_bias="0.54"
      app:layout_constraintStart_toStartOf="parent"
      app:layout_constraintTop_toTopOf="parent">


    <android.support.constraint.ConstraintLayout

        android:id="@+id/job12"
        android:layout_width="match_parent"

        android:layout_height="match_parent"
        android:animateLayoutChanges="false"
        android:background="@android:color/black"
        android:clickable="false"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintHorizontal_bias="0.0"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintVertical_bias="0.498">

      <ImageView

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.