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.annotation.SuppressLint; | |
import android.app.Activity; | |
import android.os.Bundle; | |
import android.text.Editable; | |
import android.text.TextWatcher; | |
import android.widget.Button; | |
import android.widget.EditText; | |
import android.widget.Toast; | |
public class MainActivity extends Activity { |
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.annotation.SuppressLint; | |
import android.content.Context; | |
import android.util.AttributeSet; | |
import android.view.LayoutInflater; | |
import android.widget.ImageView; | |
import android.widget.RelativeLayout; | |
import android.widget.TextView; | |
@SuppressLint("NewApi") | |
public class AdapterActionBar extends RelativeLayout { |
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
sudo mkfs.vfat /dev/sdb1 |
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
sudo add-apt-repository ppa:yannubuntu/boot-repair | |
sudo apt-get update | |
sudo apt-get install -y boot-repair && boot-repair |
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
<!-- Application theme. --> | |
<style name="MyTheme" parent="@android:style/Theme.Holo"> | |
<item name="android:windowActionBarOverlay">true</item> | |
<item name="android:actionBarStyle">@style/MyTheme.ActionBar</item> | |
<item name="android:windowContentOverlay">@null</item> | |
<item name="android:windowBackground">@color/red_background</item> | |
</style> | |
<style name="MyTheme.ActionBar" parent="android:Widget.Holo.ActionBar"> | |
<item name="android:background">@android:color/transparent</item> | |
<item name="android:backgroundStacked">@android:color/transparent</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
#!/usr/bin/env xdg-open | |
[Desktop Entry] | |
Version=1.0 | |
Type=Application | |
Terminal=false | |
Icon[en_US]=eclipse | |
Name[en_US]=Eclipse | |
Exec=/media/ocit/52e298d7-f561-4c49-9501-1bdb1ecf8566/ar/eclipse/eclipse/eclipse | |
Comment[en_US]=IDEJava | |
Name=Eclipse |
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
$ sudo apt-get install gnome-panel | |
$ gnome-desktop-item-edit --create-new /home/ocit/Desktop |
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
You can do programmatically using setTypeface(): | |
textView.setTypeface(null, Typeface.NORMAL); // for Normal Text | |
textView.setTypeface(null, Typeface.BOLD); // for Bold only | |
textView.setTypeface(null, Typeface.ITALIC); // for Italic | |
textView.setTypeface(null, Typeface.BOLD_ITALIC); // for Bold and Italic | |
XML: | |
You can set Directly in XML file in <TextView /> like: |
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.ocit; | |
import android.os.Bundle; | |
import android.support.v4.app.ListFragment; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.ArrayAdapter; | |
import android.widget.ListAdapter; | |
import android.widget.ListView; |
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 static int SPLASH_TIME_OUT = 3000; | |
new Handler().postDelayed(new Runnable() { | |
@Override | |
public void run() { | |
// This method will be executed once the timer is over | |
// Start your app main activity | |
Intent i = new Intent(Splash.this, MainActivity.class); |
OlderNewer