ad728

Saturday, December 31, 2016

Facebook Color Code

Facebook Color Code

Note: Facebook Color can only added via FB Lite and seen in FB Lite only. 
fg=ffff0600 FOR RED
fg=b0ffd700 FOR GOLDEN
fg=b0000000 FOR BLACK
fg=b0ff7f00 FOR ORANGE
fg=b0ffff00 FOR YELLOW
fg=b0ff00ff FOR LIGHT PINK
fg=b0ff007f FOR DARK PINK
fg=b0ff0000 FOR REDDISH PINK
fg=b0800000 FOR BROWN
fg=b0ffc0cb FOR LIGHT PURPLE
fg=b06f00ff FOR DARK BLUE
fg=b0c0c0c0 FOR GREY
fg=80ffffff FOR SKY BLUE
fg=b000ffff FOR LIGHT BLUE
fg=b0bf00ff FOR PURPLE
fg=b08f00ff FOR DARK PURPLE
fg=b0808000 FOR MEHANDI GREEN
fg=b0ba55d3 FOR LIGHT PURPLE
fg=b0f000f0 FOR MAGENTA
fg=b00000ff FOR BLUE
fg=b0b08080 FOR STEEL GREY
fg=b0000080 FOR MOVVE
fg=b0964b00 FOR LIGHT BROWN
fg=f0f00f0f FOR RED
fg=b000ff00 FOR GREEN
Note: If you want other types of color effect type bg instead of fg.
This will work only on Facebook Lite.
Method:
First write less than (<) color code  then greater than(>) and at last type the text you want to show in color.
For example: <bg=b000ff00> Hello
                       <fg=b000ff00> Hello
Watch the video and enjoy texting 

Share:

Thursday, December 15, 2016

AIDE Tutorial - 17 Check Box

AIDE Tutorial - 17 Check Box

Watch the video below and try yourself
Main.xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<CheckBox
android:onClick="aaa"
android:id="@+id/one"
android:text="Phone"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
<CheckBox
android:onClick="bbb"
android:id="@+id/two"
android:text="SD Card"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
</LinearLayout>
Java
package com.mycompany.myapp3;
import android.app.*;
import android.os.*;
import android.widget.*;
import android.view.*;
public class MainActivity extends Activity
{@Override
protected void onCreate(Bundle savedInstanceState)
{super.onCreate(savedInstanceState);
setContentView(R.layout.main);}
public void aaa(View view){
CheckBox one =(CheckBox)findViewById(R.id.one);
if (one.isChecked()){
Toast.makeText(this,"Phone is selected",
Toast.LENGTH_SHORT).show();}
else{Toast.makeText(this, "Phone is not selected",
Toast.LENGTH_SHORT).show();}}
public void bbb(View view){
CheckBox two=(CheckBox)findViewById(R.id.two);
if (two.isChecked()){
Toast.makeText(this,"SD Card is selected",
Toast.LENGTH_SHORT).show();}
else{Toast.makeText(this, "SD Card is not selected",
Toast.LENGTH_SHORT).show();}}}
Share:

Tuesday, December 13, 2016

AIDE Tutorial - 8 Toast Gravity

AIDE Tutorial - 8 Toast Gravity 



Add a button on XML
<Button
        android:onClick="Click1"
        android:text="Click Me"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />



Import these on Java
import android.view.View;
import android.widget.Toast;


Add after R.layout.main
public void Click1 (View view){
    Toast aaa = Toast.makeText(
getApplicationContext(),
"you clicked",
Toast.LENGTH_SHORT
);
aaa.setGravity(Gravity.BOTTOM,0,0);
aaa.show();
}


For center change BOTTOM to CENTER
For top change BOTTOM to TOP


Fill the horizontal
aaa.setGravity(Gravity.TOP|Gravity.FILL_HORIZONTAL,0,0);

Share:

Sunday, December 11, 2016

AIDE Tutorial - 6 Button

AIDE Tutorial - 6 Button


Watch the below video 🤗

Normal Button
This is the example of normal button.

<Button
android:text="Android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>


Image button
This is the example of image button. In this image button i have choosen the ic_launcher i.e. auto generated android icon on AIDE application.

<ImageButton
  android:src="@drawable/ic_launcher"
    android:layout_width="wrap_content"
   android:layout_height="wrap_content"/>

Text + Image Button
This is the example of text plus image button.In this  i have choosen the ic_launcher i.e. auto generated android icon on AIDE application.
<Button
    android:text="android"
 android:drawableLeft="@drawable/ic_launcher"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"/>




Note: all the text in red are code. For more please watch the video embeded above.
Share:

Friday, December 9, 2016

AIDE Tutorial - 9 Internet Button

AIDE Tutorial - 9 Internet Button



Define a button in main.xml
<Button
        android:onClick="Click1"
        android:text="Click Me"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />



Import these three View, Intent and Uri in java
import android.view.View;
import android.content.Intent;
import android.net.Uri;

And then add the following code after R.main
public void Click1 (View view){
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://shyamkumarkc.blogspot.com")));
}




Share:

Wednesday, December 7, 2016

AIDE Tutorial - 7 Toast Button

AIDE Tutorial - 7 Toast Button





Toast Button will help to appear toast when the button is clicked. In this app, we add onClick method to the button whenever the button is clicked a toast message will appear. 
        To show toast we will use a normal Button.
Add a button on XML
First of all add a button. Lets add a normal button.

<Button
        android:onClick="Click"
        android:text="Click Me"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />



Java
Import these on Java
import android.view.View;
import android.widget.Toast;

Add after R.layout.main
public void Click (View view){
     Toast.makeText(
getApplicationContext(),
"you clicked",
Toast.LENGTH_SHORT
).show();


After adding this on Main Activity.java you need to build the app. When you click button a small toast will appear which says you clicked.
Toast.LENGTH_SHORT instead of this you can also write Toast.LENGTH_LONG this will shows toast for longer duration.
Share:

Total Pageviews

Sponsor

Sponsor

ad300