Skip to content

Instantly share code, notes, and snippets.

Sudhanshu sud007

Block or report user

Report or block sud007

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
nj3roinck9j w0e9fnki0pnoin 5M6viskg5NmY s-0nwniefp9nn
sud007 / YourFragment.kt
Created Feb 26, 2019 — forked from rylexr/YourFragment.kt
Android navigation bar style with animation
View YourFragment.kt
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View {
binding = DataBindingUtil.inflate(inflater, R.layout.your_fragment, container, false)
binding.homeAction.setOnClickListener { select( }
binding.likesAction.setOnClickListener { select( }
binding.searchAction.setOnClickListener { select( }
binding.profileAction.setOnClickListener { select( }
return binding.root
fun select(id: Int) {
View gist:945a7bf8b07bdc0e30261f5805ad540a
PhoneStateListener phoneListener;
private void setupSignalStrength() {
final TelephonyManager manager = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
phoneListener = new PhoneStateListener() {
public void onSignalStrengthsChanged(SignalStrength signalStrength) {
if (manager.getNetworkOperator().equals("")) {
} else {
// See
sud007 /
Last active May 3, 2020
A simple gist to demonstrate How to change the App Language in Android.
public class MyContextWrapper extends ContextWrapper {
public MyContextWrapper(Context base) {
public static ContextWrapper wrap(Context context, String language) {
Configuration config = context.getResources().getConfiguration();
Locale sysLocale = null;
You can’t perform that action at this time.