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.widget.*; | |
import android.util.*; | |
import android.content.*; | |
import android.graphics.*; | |
/** | |
* the simple implementation of an EditText where each line is numbered on the left | |
*/ | |
public class LineNumberedEditText extends EditText { |
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 rupantor.cusedittext; | |
import android.content.Context; | |
import android.graphics.Canvas; | |
import android.graphics.Color; | |
import android.graphics.Paint; | |
import android.graphics.Rect; | |
import android.util.AttributeSet; | |
import android.widget.EditText; |
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.DialogInterface; | |
import android.content.Intent; | |
import android.support.v7.app.AlertDialog; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.view.View; | |
import android.widget.Button; | |
import android.widget.TextView; | |
import java.util.Random; |
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 fnn.smirl.rdc.constitution.info; | |
import android.content.Context; | |
import android.content.pm.PackageInfo; | |
/** by Francis Nduba Numbi */ | |
public final class AppInfo | |
{ | |
private static String vn= ""; // version name | |
private static int vc = 0; // version code | |
private static final AppInfo INSTANCE = new AppInfo(); |
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
Pixmap pixmap200 = new Pixmap(Gdx.files.internal("200x200.png")); | |
Pixmap pixmap100 = new Pixmap(100, 100, pixmap200.getFormat()); | |
pixmap100.drawPixmap(pixmap200, | |
0, 0, pixmap200.getWidth(), pixmap200.getHeight(), | |
0, 0, pixmap100.getWidth(), pixmap100.getHeight() | |
); | |
Texture texture = new Texture(pixmap100); | |
pixmap200.dispose(); | |
pixmap100.dispose(); |
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
MIT License | |
Copyright (c) 2023 Mahbub Zaman | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
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
buildscript { | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:0.13.0' | |
} | |
} | |
apply plugin: 'com.android.application' |