Jumat, 26 Mei 2017

Promosiin Aplikasi Buatan Sendiri


Selama ane menjadi Android Developer, ane udah punya tiga aplikasi buatan ane sendiri yang sudah tersedia di Play Store. Aplikasi yang pertama ane buat adalah Update Tekno kedua adalah Ramalan Cuaca dan yang terakhir dan menurut ane paling bagus adalah Update Sport. Berikut saya akan menampilkan deskripsi lengkap tentang ketiga aplikasi ane, yang sudah ane sebutin di atas.


1. Update Tekno

Aplikasi berisikan informasi tentang berita-berita yang berkaitan dengan teknologi. Tidak hanya menampilkan informasi teknologi, tetapi juga akan menampilkan berita seputar event atau kegiatan-kegiatan yang tentunya berkaitan dengan teknologi, yang insya allah berita-nya akan update. Berikut adalah gambar atau flyer dari aplikasi Update Tekno.

2. Ramalan Cuaca

Aplikasi yang hanya berisikan informasi mengenai perkiraan cuaca yang terjadi di Kota Bekasi lebih tepatnya lagi di Cikarang. Walaupun hanya menampilkan informasi cuaca di Bekasi, akan tetapi insya allah aplikasi ini bisa bermanfaat bagi orang-orang yang tinggal di Cikarang.

3. Update Sport

Aplikasi portal berita yang berisikan berita-berita seputar dunia olahraga yang mencakup semua jenis olahraga. Tidak hanya menampilkan berita olahraga seputar nasional akan tetapi juga menampilkan berita seputar olahraga secara internasional. User juga dapat dengan mudah mengirim artikel yang ada di dalam nya dengan aplikasi sosial media yang sudah terinstall di masing-masing smartphone pengguna. Berikut ini adalah flayer dari aplikasi Update Sport 
ScreenShoot aplikasi


Sekian promosi aplikasi yang pernah ane buat, semoga aplikasi nya dapat bermanfaat bagi nusa bangsa........... See you........


Read More

Minggu, 26 Februari 2017

How to Make Spinner in Android



Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation test link ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate another link velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make link again with longer anchor text a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with test link the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using ‘Content here, content here’, making it look like readable English.

Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for ‘lorem ipsum’ will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).

Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical test link here too Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of “de Finibus Bonorum et Malorum” (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, “Lorem ipsum dolor sit amet..”, comes from a line in section 1.10.32.


1. Caranya
package com.zarslamgants25.updatesport;

import android.content.Context;
import android.content.Intent;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.squareup.picasso.Picasso;

import java.util.ArrayList;
import java.util.HashMap;

/** * Created by WIN10 on 21/02/2017. */
public class MyAdapter extends RecyclerView.Adapter<MyAdapter.ViewHolder>{

    Context context;
    ArrayList<HashMap<String, String>> listData;

    public MyAdapter(Context context, ArrayList<HashMap<String, String>> listData) {
        this.context = context;
        this.listData = listData;
    }

    @Override    public MyAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.list_item, null);
        return new ViewHolder(view);
    }

    @Override    public void onBindViewHolder(MyAdapter.ViewHolder holder, final int position) {

        holder.tvheading.setText(listData.get(position).get("id"));
        holder.tvdesc.setText(listData.get(position).get("judul"));
        final String id_articel = listData.get(position).get("id");

        Picasso.with(context)
                .load(listData.get(position).get("gambar"))
                .placeholder(R.mipmap.ic_launcher)
                .into(holder.imageView);

        holder.relativeLayout.setOnClickListener(new View.OnClickListener() {
            @Override            public void onClick(View view) {
                Intent kirimKeDetail = new Intent(view.getContext(), DetailArtikelActivity.class);
                kirimKeDetail.putExtra("id_artikel", id_articel);
                view.getContext().startActivity(kirimKeDetail);
            }
        });

    }

    @Override    public int getItemCount() {
        return listData.size();
    }

    public class ViewHolder extends RecyclerView.ViewHolder {

        public TextView tvheading;
        public TextView tvdesc;
        public ImageView imageView;
        public RelativeLayout relativeLayout;

        public ViewHolder(View itemView) {
            super(itemView);

            tvheading = (TextView) itemView.findViewById(R.id.textViewHeading);
            tvdesc = (TextView) itemView.findViewById(R.id.textViewDesc);
            imageView = (ImageView) itemView.findViewById(R.id.imgIcon);
            relativeLayout = (RelativeLayout) itemView.findViewById(R.id.relativeLayout);

        }
    }


