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

Added fonts

parent f9805b30
No related branches found
No related tags found
No related merge requests found
Showing
with 28 additions and 8 deletions
......@@ -53,7 +53,7 @@
<ConfirmationsSetting value="0" id="Add" />
<ConfirmationsSetting value="0" id="Remove" />
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">
......
File added
File added
File added
File added
File added
File added
File added
File added
......@@ -23,7 +23,7 @@ public class CustomListAdapter extends ArrayAdapter {
static class DataHandler {
TextView tv, tv1, tv2, tv3, tv4;
TextView tv, tv1, tv2, tv3, tv4, tv5, tv6;
}
List list = new ArrayList();
......@@ -68,19 +68,28 @@ public class CustomListAdapter extends ArrayAdapter {
handler.tv1 = (TextView)row.findViewById(R.id.listTextReason);
handler.tv2 = (TextView)row.findViewById(R.id.fromText);
handler.tv3 = (TextView)row.findViewById(R.id.toText);
handler.tv4 = (TextView)row.findViewById(R.id.reasonLabel);
handler.tv5 = (TextView)row.findViewById(R.id.fromLabel);
handler.tv6 = (TextView)row.findViewById(R.id.toLabel);
row.setTag(handler);
}
else {
handler = (DataHandler) row.getTag();
}
// Typeface one = Typeface.createFromAsset(parent.getContext().getAssets(), "fonts/BebasNeue Bold.ttf");
Typeface one = Typeface.createFromAsset(parent.getContext().getAssets(), "fonts/AvenirLTStd-Book.otf");
DataProvider provider = (DataProvider) this.getItem(position);
handler.tv.setText(provider.getRollno());
handler.tv1.setText(provider.getReason());
handler.tv2.setText(provider.getFrom());
handler.tv3.setText(provider.getTo());
// handler.tv.setTypeface(one);
handler.tv.setTypeface(one);
handler.tv1.setTypeface(one);
handler.tv2.setTypeface(one);
handler.tv3.setTypeface(one);
handler.tv4.setTypeface(one);
handler.tv5.setTypeface(one);
handler.tv6.setTypeface(one);
handler.tv.setTextSize(30);
handler.tv1.setTextSize(20);
handler.tv2.setTextSize(20);
......
......@@ -3,11 +3,13 @@ package com.darshanbshah.odsystem;
import android.app.ProgressDialog;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Typeface;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.TextView;
import com.google.android.gms.auth.api.Auth;
import com.google.android.gms.auth.api.signin.GoogleSignInAccount;
......@@ -36,12 +38,16 @@ public class Login extends AppCompatActivity implements GoogleApiClient.OnConnec
private static int RC_SIGN_IN = 0;
private static String TAG = "MAIN_ACTIVITY";
TextView title;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_login);
title = (TextView)findViewById(R.id.textView3);
Typeface one = Typeface.createFromAsset(getAssets(), "fonts/BebasNeue Book.ttf");
title.setTypeface(one);
title.setTextSize(70);
mAuth = FirebaseAuth.getInstance();
if (mAuth.getCurrentUser() != null) {
......
......@@ -14,6 +14,7 @@ import android.view.View;
import android.view.Window;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Spinner;
import android.widget.TextView;
......@@ -79,7 +80,7 @@ public class RollNumber extends AppCompatActivity implements AdapterView.OnItemS
@Override
public void onDataChange(DataSnapshot dataSnapshot) {
for(DataSnapshot dsp : dataSnapshot.getChildren()){
list.add(String.valueOf(dsp.getKey())); //add result into array list
list.add(String.valueOf(dsp.getKey()));
Log.e("VALUE: ", String.valueOf(dsp.getKey()));
}
Log.e("LISTSIZE", String.valueOf(list.size()));
......
......@@ -4,12 +4,14 @@ import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.Typeface;
import android.net.Uri;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;
......@@ -48,6 +50,7 @@ public class TeacherActivity extends AppCompatActivity {
DataProvider itemValue;
FirebaseAuth mAuth;
FirebaseDatabase database = FirebaseDatabase.getInstance();
TextView title;
DatabaseReference root;
DatabaseReference adv;
......@@ -64,7 +67,6 @@ public class TeacherActivity extends AppCompatActivity {
List<String> roll = new ArrayList<String>();
List<String> random = new ArrayList<String>();
List<String> adv_list = new ArrayList<String>();
// List<DatabaseReference> od_student_list = new ArrayList<DatabaseReference>();
String flag = "", reason = "", from = "", to = "", fullday = "";
......@@ -78,7 +80,9 @@ public class TeacherActivity extends AppCompatActivity {
adv = root.child("Advisors");
student = root.child("Student");
listView = (ListView)findViewById(R.id.listView);
title = (TextView)findViewById(R.id.pendingTitle);
Typeface one = Typeface.createFromAsset(getAssets(), "fonts/AvenirLTStd-Book.otf");
title.setTypeface(one);
student.addChildEventListener(new ChildEventListener() {
@Override
public void onChildAdded(DataSnapshot dataSnapshot, String s) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment