This file contains hidden or 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
| <!-- Base application theme. --> | |
| <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"> | |
| <!-- Customize your theme here. --> | |
| <item name="colorPrimary">@color/login_color</item> | |
| <item name="colorPrimaryDark">@color/login_color</item> | |
| <item name="colorAccent">@color/login_color</item> | |
| <item name="android:windowFullscreen">true</item> | |
| <item name="android:textViewStyle">@style/RobotoTextViewStyle</item> | |
| <item name="buttonStyle">@style/RobotoButtonStyle</item> | |
| <item name="android:editTextStyle">@style/RobotoEditTextStyle</item> |
This file contains hidden or 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"?> | |
| <set xmlns:android="http://schemas.android.com/apk/res/android" | |
| android:shareInterpolator="false"> | |
| <translate | |
| android:duration="5000" | |
| android:fromXDelta="0%" | |
| android:toXDelta="-100%" /> | |
| <alpha | |
| android:duration="5000" | |
| android:fromAlpha="1.0" |
This file contains hidden or 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
| private boolean isTCKNCorrect(String id) { | |
| if (id == null) return false; | |
| if (id.length() != 11) return false; | |
| char[] chars = id.toCharArray(); | |
| int[] a = new int[11]; | |
| for(int i=0; i<11; i++) { | |
| a[i] = chars[i] - '0'; |
This file contains hidden or 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.caner.indirimsesi.base; | |
| import android.content.Context; | |
| import android.view.View; | |
| import android.view.ViewGroup; | |
| import androidx.recyclerview.widget.RecyclerView; | |
| import java.util.ArrayList; | |
| import java.util.HashMap; |
This file contains hidden or 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 BaseResponse<T> { | |
| @SerializedName("message") | |
| private String message; | |
| @SerializedName("data") | |
| private T data; | |
| @SerializedName("errors") | |
| private Error error; |
This file contains hidden or 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
| <!--Transparent dialog --> | |
| <style name="TransparentProgressDialog" parent="Theme.AppCompat.Dialog"> | |
| <item name="android:windowFrame">@null</item> | |
| <item name="android:windowBackground">@android:color/transparent</item> | |
| <item name="android:windowIsFloating">true</item> | |
| <item name="android:windowContentOverlay">@null</item> | |
| <item name="android:windowTitleStyle">@null</item> | |
| <item name="android:windowAnimationStyle">@android:style/Animation.Dialog</item> | |
| <item name="android:windowSoftInputMode">stateUnspecified|adjustPan</item> | |
| <item name="android:backgroundDimEnabled">true</item> |
This file contains hidden or 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
| pagerView.setOnScrollListener(new RecyclerView.OnScrollListener() { | |
| private boolean scrollingUp; | |
| @Override | |
| public void onScrolled(RecyclerView recyclerView, int dx, int dy) { | |
| // Or use dx for horizontal scrolling | |
| scrollingUp = dy < 0; | |
| } | |
| @Override |
This file contains hidden or 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; |
This file contains hidden or 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 hidden or 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; |
NewerOlder