//===============================================TANPA HASHMAP============================================================//    private List<ListItem> listItems;//    private Context context;////        public MyAdapter(List<ListItem> listItems, Context context) {//        this.listItems = listItems;//        this.context = context;//    }////    @Override//    public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {//        View v = LayoutInflater.from(parent.getContext())//                .inflate(R.layout.list_item, parent, false);//        return new ViewHolder(v);//    }////    @Override//    public void onBindViewHolder(ViewHolder holder, int position) {//        ListItem listItem = listItems.get(position);////        holder.tvheading.setText(listItem.getHead());//        holder.tvdesc.setText(listItem.getDesc());////        Picasso.with(context)//                .load(listItem.getImageUrl())//                .into(holder.imageView);////    }////    @Override//    public int getItemCount() {//        return listItems.size();//    }////    public class ViewHolder extends RecyclerView.ViewHolder {////        public TextView tvheading;//        public TextView tvdesc;//        public ImageView imageView;////        public ViewHolder(View itemView) {//            super(itemView);////            tvheading = (TextView) itemView.findViewById(R.id.textViewHeading);//            tvdesc = (TextView) itemView.findViewById(R.id.textViewDesc);//            imageView = (ImageView) itemView.findViewById(R.id.imgIcon);//        }//    }//===============================================TANPA HASHMAP============================================================}

2. Caranya yang kedua
<?xml version="1.0" encoding="utf-8"?><android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"    xmlns:app="http://schemas.android.com/apk/res-auto"    xmlns:tools="http://schemas.android.com/tools"    android:layout_width="match_parent"    android:layout_height="match_parent"    android:fitsSystemWindows="true"    tools:context="com.zarslamgants25.updatesport.DetailArtikelActivity">

    <android.support.design.widget.AppBarLayout        android:id="@+id/app_bar"        android:layout_width="match_parent"        android:layout_height="260dp"        android:fitsSystemWindows="true"        android:theme="@style/AppTheme.AppBarOverlay">

        <android.support.design.widget.CollapsingToolbarLayout            android:id="@+id/toolbar_layout"            android:layout_width="match_parent"            android:layout_height="match_parent"            android:fitsSystemWindows="true"            app:contentScrim="?attr/colorPrimary"            app:layout_scrollFlags="scroll|exitUntilCollapsed">

            <ImageView                android:layout_width="match_parent"                android:layout_height="match_parent"                android:id="@+id/imageViewDetail"                android:fitsSystemWindows="true"                android:scaleType="centerCrop"                app:layout_collapseMode="pin"                android:src="@mipmap/ic_launcher"/>

            <android.support.v7.widget.Toolbar                android:id="@+id/toolbar"                android:layout_width="match_parent"                android:layout_height="?attr/actionBarSize"                app:layout_collapseMode="pin"                app:popupTheme="@style/AppTheme.PopupOverlay" />

        </android.support.design.widget.CollapsingToolbarLayout>
    </android.support.design.widget.AppBarLayout>

    <include layout="@layout/content_detail_artikel" />

    <android.support.design.widget.FloatingActionButton        android:id="@+id/fab"        android:layout_width="wrap_content"        android:layout_height="wrap_content"        android:layout_margin="@dimen/fab_margin"        app:layout_anchor="@id/app_bar"        app:layout_anchorGravity="bottom|end"        app:srcCompat="@android:drawable/ic_dialog_email" />

</android.support.design.widget.CoordinatorLayout>


3. Dan yang terakhir adalah
       blabla

Read More

Jumat, 24 Februari 2017

Android Working With Volley and RecyclerView

Android Working With Volley and RecyclerView


Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation test link ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate another link velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make link again with longer anchor text a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with test link the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using ‘Content here, content here’, making it look like readable English.

Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for ‘lorem ipsum’ will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).

Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical test link here too Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of “de Finibus Bonorum et Malorum” (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, “Lorem ipsum dolor sit amet..”, comes from a line in section 1.10.32.


1. Berikut contoh codingan di MainActivity
package com.zarslamgants25.updatesport;

import android.content.Context;
import android.content.Intent;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.squareup.picasso.Picasso;

import java.util.ArrayList;
import java.util.HashMap;

/** * Created by WIN10 on 21/02/2017. */
public class MyAdapter extends RecyclerView.Adapter<MyAdapter.ViewHolder>{

    Context context;
    ArrayList<HashMap<String, String>> listData;

    public MyAdapter(Context context, ArrayList<HashMap<String, String>> listData) {
        this.context = context;
        this.listData = listData;
    }

    @Override    public MyAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.list_item, null);
        return new ViewHolder(view);
    }

    @Override    public void onBindViewHolder(MyAdapter.ViewHolder holder, final int position) {

        holder.tvheading.setText(listData.get(position).get("id"));
        holder.tvdesc.setText(listData.get(position).get("judul"));
        final String id_articel = listData.get(position).get("id");

        Picasso.with(context)
                .load(listData.get(position).get("gambar"))
                .placeholder(R.mipmap.ic_launcher)
                .into(holder.imageView);

        holder.relativeLayout.setOnClickListener(new View.OnClickListener() {
            @Override            public void onClick(View view) {
                Intent kirimKeDetail = new Intent(view.getContext(), DetailArtikelActivity.class);
                kirimKeDetail.putExtra("id_artikel", id_articel);
                view.getContext().startActivity(kirimKeDetail);
            }
        });

    }

    @Override    public int getItemCount() {
        return listData.size();
    }

    public class ViewHolder extends RecyclerView.ViewHolder {

        public TextView tvheading;
        public TextView tvdesc;
        public ImageView imageView;
        public RelativeLayout relativeLayout;

        public ViewHolder(View itemView) {
            super(itemView);

            tvheading = (TextView) itemView.findViewById(R.id.textViewHeading);
            tvdesc = (TextView) itemView.findViewById(R.id.textViewDesc);
            imageView = (ImageView) itemView.findViewById(R.id.imgIcon);
            relativeLayout = (RelativeLayout) itemView.findViewById(R.id.relativeLayout);

        }
    }


