Είμαι δημιουργώντας ένα ανδροειδές αίτηση, είμαι κολλημένος σε ένα σημείο. Θέλω να εμφανίσετε θέσεις όσο παίρνει εμφανίζεται στο facebook χρονοδιάγραμμα. Δημοσίευση μπορούν να έχουν εικόνες ή όχι. Έχω δημιουργήσει μια προβολή της κάρτας για άλλα μετα στοιχεία και είμαι σε θέση να τα εμφανίσετε σε θέσεις. Έχω τις συνδέσεις εικόνας που αποστέλλονται από το διακομιστή για τη θέση εικόνες, τώρα θέλω να κατεβάσετε εικόνες και εμφανίζονται στην συγκεκριμένη θέση που έχει εικόνα σε αυτό. Πως μπορώ να το κάνω? Εάν ο χρήστης έχει 10 θέσεις, μπορεί να υπάρχει εικόνα σε ένα ή δύο. Πώς μπορώ να ελέγξω ποια θέση έχει εικόνα και, στη συνέχεια, να εμφανιστεί η εικόνα στη θέση αυτή μετά τη λήψη του. Κάθε ένας μπορεί παρακαλώ να με βοηθήσει σε αυτό.
Παρακαλώ επιτρέψτε μου να ξέρω αν χρειάζεστε περισσότερες πληροφορίες. Η άποψή μου κάρτα είναι όπως φαίνεται παρακάτω:
<?xml version=1.0 encoding=utf-8?>
<RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android
android:layout_width=match_parent
android:layout_height=match_parent
android:orientation=vertical>
<android.support.v7.widget.CardView
xmlns:card_view=http://schemas.android.com/apk/res-auto
android:id=@+id/card_view
android:layout_gravity=center
android:layout_width=match_parent
android:layout_height=wrap_content
card_view:cardCornerRadius=4dp>
<RelativeLayout
android:layout_width=wrap_content
android:layout_height=wrap_content>
<ImageView
android:id=@+id/imageViewUser
android:layout_width=wrap_content
android:layout_height=wrap_content
android:src=@mipmap/human_image/>
<TextView
android:id=@+id/textViewTitle
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_toRightOf=@+id/imageViewUser
android:layout_toEndOf=@+id/imageViewUser
android:textSize=18sp
android:text=titleText
android:layout_marginLeft=10dp
android:layout_marginStart=10dp/>
<TextView
android:id=@+id/textViewNoOfDays
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_below=@+id/textViewTitle
android:textSize=14sp
android:layout_marginLeft=10dp
android:text=No of Days
android:layout_toRightOf=@+id/imageViewUser
android:layout_alignBottom=@+id/imageViewUser/>
<TextView
android:id=@+id/textViewPostDescription
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_below=@+id/imageViewUser
android:layout_marginTop=20dp
android:text=ABCDE
android:layout_marginLeft=20dp
android:layout_marginStart=20dp/>
<View
android:layout_width=fill_parent
android:layout_height=2dp
android:background=#c0c0c0
android:layout_below=@+id/postImage
android:layout_marginTop=10dp/>
<ImageButton
android:id=@+id/imageButtonPin
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_alignParentRight=true
android:src=@mipmap/ic_pin_grey600_18dp/>
<ImageView
android:id=@+id/postImage
android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_below=@+id/textViewPostDescription
/>
</RelativeLayout>
</android.support.v7.widget.CardView>
</RelativeLayout>













