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
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 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 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 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 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 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 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> |
OlderNewer