SlidingTabLayout
how can i make all pages have different xml files, because i want to design and make each page different..# following the video of xamarin android tutrorial sliding tab Layout
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Hari MurugesanRank #3,889 · 382 reputationPosted Oct 22, 2019, 7:58 PM EDT
Amit GuptaRank #190 · 12.8K reputationPosted Oct 21, 2019, 8:54 PM EDT
Nam Castrol33 reputationPosted Oct 22, 2019, 8:33 AM EDT
Amit GuptaRank #190 · 12.8K reputationPosted Oct 22, 2019, 8:47 AM EDT
Nam Castrol33 reputationPosted Oct 23, 2019, 2:09 AM EDT
Nam Castrol33 reputationPosted Oct 23, 2019, 3:19 AM EDT
Amit GuptaRank #190 · 12.8K reputationPosted Oct 23, 2019, 3:55 AM EDT
Nam Castrol33 reputationPosted Oct 24, 2019, 2:00 AM EDT
Amit GuptaRank #190 · 12.8K reputationPosted Oct 24, 2019, 2:33 AM EDT
Amit GuptaRank #190 · 12.8K reputationPosted Oct 24, 2019, 2:33 AM EDT
Nam Castrol33 reputationPosted Oct 24, 2019, 2:43 AM EDT
using Android.Widget;
using Android.OS;
using com.refractored;
using Android.Support.V4.View;
using Android.Util;
using Android.Support.V7.App;
{
[Activity(Label = "CRAA", MainLauncher = true, Icon = "@mipmap/icon", Theme = "@style/Theme.AppCompat.Light")]
public class MainActivity : AppCompatActivity
{
PagerSlidingTabStrip _tabs;
ViewPager _pager;
{
base.OnCreate(savedInstanceState);
_tabs = FindViewById
_pager.PageMargin = (int)TypedValue.ApplyDimension(ComplexUnitType.Dip, 8, Resources.DisplayMetrics);
{
"Crime Home",
"Camera",
"Audio",
"LogOut"
};
var adapter = new PagerAdapter(SupportFragmentManager, titles);
_pager.Adapter = adapter;
_pager.OffscreenPageLimit = titles.Length;
_tabs.SetViewPager(_pager);
}
}
}