Android Open Source - Yeah-MaterialLove Covered Technic Adapter






From Project

Back to project page Yeah-MaterialLove.

License

The source code is released under:

Apache License

If you think the Android project Yeah-MaterialLove listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.yeahdev.materiallovetesting.adapter;
/*from   w  w  w  .  j a va2  s.c o  m*/
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;

import com.devspark.robototextview.widget.RobotoTextView;
import com.yeahdev.materiallovetesting.R;


public class CoveredTechnicAdapter extends ArrayAdapter<String> {

    private final static String[] TECHNICS = {
            "CardView",
            "Communication between Activity and Fragments",
            "DrawerMenu",
            "Extend ArrayAdapter",
            "Extend ItemViewHolder",
            "Floating Action Button",
            "Fragments",
            "Google + Login",
            "Intents",
            "ListView",
            "RecyclerView",
            "Scene Transition Animation",
            "SnackBar",
            "Toolbar",
            "Material Dialogs"
    };

    public CoveredTechnicAdapter(Context context) {
        super(context, R.layout.listview_item_covered_technic);
    }

    @Override
    public int getCount() {
        return TECHNICS.length;
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        if (convertView == null) {
            convertView = LayoutInflater.from(getContext()).inflate(R.layout.listview_item_covered_technic, parent, false);
        }

        ((RobotoTextView) convertView.findViewById(R.id.tv_listview_item_CT)).setText(TECHNICS[position]);

        return convertView;
    }
}




Java Source Code List

com.yeahdev.materiallovetesting.ApplicationTest.java
com.yeahdev.materiallovetesting.activities.GPlusLoginActivity.java
com.yeahdev.materiallovetesting.activities.MainActivity.java
com.yeahdev.materiallovetesting.adapter.AboutAdapter.java
com.yeahdev.materiallovetesting.adapter.CoveredTechnicAdapter.java
com.yeahdev.materiallovetesting.adapter.DrawerListAdapter.java
com.yeahdev.materiallovetesting.easyadapterexample.BlindtextViewHolder.java
com.yeahdev.materiallovetesting.easyadapterexample.Blindtext.java
com.yeahdev.materiallovetesting.easyadapterexample.DataProvider.java
com.yeahdev.materiallovetesting.fragments.AboutFragment.java
com.yeahdev.materiallovetesting.fragments.BugreportFragment.java
com.yeahdev.materiallovetesting.fragments.FeedbackFragment.java
com.yeahdev.materiallovetesting.fragments.GithubIssusFragment.java
com.yeahdev.materiallovetesting.fragments.RecyclerViewFragment.java
com.yeahdev.materiallovetesting.fragments.WelcomeFragment.java
com.yeahdev.materiallovetesting.interfaces.IPassSelectedFragmentFromFAB.java