//===============================================TANPA HASHMAP============================================================//    private List<ListItem> listItems;//    private Context context;////        public MyAdapter(List<ListItem> listItems, Context context) {//        this.listItems = listItems;//        this.context = context;//    }////    @Override//    public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {//        View v = LayoutInflater.from(parent.getContext())//                .inflate(R.layout.list_item, parent, false);//        return new ViewHolder(v);//    }////    @Override//    public void onBindViewHolder(ViewHolder holder, int position) {//        ListItem listItem = listItems.get(position);////        holder.tvheading.setText(listItem.getHead());//        holder.tvdesc.setText(listItem.getDesc());////        Picasso.with(context)//                .load(listItem.getImageUrl())//                .into(holder.imageView);////    }////    @Override//    public int getItemCount() {//        return listItems.size();//    }////    public class ViewHolder extends RecyclerView.ViewHolder {////        public TextView tvheading;//        public TextView tvdesc;//        public ImageView imageView;////        public ViewHolder(View itemView) {//            super(itemView);////            tvheading = (TextView) itemView.findViewById(R.id.textViewHeading);//            tvdesc = (TextView) itemView.findViewById(R.id.textViewDesc);//            imageView = (ImageView) itemView.findViewById(R.id.imgIcon);//        }//    }//===============================================TANPA HASHMAP============================================================}
Read More

Android Tutorial RecyclerView with CardView

Android Tutorial RecyclerView with CardView



Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation test link ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate another link velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make link again with longer anchor text a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with test link the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using ‘Content here, content here’, making it look like readable English.

Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for ‘lorem ipsum’ will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).


Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical test link here too Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of “de Finibus Bonorum et Malorum” (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, “Lorem ipsum dolor sit amet..”, comes from a line in section 1.10.32.


1. Lorem ipsum dolor sit amet
2. Lorem ipsum dolor sit amet

package com.zarslamgants25.updatesport;

import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.CollapsingToolbarLayout;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.webkit.WebView;
import android.widget.ImageView;
import android.widget.Toast;

import com.android.volley.Request;
import com.android.volley.RequestQueue;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.StringRequest;
import com.android.volley.toolbox.Volley;
import com.squareup.picasso.Picasso;

import org.json.JSONException;
import org.json.JSONObject;

public class DetailArtikelActivity extends AppCompatActivity {

    private WebView webViewArtikel;
    private ImageView imageView;
    private CollapsingToolbarLayout collapsingToolbarLayout;
    private String id_detail, judul_detail, conten_detail, url_gambar;


    @Override    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_detail_artikel);
        Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
        setSupportActionBar(toolbar);

        ActionBar actionBar = getSupportActionBar();
        actionBar.setDisplayHomeAsUpEnabled(true);

        getSupportActionBar().setDisplayHomeAsUpEnabled(true);
        getSupportActionBar().setDefaultDisplayHomeAsUpEnabled(true);
        getSupportActionBar().setHomeButtonEnabled(true);

        FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
        fab.setOnClickListener(new View.OnClickListener() {
            @Override            public void onClick(View view) {
                Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
                        .setAction("Action", null).show();
            }
        });
        getSupportActionBar().setDisplayHomeAsUpEnabled(true);

        webViewArtikel = (WebView) findViewById(R.id.webViewDetail);
        imageView = (ImageView) findViewById(R.id.imageViewDetail);
        collapsingToolbarLayout = (CollapsingToolbarLayout) findViewById(R.id.toolbar_layout);

        Intent menerimaIntent = getIntent();
        id_detail = menerimaIntent.getStringExtra("id_artikel");
        RequestDetailServer("http://192.168.100.14/update_sport/detailArtikel.php?send_id_articel=" + id_detail);


    }

    private void RequestDetailServer(String urlrequest) {
        RequestQueue requestQueue = Volley.newRequestQueue(this);
        StringRequest stringRequest = new StringRequest(Request.Method.GET, urlrequest, new Response.Listener<String>() {
            @Override            public void onResponse(String response) {
                try {
                    JSONObject json = new JSONObject(response);
                    JSONObject dataDetail = json.getJSONObject("hasil");
                    judul_detail = dataDetail.getString("judul_artikel");
                    conten_detail = dataDetail.getString("conten_artikel");
                    url_gambar = dataDetail.getString("url_gambar");

                    setContent(judul_detail, conten_detail, url_gambar);
                } catch (JSONException e) {
                    e.printStackTrace();
                }
            }
        }, new Response.ErrorListener() {
            @Override            public void onErrorResponse(VolleyError error) {
                Toast.makeText(getApplicationContext(), "gagal bunggg", Toast.LENGTH_LONG).show();

            }
        });
        requestQueue.add(stringRequest);
    }

    private void setContent(String judul_detail, String conten_detail, String url_gambar) {
        Picasso.with(getApplicationContext())
                .load(url_gambar)
                .placeholder(R.mipmap.ic_launcher)
                .into(imageView);
        collapsingToolbarLayout.setTitle(judul_detail);
        String contentwvContent = "<html><body>" + conten_detail + "</body></html>";
        webViewArtikel.loadData(contentwvContent, "text/html", null);
    }
}

