Custom AutoCompleteTextView public class MainActivity extends AppCompatActivity { private List countryList; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); fillCountryList(); AutoCompleteTextView editText = findViewById(R.id.actv); AutoCompleteAdapter adapter = new AutoCompleteAdapter(this, countryList); e..
SpannableString Text Color public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); TextView textView = findViewById(R.id.color_tv); String text = "I want THIS and THIS to be colored"; SpannableString ss = new SpannableString(text); SpannableStringBuilder ssb = ..
Remove the ActionBar style.xml AndroidManifest.xml MainActivity.java public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Button btn1 = findViewById(R.id.activity_one); btn1.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v..