This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class BudgetAdapter extends RecyclerView.Adapter<BudgetAdapter.ViewHolder> { | |
private ArrayList<IntervalDataBase> dataBases; | |
private Context context; | |
public BudgetAdapter(ArrayList<IntervalDataBase> dataBases, Context context) { | |
this.dataBases = dataBases; | |
this.context = context; | |
} | |
@Override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.budgetedonline.adapter; | |
import android.content.Context; | |
import android.graphics.Color; | |
import android.support.v7.widget.RecyclerView; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.LinearLayout; | |
import android.widget.TextView; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Rectangle { | |
private double length; | |
private double height; | |
// getters/setters ... | |
} | |
public class Circle { | |
private double radius; | |
// getters/setters ... | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface Shape { | |
double getArea(); | |
} | |
public class Rectangle implements Shape{ | |
private double length; | |
private double height; | |
// getters/setters ... | |
@Override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CustomEditText extends EditText { | |
public CustomEditText(Context context) { | |
super(context); | |
} | |
public CustomEditText(Context context, AttributeSet attrs) { | |
super(context, attrs); | |
Util.setCustomFont(this,context,attrs, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<com.example.Widgets.CustomEditText | |
android:id="@+id/txtFirst" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
app:font="ScopeOne-Regular.ttf"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface Car { | |
public void startEngine(); | |
} | |
public Ferrari implements Car { | |
... | |
@Override | |
public double startEngine() { | |
//logic ... | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void LetStartEngine(Car car) { | |
if (car instanceof Tesla) | |
((Tesla)car).TurnOnCar(); | |
car.startEngine(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface Car { | |
public void startEngine(); | |
} | |
public Ferrari implements Car { | |
... | |
@Override | |
public double startEngine() { | |
//logic ... | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface OnClickListener { | |
void onClick(View v); | |
void onLongClick(View v); | |
void onTouch(View v, MotionEvent event); | |
} |
OlderNewer