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 Circle extends View { | |
private static final int START_ANGLE_POINT = 90; | |
private final Paint paint; | |
private final RectF rect; | |
private float angle; | |
public Circle(Context context, AttributeSet 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
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<style name="Theme.Transparent" parent="android:Theme"> | |
<item name="android:windowIsTranslucent">true</item> | |
<item name="android:windowBackground">@android:color/transparent</item> | |
<item name="android:windowContentOverlay">@null</item> | |
<item name="android:windowNoTitle">true</item> | |
<item name="android:windowIsFloating">true</item> | |
<item name="android:backgroundDimEnabled">false</item> | |
</style> |
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
<activity | |
android:name=".DetailActivity" | |
android:label="@string/app_name"> | |
<intent-filter> | |
<action android:name="android.intent.action.VIEW"/> | |
<category android:name="android.intent.category.DEFAULT" /> | |
<category android:name="android.intent.category.BROWSER" /> | |
<data | |
android:scheme="http" | |
android:host="myapp.com"/> |
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 MyWebViewClient extends WebViewClient { | |
@Override | |
public boolean shouldOverrideUrlLoading(WebView view, String url) { | |
if (url.equals("YOURLINK")) { | |
Intent intent = new Intent(getContext(), YourActivity.class); | |
startActivity(intent); | |
return true; // Handle By application itself | |
} else { | |
view.loadUrl(url); | |
return true; |
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
{ | |
"latestVersion": "6", | |
"latestVersionCode": 6, | |
"url": "https://re.aktif.com", | |
"releaseNotes": [ | |
"- First evolution", | |
"- Second evolution", | |
"- Bug fixes" | |
] | |
} |
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 abstract class OlevCallback<T> extends Callback<T> { | |
AlertDialog dialog; | |
public OlevCallback(Context context) { | |
super(context); | |
} | |
public OlevCallback(Callback<T> chain, Context context) { | |
super(chain, 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 DateUtils { | |
private static final String JUST_NOW = "Şimdi"; | |
private static final String MINUTES = " dakika"; | |
private static final String HOURS = " saat"; | |
private static final String H = "s"; | |
private static final String AGO = " önce"; | |
private static final String YESTERDAY = "Dün"; | |
public static boolean isSameDay(Long timestamp) { |
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
scrollView.post(new Runnable() { | |
@Override | |
public void run() { | |
scrollView.fullScroll(ScrollView.FOCUS_DOWN); | |
} | |
}); |
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
keytool -list -v -keystore my-release-key.keystore (~/.adnroid/debug.keystore) |
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
----- | |
-> Apple gizli dosyaları gösterme komutu | |
defaults write com.apple.finder AppleShowAllFiles YES; killall -HUP Finder | |
----- | |
-> Screen Shot | |
Cmd + Shift + 3 - 4 | |
————- | |
-> Wireless Key |