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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Nam CastrolPosted Oct 24, 2019, 6:43 AM
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);
}
}
}
Amit GuptaPosted Oct 24, 2019, 6:33 AM
Amit GuptaPosted Oct 24, 2019, 6:33 AM
Nam CastrolPosted Oct 24, 2019, 6:00 AM
Amit GuptaPosted Oct 23, 2019, 7:55 AM
Nam CastrolPosted Oct 23, 2019, 7:19 AM
Nam CastrolPosted Oct 23, 2019, 6:09 AM
Hari MurugesanPosted Oct 22, 2019, 11:58 PM
Amit GuptaPosted Oct 22, 2019, 12:47 PM
Nam CastrolPosted Oct 22, 2019, 12:33 PM
Amit GuptaPosted Oct 22, 2019, 12:54 AM