Skip to content
Snippets Groups Projects
Commit ab53be78 authored by darshanxyz's avatar darshanxyz
Browse files

Added 'Approve' and 'Deny' buttons in list_item.xml

parent 825e1f09
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,7 @@ public class TeacherActivity extends AppCompatActivity {
List<String> uid_list = new ArrayList<String>();
HashMap<String, String> uid_map = new HashMap<String, String>();
HashMap<String, String> student_map = new HashMap<String, String>();
ListView listView;
......@@ -132,9 +133,22 @@ public class TeacherActivity extends AppCompatActivity {
// for(DataSnapshot dsp : dataSnapshot.getChildren()){
// if (uid_list.contains(dataSnapshot.getKey())) {
// if (dsp.getKey().toString().equals("RollNumber")) {
// t.setText(dsp.getValue().toString());
//
// }
// }
// }
//Code yet to be decided
// for (int i = 0; i < uid_list.size(); i++) {
// for (DataSnapshot data : dataSnapshot.getChildren()) {
// if (dataSnapshot.getKey().equals(uid_list.get(i))) {
// if (data.getKey().equals("RollNumber")) {
// student_map.put(uid_list.get(i), data.getValue().toString());
// }
// }
// }
//
// }
}
......
......@@ -6,6 +6,33 @@
<TextView
android:id="@+id/listText"
android:layout_width="match_parent"
android:layout_height="100dp" />
android:layout_height="100dp"
/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center"
android:layout_marginBottom="@dimen/activity_vertical_margin">
<Button
android:text="Approve"
android:layout_width="100dp"
android:layout_height="wrap_content"
android:id="@+id/approveButton"
android:background="@android:color/holo_green_light"
style="@style/Widget.AppCompat.Button.Colored" />
<Button
android:text="Deny"
android:layout_width="100dp"
android:layout_height="wrap_content"
android:id="@+id/denyButton"
android:background="@color/colorAccent"
android:layout_marginLeft="@dimen/activity_horizontal_margin"
style="@style/Widget.AppCompat.Button.Colored" />
</LinearLayout>
</LinearLayout>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment