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

Loads of improvements. Finally functional!

parent d562a099
Branches
No related tags found
No related merge requests found
...@@ -7,11 +7,14 @@ import android.content.Context; ...@@ -7,11 +7,14 @@ import android.content.Context;
import android.graphics.Typeface; import android.graphics.Typeface;
import android.support.annotation.NonNull; import android.support.annotation.NonNull;
import android.support.annotation.Nullable; import android.support.annotation.Nullable;
import android.util.Log;
import android.view.LayoutInflater; import android.view.LayoutInflater;
import android.view.View; import android.view.View;
import android.view.ViewGroup; import android.view.ViewGroup;
import android.widget.ArrayAdapter; import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.TextView; import android.widget.TextView;
import android.widget.Toast;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
...@@ -20,7 +23,7 @@ public class CustomListAdapter extends ArrayAdapter { ...@@ -20,7 +23,7 @@ public class CustomListAdapter extends ArrayAdapter {
static class DataHandler { static class DataHandler {
TextView tv; TextView tv, tv1;
} }
List list = new ArrayList(); List list = new ArrayList();
...@@ -34,6 +37,12 @@ public class CustomListAdapter extends ArrayAdapter { ...@@ -34,6 +37,12 @@ public class CustomListAdapter extends ArrayAdapter {
list.add(object); list.add(object);
} }
@Override
public void remove(Object object) {
super.remove(object);
list.remove(object);
}
@Override @Override
public int getCount() { public int getCount() {
return this.list.size(); return this.list.size();
...@@ -50,12 +59,13 @@ public class CustomListAdapter extends ArrayAdapter { ...@@ -50,12 +59,13 @@ public class CustomListAdapter extends ArrayAdapter {
public View getView(int position, View convertView, ViewGroup parent) { public View getView(int position, View convertView, ViewGroup parent) {
View row; View row;
row = convertView; row = convertView;
DataHandler handler; final DataHandler handler;
if (convertView == null) { if (convertView == null) {
LayoutInflater inflater = (LayoutInflater) this.getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE); LayoutInflater inflater = (LayoutInflater) this.getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
row = inflater.inflate(R.layout.list_item, parent, false); row = inflater.inflate(R.layout.list_item, parent, false);
handler = new DataHandler(); handler = new DataHandler();
handler.tv = (TextView)row.findViewById(R.id.listText); handler.tv = (TextView)row.findViewById(R.id.listText);
handler.tv1 = (TextView)row.findViewById(R.id.listTextEmail);
row.setTag(handler); row.setTag(handler);
} }
else { else {
...@@ -64,9 +74,10 @@ public class CustomListAdapter extends ArrayAdapter { ...@@ -64,9 +74,10 @@ public class CustomListAdapter extends ArrayAdapter {
// Typeface one = Typeface.createFromAsset(parent.getContext().getAssets(), "fonts/BebasNeue Bold.ttf"); // Typeface one = Typeface.createFromAsset(parent.getContext().getAssets(), "fonts/BebasNeue Bold.ttf");
DataProvider provider = (DataProvider) this.getItem(position); DataProvider provider = (DataProvider) this.getItem(position);
handler.tv.setText(provider.getDetector()); handler.tv.setText(provider.getRollno());
handler.tv1.setText(provider.getReason());
// handler.tv.setTypeface(one); // handler.tv.setTypeface(one);
handler.tv.setTextSize(30); handler.tv.setTextSize(20);
return row; return row;
} }
} }
...@@ -5,17 +5,53 @@ package com.darshanbshah.odsystem; ...@@ -5,17 +5,53 @@ package com.darshanbshah.odsystem;
*/ */
public class DataProvider { public class DataProvider {
private String detector; private String key, rollno, reason, from, to;
public DataProvider(String detector) { public DataProvider(String key, String rollno, String reason, String from, String to) {
this.setDetector(detector); this.rollno = rollno;
this.reason = reason;
this.from = from;
this.to = to;
this.key = key;
} }
public String getDetector() { public String getKey() {
return detector; return key;
} }
public void setDetector(String detector) { public void setKey(String key) {
this.detector = detector; this.key = key;
}
public String getRollno() {
return rollno;
}
public void setRollno(String rollno) {
this.rollno = rollno;
}
public String getReason() {
return reason;
}
public void setReason(String reason) {
this.reason = reason;
}
public String getFrom() {
return from;
}
public void setFrom(String from) {
this.from = from;
}
public String getTo() {
return to;
}
public void setTo(String to) {
this.to = to;
} }
} }
\ No newline at end of file
...@@ -242,11 +242,6 @@ public class MainActivity extends AppCompatActivity { ...@@ -242,11 +242,6 @@ public class MainActivity extends AppCompatActivity {
} }
final String str = adv_details.get(list1.get(0)); final String str = adv_details.get(list1.get(0));
od.addChildEventListener(new ChildEventListener() {
@Override
public void onChildAdded(DataSnapshot dataSnapshot, String s) {
for(DataSnapshot dsp : dataSnapshot.getChildren()){
Log.e("DSP_KEY", dsp.getValue().toString());
od_flag = od.child(str).child(mAuth.getCurrentUser().getUid()).child("flag"); od_flag = od.child(str).child(mAuth.getCurrentUser().getUid()).child("flag");
od_from = od.child(str).child(mAuth.getCurrentUser().getUid()).child("from"); od_from = od.child(str).child(mAuth.getCurrentUser().getUid()).child("from");
od_to = od.child(str).child(mAuth.getCurrentUser().getUid()).child("to"); od_to = od.child(str).child(mAuth.getCurrentUser().getUid()).child("to");
...@@ -258,34 +253,11 @@ public class MainActivity extends AppCompatActivity { ...@@ -258,34 +253,11 @@ public class MainActivity extends AppCompatActivity {
od_to.setValue(toDate); od_to.setValue(toDate);
od_reason.setValue(reasonString); od_reason.setValue(reasonString);
od_full_day.setValue(full); od_full_day.setValue(full);
}
reason.setText(""); reason.setText("");
from.setText(""); from.setText("");
to.setText(""); to.setText("");
}
@Override
public void onChildChanged(DataSnapshot dataSnapshot, String s) {
}
@Override
public void onChildRemoved(DataSnapshot dataSnapshot) {
}
@Override
public void onChildMoved(DataSnapshot dataSnapshot, String s) {
}
@Override
public void onCancelled(DatabaseError databaseError) {
}
});
// recepient = list1.get(0); // recepient = list1.get(0);
// //
// Intent intent = new Intent(Intent.ACTION_SEND); // Intent intent = new Intent(Intent.ACTION_SEND);
......
...@@ -18,6 +18,7 @@ import android.widget.TextView; ...@@ -18,6 +18,7 @@ import android.widget.TextView;
import android.widget.Toast; import android.widget.Toast;
import com.google.firebase.auth.FirebaseAuth; import com.google.firebase.auth.FirebaseAuth;
import com.google.firebase.auth.FirebaseUser;
import com.google.firebase.database.ChildEventListener; import com.google.firebase.database.ChildEventListener;
import com.google.firebase.database.DataSnapshot; import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError; import com.google.firebase.database.DatabaseError;
...@@ -54,10 +55,11 @@ public class RollNumber extends AppCompatActivity implements AdapterView.OnItemS ...@@ -54,10 +55,11 @@ public class RollNumber extends AppCompatActivity implements AdapterView.OnItemS
@Override @Override
protected void onCreate(Bundle savedInstanceState) { protected void onCreate(Bundle savedInstanceState) {
FirebaseUser user = mAuth.getCurrentUser();
root = database.getReference(); root = database.getReference();
student = root.child("Student"); student = root.child("Student");
adv = root.child("Advisors"); adv = root.child("Advisors");
id = student.child(mAuth.getCurrentUser().getUid()); id = student.child(user.getUid());
roll_no = id.child("RollNumber"); roll_no = id.child("RollNumber");
email = id.child("Email"); email = id.child("Email");
advisor = id.child("Advisor"); advisor = id.child("Advisor");
...@@ -92,14 +94,11 @@ public class RollNumber extends AppCompatActivity implements AdapterView.OnItemS ...@@ -92,14 +94,11 @@ public class RollNumber extends AppCompatActivity implements AdapterView.OnItemS
advisors.setOnItemSelectedListener(this); advisors.setOnItemSelectedListener(this);
adv.addChildEventListener(new ChildEventListener() { adv.addChildEventListener(new ChildEventListener() {
int i = 0;
@Override @Override
public void onChildAdded(DataSnapshot dataSnapshot, String s) { public void onChildAdded(DataSnapshot dataSnapshot, String s) {
for(DataSnapshot dsp : dataSnapshot.getChildren()){ for(DataSnapshot dsp : dataSnapshot.getChildren()){
lst.add(String.valueOf(dsp.getValue())); lst.add(String.valueOf(dsp.getValue()));
Log.e("EMAILS: ", String.valueOf(dsp.getValue())); Log.e("EMAILS: ", String.valueOf(dsp.getValue()));
// adv_map.put(String.valueOf(dsp.getValue()), list.get(1));
// ++i;
} }
} }
...@@ -123,7 +122,6 @@ public class RollNumber extends AppCompatActivity implements AdapterView.OnItemS ...@@ -123,7 +122,6 @@ public class RollNumber extends AppCompatActivity implements AdapterView.OnItemS
} }
}); });
Log.e("LSTSIZE", String.valueOf(lst.size()));
// SharedPreferences preferences = getSharedPreferences("ActivityPREF", Context.MODE_PRIVATE); // SharedPreferences preferences = getSharedPreferences("ActivityPREF", Context.MODE_PRIVATE);
// //
...@@ -141,7 +139,6 @@ public class RollNumber extends AppCompatActivity implements AdapterView.OnItemS ...@@ -141,7 +139,6 @@ public class RollNumber extends AppCompatActivity implements AdapterView.OnItemS
} }
@Override @Override
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
TextView textView = (TextView)view; TextView textView = (TextView)view;
...@@ -166,6 +163,7 @@ public class RollNumber extends AppCompatActivity implements AdapterView.OnItemS ...@@ -166,6 +163,7 @@ public class RollNumber extends AppCompatActivity implements AdapterView.OnItemS
Toast.makeText(this, "Enter Roll Number", Toast.LENGTH_SHORT).show(); Toast.makeText(this, "Enter Roll Number", Toast.LENGTH_SHORT).show();
} }
else { else {
Log.e("LST_SIZE", String.valueOf(lst.size()));
for (String email : lst) { for (String email : lst) {
if (email.equals(mAuth.getCurrentUser().getEmail())) { if (email.equals(mAuth.getCurrentUser().getEmail())) {
startActivity(new Intent(this, TeacherActivity.class)); startActivity(new Intent(this, TeacherActivity.class));
......
package com.darshanbshah.odsystem; package com.darshanbshah.odsystem;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent; import android.content.Intent;
import android.support.v7.app.AppCompatActivity; import android.support.v7.app.AppCompatActivity;
import android.os.Bundle; import android.os.Bundle;
import android.util.Log; import android.util.Log;
import android.view.View; import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView; import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast; import android.widget.Toast;
import com.google.firebase.auth.FirebaseAuth; import com.google.firebase.auth.FirebaseAuth;
...@@ -15,31 +17,51 @@ import com.google.firebase.database.DataSnapshot; ...@@ -15,31 +17,51 @@ import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError; import com.google.firebase.database.DatabaseError;
import com.google.firebase.database.DatabaseReference; import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase; import com.google.firebase.database.FirebaseDatabase;
import com.google.firebase.database.ValueEventListener;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.Hashtable;
import java.util.List; import java.util.List;
public class TeacherActivity extends AppCompatActivity { public class TeacherActivity extends AppCompatActivity {
class ODTable {
String flag, reason, from, to, fullday;
public ODTable(String flag, String reason, String from, String to, String fullday) {
this.flag = flag;
this.reason = reason;
this.from = from;
this.to = to;
this.fullday = fullday;
}
}
ODTable table;
int i = 0;
AlertDialog.Builder builder;
DataProvider itemValue;
FirebaseAuth mAuth; FirebaseAuth mAuth;
FirebaseDatabase database = FirebaseDatabase.getInstance(); FirebaseDatabase database = FirebaseDatabase.getInstance();
DatabaseReference root; DatabaseReference root;
DatabaseReference od;
DatabaseReference adv; DatabaseReference adv;
DatabaseReference student; DatabaseReference student;
DatabaseReference od, od_flag, od_student;
String message = "";
List<String> uid_list = new ArrayList<String>(); List<String> uid_list = new ArrayList<String>();
HashMap<String, String> uid_map = new HashMap<String, String>(); HashMap<String, String> uid_map = new HashMap<String, String>();
HashMap<String, String> student_map = new HashMap<String, String>(); HashMap<String, String> student_map = new HashMap<String, String>();
Hashtable<String, ODTable> odtable = new Hashtable<String, ODTable>();
ListView listView; ListView listView;
CustomListAdapter adapter; CustomListAdapter adapter;
String adv_name, key, value, uid = "";
List<String> roll = new ArrayList<String>();
List<String> random = new ArrayList<String>();
List<DatabaseReference> od_student_list = new ArrayList<DatabaseReference>();
String adv_name; String flag = "", reason = "", from = "", to = "", fullday = "";
@Override @Override
protected void onCreate(Bundle savedInstanceState) { protected void onCreate(Bundle savedInstanceState) {
...@@ -52,14 +74,48 @@ public class TeacherActivity extends AppCompatActivity { ...@@ -52,14 +74,48 @@ public class TeacherActivity extends AppCompatActivity {
student = root.child("Student"); student = root.child("Student");
listView = (ListView)findViewById(R.id.listView); listView = (ListView)findViewById(R.id.listView);
student.addChildEventListener(new ChildEventListener() {
@Override
public void onChildAdded(DataSnapshot dataSnapshot, String s) {
for (DataSnapshot data : dataSnapshot.getChildren()) {
uid = dataSnapshot.getKey();
if (data.getKey().toString().equals("RollNumber")) {
Log.e("MAPVAL", data.getValue().toString());
roll.add(data.getValue().toString());
}
}
for (int a = 0; a < roll.size(); a++) {
uid_map.put(uid, roll.get(a));
}
}
@Override
public void onChildChanged(DataSnapshot dataSnapshot, String s) {
}
@Override
public void onChildRemoved(DataSnapshot dataSnapshot) {
}
@Override
public void onChildMoved(DataSnapshot dataSnapshot, String s) {
}
@Override
public void onCancelled(DatabaseError databaseError) {
}
});
adv.addChildEventListener(new ChildEventListener() { adv.addChildEventListener(new ChildEventListener() {
@Override @Override
public void onChildAdded(DataSnapshot dataSnapshot, String s) { public void onChildAdded(DataSnapshot dataSnapshot, String s) {
for (DataSnapshot data : dataSnapshot.getChildren()) { for (DataSnapshot data : dataSnapshot.getChildren()) {
if (mAuth.getCurrentUser().getEmail().equals(data.getValue().toString())) { if (mAuth.getCurrentUser().getEmail().equals(data.getValue().toString())) {
Log.e("DATA_KEY", dataSnapshot.getKey());
adv_name = dataSnapshot.getKey(); adv_name = dataSnapshot.getKey();
} }
} }
} }
...@@ -89,22 +145,62 @@ public class TeacherActivity extends AppCompatActivity { ...@@ -89,22 +145,62 @@ public class TeacherActivity extends AppCompatActivity {
@Override @Override
public void onChildAdded(DataSnapshot dataSnapshot, String s) { public void onChildAdded(DataSnapshot dataSnapshot, String s) {
if (dataSnapshot.getKey().equals(adv_name)) { if (dataSnapshot.getKey().equals(adv_name)) {
Log.e("SNAP", dataSnapshot.getKey()); Log.e("ADV_NAME", dataSnapshot.getKey());
for (DataSnapshot data : dataSnapshot.getChildren()) { for (DataSnapshot data : dataSnapshot.getChildren()) {
Log.e("OD_LIST", data.getKey() + " " + data.getValue()); Log.e("OD_LIST", data.getKey() + " " + data.getValue());
uid_map.put(data.getKey(), data.getValue().toString());
uid_list.add(data.getKey()); uid_list.add(data.getKey());
}
}
for (DataSnapshot data : dataSnapshot.getChildren()) {
for (DataSnapshot d : data.getChildren()) {
Log.e("DATA_KEY", dataSnapshot.getKey());
if (dataSnapshot.getKey().equals(adv_name))
random.add(d.getValue().toString());
}
// for (int i = 0; i < random.size(); i++) {
// Log.e("RANDOM_VALS", data.getKey() + ' ' + random.get(i));
//
// }
if (random.size() != 0) {
try {
flag = random.get(0);
from = random.get(1);
fullday = random.get(2);
reason = random.get(3);
to = random.get(4);
table = new ODTable(flag, reason, from, to, fullday);
odtable.put(data.getKey(), table);
random.clear();
} }
catch (Exception e) {
} }
}
}
adapter = new CustomListAdapter(getApplicationContext(), R.layout.list_item); adapter = new CustomListAdapter(getApplicationContext(), R.layout.list_item);
listView.setAdapter(adapter); listView.setAdapter(adapter);
Log.e("UIDLIST_SIZE", String.valueOf(uid_list.size())); Log.e("UIDLIST_SIZE", String.valueOf(uid_map.size()));
for (String value: uid_list) {
DataProvider provider = new DataProvider(value); for (int i = 0; i < uid_list.size(); i++) {
key = uid_list.get(i);
value = uid_map.get(key);
try {
if (odtable.get(key).flag.equals("1")) {
DataProvider provider = new DataProvider(key, value, odtable.get(key).reason, odtable.get(key).from, odtable.get(key).to);
adapter.add(provider); adapter.add(provider);
} }
} }
catch (Exception e) {
}
}
}
@Override @Override
public void onChildChanged(DataSnapshot dataSnapshot, String s) { public void onChildChanged(DataSnapshot dataSnapshot, String s) {
...@@ -127,29 +223,30 @@ public class TeacherActivity extends AppCompatActivity { ...@@ -127,29 +223,30 @@ public class TeacherActivity extends AppCompatActivity {
} }
}); });
student.addChildEventListener(new ChildEventListener() { listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, final int position, long id) {
// Toast.makeText(getApplicationContext(), String.valueOf(position), Toast.LENGTH_SHORT).show();
builder = new AlertDialog.Builder(TeacherActivity.this);
builder.setPositiveButton("Approve", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
od.addChildEventListener(new ChildEventListener() {
@Override @Override
public void onChildAdded(DataSnapshot dataSnapshot, String s) { public void onChildAdded(DataSnapshot dataSnapshot, String s) {
// for(DataSnapshot dsp : dataSnapshot.getChildren()){ DataProvider item_key = (DataProvider)adapter.getItem(position);
// if (uid_list.contains(dataSnapshot.getKey())) { String item = item_key.getKey();
// if (dsp.getKey().toString().equals("RollNumber")) { // Toast.makeText(getApplicationContext(), item, Toast.LENGTH_SHORT).show();
// if (dataSnapshot.getKey().equals(adv_name)) {
// } for (DataSnapshot data : dataSnapshot.getChildren()) {
// } if (data.getKey().equals(item)) {
// } od_flag = od.child(adv_name).child(item).child("flag");
od_flag.setValue(0);
//Code yet to be decided od_student = od.child(adv_name).child(item);
od_student.removeValue();
// 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());
// }
// }
// }
//
// }
} }
@Override @Override
...@@ -172,8 +269,22 @@ public class TeacherActivity extends AppCompatActivity { ...@@ -172,8 +269,22 @@ public class TeacherActivity extends AppCompatActivity {
} }
}); });
}
});
itemValue = (DataProvider) adapter.getItem(position);
builder.setMessage("Take Action".toUpperCase());
builder.setNegativeButton("Cancel", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
} }
});
AlertDialog dialog = builder.create();
dialog.show();
}
});
}
public void signOut(View view) { public void signOut(View view) {
mAuth.signOut(); mAuth.signOut();
......
...@@ -13,13 +13,17 @@ ...@@ -13,13 +13,17 @@
android:id="@+id/button2" android:id="@+id/button2"
android:onClick="signOut" android:onClick="signOut"
android:layout_alignParentTop="true" android:layout_alignParentTop="true"
android:layout_alignParentEnd="true" /> android:layout_alignParentEnd="true"
style="@style/Widget.AppCompat.Button.Borderless.Colored" />
<ScrollView <ScrollView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="wrap_content"
android:layout_below="@+id/button2" android:layout_below="@+id/button2"
android:layout_alignParentStart="true"> android:layout_alignParentStart="true"
android:layout_marginLeft="@dimen/activity_horizontal_margin"
android:layout_marginRight="@dimen/activity_horizontal_margin"
android:layout_marginTop="41dp">
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
...@@ -28,11 +32,22 @@ ...@@ -28,11 +32,22 @@
<ListView <ListView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="800dp" android:layout_height="500dp"
android:id="@+id/listView"> android:id="@+id/listView">
</ListView> </ListView>
</LinearLayout> </LinearLayout>
</ScrollView> </ScrollView>
<TextView
android:text="Pending ODs"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="12dp"
android:id="@+id/pendingTitle"
android:textAppearance="@style/TextAppearance.AppCompat.Display1"
android:layout_alignBottom="@+id/button2"
android:layout_alignParentStart="true" />
</RelativeLayout> </RelativeLayout>
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent" android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent"
android:layout_marginTop="@dimen/activity_vertical_margin"
android:id="@+id/list_item">
<TextView <TextView
android:id="@+id/listText" android:id="@+id/listText"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="100dp" android:layout_height="60dp"
/> />
<LinearLayout <TextView
android:id="@+id/listTextEmail"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="40dp"
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> </LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<resources> <resources>
<color name="colorPrimary">#3F51B5</color> <color name="colorPrimary">#3f51b5</color>
<color name="colorPrimaryDark">#303F9F</color> <color name="colorPrimaryDark">#303F9F</color>
<color name="colorAccent">#ff4081</color> <color name="colorAccent">#ff4081</color>
</resources> </resources>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment