diff --git a/app/src/main/java/app/fedilab/android/drawers/IdentityProofsAdapter.java b/app/src/main/java/app/fedilab/android/drawers/IdentityProofsAdapter.java index 4b741e3bc..521eaf153 100644 --- a/app/src/main/java/app/fedilab/android/drawers/IdentityProofsAdapter.java +++ b/app/src/main/java/app/fedilab/android/drawers/IdentityProofsAdapter.java @@ -18,7 +18,7 @@ import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; -import android.widget.LinearLayout; +import androidx.constraintlayout.widget.ConstraintLayout; import android.widget.TextView; import androidx.annotation.NonNull; import androidx.recyclerview.widget.RecyclerView; @@ -61,11 +61,10 @@ public class IdentityProofsAdapter extends RecyclerView.Adapter { holder.proof_name.setOnClickListener(v -> { Helper.openBrowser(context, identityProof.getProfile_url()); }); - holder.proof_name_network.setText(context.getString(R.string.verified_by, identityProof.getProvider())); + holder.proof_name_network.setText(context.getString(R.string.verified_by, identityProof.getProvider(),Helper.shortDateToString(identityProof.getUpdated_at()))); holder.proof_container.setOnClickListener(v -> { Helper.openBrowser(context, identityProof.getProof_url()); }); - holder.proof_date.setText(Helper.shortDateToString(identityProof.getUpdated_at())); } @Override @@ -79,15 +78,14 @@ public class IdentityProofsAdapter extends RecyclerView.Adapter { } class ViewHolder extends RecyclerView.ViewHolder { - private TextView proof_name, proof_name_network, proof_date; - private LinearLayout proof_container; + private TextView proof_name, proof_name_network; + private ConstraintLayout proof_container; public ViewHolder(@NonNull View itemView) { super(itemView); proof_name = itemView.findViewById(R.id.proof_name); proof_name_network = itemView.findViewById(R.id.proof_name_network); proof_container = itemView.findViewById(R.id.proof_container); - proof_date = itemView.findViewById(R.id.proof_date); } } diff --git a/app/src/main/res/layout/drawer_identity_proofs.xml b/app/src/main/res/layout/drawer_identity_proofs.xml index 8955af3ff..98f333cbb 100644 --- a/app/src/main/res/layout/drawer_identity_proofs.xml +++ b/app/src/main/res/layout/drawer_identity_proofs.xml @@ -14,50 +14,60 @@ You should have received a copy of the GNU General Public License along with Fedilab; if not, see . --> - + android:layout_margin="4dp" + android:background="@drawable/green_border" + android:padding="5dp"> + - - - - - - - + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" /> - - \ No newline at end of file + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index c18c87260..e129d0209 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1210,5 +1210,5 @@ Twitter usernames space separated Identity proofs Verified identity - Verified by %1$s + Verified by %1$s (%2$s) \ No newline at end of file