3. tiga tiga tiga



It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using ‘Content here, content here’, making it look like readable English.

Read More

Senin, 13 Februari 2017

Tutorial Floating Action Bar

Tutorial Floating Action Bar

sskdhvbsfvbshfvbshbvshbvusvbsudbvusbdvshbdvhsbdvhsdbvjhsbdvusbdvusbdvhsdbvusdvhsbvsdv.svdsgvdudvusdvbusydvbsuydvbsydvbsdhvbshdvbjsdvhbsdhvbsjdvhbsdjvhbsjhvbsjhvbsjvbshdbvhsjvbsdbvshjdvbhbajbsjdvbjksabhvdjaksbhdvjhsabdvjshabdvjshdvbjsabvhdjksabhdvjskavbhdkjsabhvdjsakvbhdjsavbsjakbhvdjshavbdjsavbhdkjsadvbsajkdvbasjdvbsjhvbdsadv.

tara selesai deh
Read More

Android Working With Google Maps V2

Google Maps


Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation test link ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate another link velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make link again with longer anchor text a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with test link the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using ‘Content here, content here’, making it look like readable English.

Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical test link here too Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of “de Finibus Bonorum et Malorum” (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, “Lorem ipsum dolor sit amet..”, comes from a line in section 1.10.32.

1. Contrary to popular belief,
2. Lorem ipsum dolor sit amet
3.Lorem ipsum dolor sit amet
4. Lorem ipsum dolor sit amet

package com.zarslamgants25.realmdatabasewithreplacingsqliteandcoredatabyabidzar.adapters;

        import android.content.Context;
        import android.view.View;
        import android.view.ViewGroup;

        import io.realm.RealmBaseAdapter;
        import io.realm.RealmObject;
        import io.realm.RealmResults;

/** * Created by WIN10 on 13/02/2017. */
public class RealmModelAdapter<T extends RealmObject> extends RealmBaseAdapter<T> {

    public RealmModelAdapter(Context context, RealmResults<T> realmResults, boolean automaticUpdate) {
        super(context, realmResults, automaticUpdate);
    }

    @Override    public View getView(int position, View convertView, ViewGroup parent) {
        return null;
    }
}


Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for ‘lorem ipsum’ will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).
Read More

List View

TESTING List View

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation test link ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate another link velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make link again with longer anchor text a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with test link the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using ‘Content here, content here’, making it look like readable English.

Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for ‘lorem ipsum’ will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).

Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical test link here too Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of “de Finibus Bonorum et Malorum” (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, “Lorem ipsum dolor sit amet..”, comes from a line in section 1.10.32.



package com.zarslamgants25.realmdatabasewithreplacingsqliteandcoredatabyabidzar.adapters;

import android.support.v7.widget.RecyclerView;

import io.realm.RealmBaseAdapter;
import io.realm.RealmObject;

/** * Created by WIN10 on 13/02/2017. */
public abstract class RealmRecyclerViewAdapater<T extends RealmObject> extends RecyclerView.Adapter {
    private RealmBaseAdapter<T> realmBaseAdapter;

    public T getItem(int position) {

        return realmBaseAdapter.getItem(position);
    }

    public RealmBaseAdapter<T> getRealmAdapter() {

        return realmBaseAdapter;
    }

    public void setRealmAdapter(RealmBaseAdapter<T> realmAdapter) {

        realmBaseAdapter = realmAdapter;
    }

}
Read More