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.AttributeSet; | |
| import android.view.View; | |
| import android.view.ViewGroup; | |
| public class FlowLayout extends ViewGroup { | |
| private int paddingHorizontal; | |
| private int paddingVertical; |
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 AutoWrapFilter implements InputFilter { | |
| private final int mLineChars; | |
| public AutoWrapFilter(int pLineChars) { | |
| mLineChars = pLineChars; | |
| } | |
| @Override | |
| public CharSequence filter(CharSequence src, int srcStart, int srcEnd, Spanned dest, int destStart, int destEnd) { | |
| CharSequence original = dest.subSequence(0,destStart); |
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 BaseActivity extends AppCompatActivity implements LogOutTimerUtil.LogOutListener { | |
| @Override | |
| public void doLogout() { | |
| Intent intent = new Intent(this, ActivityLockPage.class); | |
| startActivity(intent); | |
| } | |
| @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
| public class LogOutTimerUtil { | |
| public interface LogOutListener { | |
| void doLogout(); | |
| } | |
| static Timer longTimer; | |
| static final int LOGOUT_TIME = 600000; // delay in milliseconds i.e. 5 min = 300000 ms or use timeout argument | |
| public static synchronized void startLogoutTimer(final Context context, final LogOutListener logOutListener) { |
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 static String getMacAddress(Context context) { | |
| /*if(Build.VERSION.SDK_INT>=Build.VERSION_CODES.N){ | |
| DeviceAdminReceiver admin = new DeviceAdminReceiver(); | |
| DevicePolicyManager devicepolicymanager = admin.getManager(context); | |
| ComponentName name1 = admin.getWho(context); | |
| if (devicepolicymanager.isAdminActive(name1)){ | |
| String mac_address = devicepolicymanager.getWifiMacAddress(name1); | |
| return mac_address; | |
| } |
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
| <?php | |
| $currency_symbols = array( | |
| 'AED' => 'د.إ', // ? | |
| 'AFN' => 'Af', | |
| 'ALL' => 'Lek', | |
| 'AMD' => '', | |
| 'ANG' => 'ƒ', | |
| 'AOA' => 'Kz', // ? | |
| 'ARS' => '$', | |
| 'AUD' => '$', |
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
| InputFilters filters=new InputFilters(3, 2, 100); | |
| ediText.setFilters(new InputFilter[]{filters}); | |
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 ClickToSelectEditText<T extends Listable> extends TextInputEditText { | |
| List<T> mItems; | |
| String[] mListableItems; | |
| CharSequence mHint; | |
| OnItemSelectedListener<T> onItemSelectedListener; | |
| public ClickToSelectEditText(Context context) { |
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 ResizeAnimation extends Animation { | |
| final int startWidth; | |
| final int targetWidth; | |
| View view; | |
| public ResizeAnimation(View view, int targetWidth) { | |
| this.view = view; | |
| this.targetWidth = targetWidth; | |
| startWidth = view.getWidth(); | |
| } |
This file has been truncated, but you can view the full file.
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
| { | |
| "type": "FeatureCollection", | |
| "features": [ | |
| { "properties": { "id": 1, "pal_bamini": "அறத்துப்பால்", "pal_english": "Virtue", "pal_thanglish": "Araththuppaal", "pal_tamil": "அறத்துப்பால்", "iyal_bamini": "பாயிரவியல்", "iyal_english": "Prologue", "iyal_thanglish": "Paayiraviyal", "iyal_tamil": "பாயிரவியல்", "adhikarm_no": 1, "adhikarm_bamini": "கடவுள் வாழ்த்து", "adhikarm_english": "The Praise of God", "adhikarm_thanglish": "Katavul Vaazhththu", "adhikarm_tamil": "கடவுள் வாழ்த்து", "kural_no": 1, "kural_bamini1": "அகர முதல எழுத்தெல்லாம் ஆதி", "kural_bamini2": "பகவன் முதற்றே உலகு", "kural_thanglish1": "Akara Mudhala Ezhuththellaam Aadhi", "kural_thanglish2": "Pakavan Mudhatre Ulaku", "kuralvilakam_tamil": "எழுத்துக்கள் எல்லாம் அகரத்தை அடிப்படையாக கொண்டிருக்கின்றன. அதுபோல உலகம் கடவுளை அடிப்படையாக கொண்டிருக்கிறது.", "kuralvilakam_english": "As the letter A is the first of all letters so the eternal God is first in the world", "kural_tamil1": "அகர முதல எழுத்தெல்லாம் ஆதி\nபகவன் முதற்றே உலகு", "isfav": 0 } }, | |
| { |