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
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:orientation="vertical" | |
android:padding="5dp" > | |
<ImageView | |
android:id="@+id/picture" |
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
<!-- | |
/* Tuto Custom GridView Android | |
* @author Zied Rebhi | |
* http://www.tutozone.info | |
*/ | |
--> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" |
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
<!-- | |
/* Tuto Custom GridView Android | |
* @author Zied Rebhi | |
* http://www.tutozone.info | |
*/ | |
--> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" |
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
/** | |
* Tuto Custom GridView Android | |
* @author Zied Rebhi | |
* http://www.tutozone.info | |
*/ | |
public class FoodListAdapter extends BaseAdapter { | |
private List<Food> listFood = null; | |
LayoutInflater layoutInflater; |
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
/** | |
* Tuto Custom GridView Android | |
* @author Zied Rebhi | |
* http://www.tutozone.info | |
*/ | |
public class MainActivity extends Activity { | |
String[] listNames = { "Cake", "Cheese", "Chicken", "Cocktail", "Coffe", | |
"Coffe black", "Humberger", "IceCream", "Pizza", "Sandwich", | |
"Soupe", "Yaghurt" }; |
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
/** | |
* Tuto SQLite Android | |
* @author Zied Rebhi | |
* http://www.tutozone.info | |
*/ | |
public class SQLiteDatabaseHandler extends SQLiteOpenHelper { | |
private static final int DATABASE_VERSION = 1; | |
private static final String DATABASE_NAME = "FoodsDB"; | |
private static final String TABLE_NAME = "FoodsTable"; |
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
/** | |
* Tuto SQLite Android | |
* @author Zied Rebhi | |
* http://www.tutozone.info | |
*/ | |
public class Food { | |
private int id; | |
private String name; | |
private Float price; |
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
/** | |
* Tuto SQLite Android | |
* @author Zied Rebhi | |
* http://www.tutozone.info | |
*/ | |
public class MainActivity extends Activity { | |
SQLiteDatabaseHandler db; |
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
/** | |
* Tuto Admob Android | |
* @author Zied Rebhi | |
* http://www.tutozone.info | |
*/ | |
public class MainActivity extends Activity { | |
private InterstitialAd interstitial; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { |
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
<!-- | |
/** | |
* Tuto Admob Android | |
* @author Zied Rebhi | |
* http://www.tutozone.info | |
*/ | |
--> | |
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.tutozone.admobtuto" |
OlderNewer