Merge remote-tracking branch 'origin/master' into niels-profile
This commit is contained in:
@@ -7,12 +7,15 @@ import android.view.View;
|
|||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
import android.widget.AdapterView;
|
import android.widget.AdapterView;
|
||||||
import android.widget.BaseAdapter;
|
import android.widget.BaseAdapter;
|
||||||
|
import android.widget.Button;
|
||||||
import android.widget.ImageButton;
|
import android.widget.ImageButton;
|
||||||
import android.widget.ImageView;
|
import android.widget.ImageView;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
import com.bumptech.glide.Glide;
|
import com.bumptech.glide.Glide;
|
||||||
import com.firebase.ui.storage.images.FirebaseImageLoader;
|
import com.firebase.ui.storage.images.FirebaseImageLoader;
|
||||||
|
import com.google.firebase.auth.FirebaseAuth;
|
||||||
|
import com.google.firebase.auth.FirebaseUser;
|
||||||
import com.google.firebase.storage.FirebaseStorage;
|
import com.google.firebase.storage.FirebaseStorage;
|
||||||
import com.google.firebase.storage.StorageReference;
|
import com.google.firebase.storage.StorageReference;
|
||||||
|
|
||||||
@@ -55,10 +58,11 @@ public class TimeLineAdapter extends BaseAdapter implements AdapterView.OnItemCl
|
|||||||
public View getView(int position, View convertView, ViewGroup parent) {
|
public View getView(int position, View convertView, ViewGroup parent) {
|
||||||
View rowView = mInflater.inflate(R.layout.list_item_timeline, parent, false);
|
View rowView = mInflater.inflate(R.layout.list_item_timeline, parent, false);
|
||||||
|
|
||||||
|
// TextView userName = (TextView) rowView.findViewById(R.id.username_timeline);
|
||||||
TextView comment = (TextView) rowView.findViewById(R.id.comment_timeline);
|
TextView comment = (TextView) rowView.findViewById(R.id.comment_timeline);
|
||||||
TextView nietSlechts = (TextView) rowView.findViewById(R.id.niet_slecht_count);
|
TextView nietSlechts = (TextView) rowView.findViewById(R.id.niet_slecht_count);
|
||||||
ImageView photo = (ImageView) rowView.findViewById(R.id.timeline_image);
|
ImageView photo = (ImageView) rowView.findViewById(R.id.timeline_image);
|
||||||
ImageButton nietSlechtButton = (ImageButton) rowView.findViewById(R.id.niet_slecht_button);
|
Button nietSlechtButton = (Button) rowView.findViewById(R.id.niet_slecht_button);
|
||||||
|
|
||||||
nietSlechtButton.setOnClickListener(new View.OnClickListener() {
|
nietSlechtButton.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
@@ -69,6 +73,7 @@ public class TimeLineAdapter extends BaseAdapter implements AdapterView.OnItemCl
|
|||||||
|
|
||||||
UriPost post = (UriPost) getItem(position);
|
UriPost post = (UriPost) getItem(position);
|
||||||
|
|
||||||
|
// userName.setText();
|
||||||
nietSlechts.setText(Integer.toString(post.getNietSlechts()));
|
nietSlechts.setText(Integer.toString(post.getNietSlechts()));
|
||||||
comment.setText(post.getComment());
|
comment.setText(post.getComment());
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,18 @@
|
|||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<Space
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="15dp" />
|
||||||
|
|
||||||
|
<!--
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/username_timeline"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center"/>
|
||||||
|
-->
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/timeline_image"
|
android:id="@+id/timeline_image"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
@@ -13,28 +25,41 @@
|
|||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/comment_timeline"
|
android:id="@+id/comment_timeline"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center_horizontal"
|
||||||
android:text="Hallo Ik ben een comment!" />
|
android:text="Hallo Ik ben een comment!" />
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="40dp">
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="center_horizontal"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<ImageButton
|
<Button
|
||||||
android:id="@+id/niet_slecht_button"
|
android:id="@+id/niet_slecht_button"
|
||||||
android:layout_width="200dp"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="match_parent" />
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/niet_slecht"/>
|
||||||
|
|
||||||
|
<!--
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:text="@string/niet_slecht" />
|
android:text="@string/niet_slecht" />
|
||||||
|
-->
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/niet_slecht_count"
|
android:id="@+id/niet_slecht_count"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
|
android:gravity="center"
|
||||||
|
android:textSize="20dp"
|
||||||
|
android:padding="10dp"
|
||||||
android:text="10" />
|
android:text="10" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
<Space
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="10dp" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
@@ -30,8 +30,8 @@
|
|||||||
<string name="image_save_error">Foto opslaan mislukt. Zorg a.u.b. dat er genoeg ruimte op uw telefoon beschikbaar is.</string>
|
<string name="image_save_error">Foto opslaan mislukt. Zorg a.u.b. dat er genoeg ruimte op uw telefoon beschikbaar is.</string>
|
||||||
<string name="update_profile_pic_error">Het updaten van de profielfoto is mislukt. Controleer uw internetverbinding.</string>
|
<string name="update_profile_pic_error">Het updaten van de profielfoto is mislukt. Controleer uw internetverbinding.</string>
|
||||||
<string name="upload_profile_pic">Profielfoto aan het uploaden…</string>
|
<string name="upload_profile_pic">Profielfoto aan het uploaden…</string>
|
||||||
<string name="niet_slecht">"\"Niet slecht.\"s "</string>
|
|
||||||
<string name="mail_success">An e-mail was sent, please follow its instructions.</string>
|
<string name="mail_success">An e-mail was sent, please follow its instructions.</string>
|
||||||
|
<string name="niet_slecht">Niet Slecht.</string>
|
||||||
<string name="comment">Bijschrift:</string>
|
<string name="comment">Bijschrift:</string>
|
||||||
<string name="cancel">Annuleer</string>
|
<string name="cancel">Annuleer</string>
|
||||||
</resources>
|
</resources>
|
||||||
@@ -22,7 +22,7 @@
|
|||||||
<string name="profile_picture_description">profile picture</string>
|
<string name="profile_picture_description">profile picture</string>
|
||||||
<string name="change_psw_button">Change Password</string>
|
<string name="change_psw_button">Change Password</string>
|
||||||
<string name="please_wait">Please Wait</string>
|
<string name="please_wait">Please Wait</string>
|
||||||
<string name="niet_slecht">"\"Niet slecht.\"s "</string>
|
<string name="niet_slecht">Niet Slecht.</string>
|
||||||
<string name="upload">Upload</string>
|
<string name="upload">Upload</string>
|
||||||
<string name="save">Save</string>
|
<string name="save">Save</string>
|
||||||
<string name="mail_successful">An e-mail was sent. Please follow its instructions.</string>
|
<string name="mail_successful">An e-mail was sent. Please follow its instructions.</string>
|
||||||
|
|||||||
Reference in New Issue
Block a user