Ноябрь 2020

Kotlin Урок 16: Сохранение данных

MainActivity.java import android.content.Contextimport android.content.SharedPreferencesimport androidx.appcompat.app.AppCompatActivityimport android.os.Bundleimport android.view.Viewimport kotlinx.android.synthetic.main.activity_main.*class MainActivity : AppCompatActivity() { var counter = 0 var test = "0" var pref : SharedPreferences? =… Подробнее »Kotlin Урок 16: Сохранение данных

DoYouKnow Энциклопедия/Урок 12

MainActivity.java import androidx.appcompat.app.AppCompatActivity;import androidx.fragment.app.FragmentManager;import androidx.recyclerview.widget.LinearLayoutManager;import androidx.recyclerview.widget.RecyclerView;import android.content.SharedPreferences;import android.os.Bundle;import android.util.Log;import android.view.MenuItem;import android.widget.Toast;import com.neco_desarrollo.doyouknow.adapter.DataAdapter;import com.neco_desarrollo.doyouknow.adapter.ListItem;import com.neco_desarrollo.doyouknow.adapter.RecOnClickListener;import java.lang.reflect.Array;import java.util.ArrayList;import java.util.List;public class MainActivity extends AppCompatActivity implements NavItemSelectedListener { private… Подробнее »DoYouKnow Энциклопедия/Урок 12