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 PositionListActivity extends BaseActivity implements EditText.OnEditorActionListener { | |
@BindView(R.id.toolbar_text) | |
SecretTextView toolbarText; | |
@BindView(R.id.listview_positions) | |
ListView listViewPositions; | |
@BindView(R.id.edt_search) | |
SecretEditText edtSearch; |
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
/** | |
* Created by Caner on 3.01.2018. | |
*/ | |
``` public class SectorSuggestionAdapter extends ArrayAdapter<Sektorler> { | |
private List<Sektorler> items, tempItems, suggestions; | |
private Context context; | |
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 BlockedTypeAdapter extends ArrayAdapter<EngellilikKategorileri> { | |
private List<EngellilikKategorileri> items; | |
public BlockedTypeAdapter(Context context, List<EngellilikKategorileri> objects) { | |
super(context, 0, objects); | |
this.items = objects; |
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 static String makeTwoPart(String data, String cutAfterThisWord) { | |
String result = ""; | |
String val1 = data.substring(0, data.indexOf(cutAfterThisWord)); | |
String va12 = data.substring(val1.length(), data.length()); | |
String secondWord = va12.replace(cutAfterThisWord, ""); |
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 MyClassAdapter extends ArrayAdapter<MyClass> { | |
private static class ViewHolder { | |
private TextView itemView; | |
} | |
public MyClassAdapter(Context context, int textViewResourceId, ArrayList<MyClass> items) { | |
super(context, textViewResourceId, items); | |
} |
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
import android.animation.ArgbEvaluator; | |
import android.animation.ObjectAnimator; | |
import android.animation.ValueAnimator; | |
import android.annotation.SuppressLint; | |
import android.content.Context; | |
public final class BlinkEffectUtils { | |
private static BlinkEffectUtils blinkEffect; |
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 TimeHelper { | |
DateFormat df = new SimpleDateFormat("EEE, d MMM yyyy, HH:mm"); | |
String date = df.format(Calendar.getInstance().getTime()); | |
/* | |
"yyyy.MM.dd G 'at' HH:mm:ss z" ---- 2001.07.04 AD at 12:08:56 PDT | |
"hh 'o''clock' a, zzzz" ----------- 12 o'clock PM, Pacific Daylight Time | |
"EEE, d MMM yyyy HH:mm:ss Z"------- Wed, 4 Jul 2001 12:08:56 -0700 | |
"yyyy-MM-dd'T'HH:mm:ss.SSSZ"------- 2001-07-04T12:08:56.235-0700 |
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
import android.content.Context; | |
import android.util.Log; | |
import com.caner.fonttext.models.ResponseData; | |
import com.google.gson.Gson; | |
import java.io.IOException; | |
import java.io.InputStream; |
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
<?xml version="1.0" encoding="utf-8"?> | |
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
android:id="@+id/htab_maincontent" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:fitsSystemWindows="true"> | |
<android.support.design.widget.AppBarLayout |
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
import android.content.Context; | |
import android.os.Build; | |
import android.os.Handler; | |
import android.support.v4.view.ViewCompat; | |
import android.support.v7.widget.LinearLayoutManager; | |
import android.support.v7.widget.RecyclerView; | |
import android.util.AttributeSet; | |
import android.view.MotionEvent; | |
import android.view.View; | |
import android.view.ViewTreeObserver; |
OlderNewer