Сентябрь 2020

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

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 Энциклопедия/Урок 11

Урок 12N/SharedPreferences

MainActivity.java import androidx.appcompat.app.AppCompatActivity; import android.content.SharedPreferences; import android.os.Bundle; import android.view.View; import android.widget.TextView; public class MainActivity extends AppCompatActivity { private SharedPreferences pref; private TextView tvResult; private int… Подробнее »Урок 12N/SharedPreferences