Posts by Laura Suciu

  1. Home
  2. chevron_right
  3. Laura Suciu
  4. (Page 12)

Android LayoutInflater Turorial

Tutorial
In this tutorial I will show you how to use the LayoutInflater in Android.1. Make a new project (I called my project InflaterExample and my main Activity it’s called “MyActivity”)…

Android Vibrate on Click

Snippets, Tutorial
If you want to make the phone to vibrate when you click on a button from your application: 1. You have to declare in your AndroidManifest.xml the permission: <uses-permission android:name="android.permission.VIBRATE"/>…

Detect when Done key is pressed

Tutorial
If you want to detect when a key from soft keyboard is pressed, like Done key, you can use the following code: mEditText = (EditText)findViewById(R.id.edit); mEditText.setOnEditorActionListener(new TextView.OnEditorActionListener() { @Override public…

Android Gallery with Dots On Scroll

Tutorial
In this tutorial I will show you how to create an Android Gallery and how to create dots or little circles when you scroll the images. So let’s start: 1.…