K
K
kenny1822017-02-04 02:21:08
Android
kenny182, 2017-02-04 02:21:08

How to make a go to settings button on the top bar in Xamarin.Android?

I can't find the item I need. I can't figure out how to work with the top panel at all

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Artem Voronov, 2017-02-04
@kenny182

Everything is described with examples in the manuals on the Xamarin website https://developer.xamarin.com/guides/android/user_...

R
Rou1997, 2017-02-04
@Rou1997

The "top bar" is probably ActionBar (standard in Android) or Support ActionBar (from the AppCompat v7 library) in the case of Xamarin, most likely the first one, you can add buttons there in the method onCreateOptionsMenu, override this method in your Activity, and either do inflate a ready-made XML layout of the menu type, or you add the element(s) manually using menu.add, look for C# examples using the onCreateOptionsMenu keyword, but as always, you should not rely on a weak Xamarin ecosystem, you should also look for examples in Java to translate them into C#.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question