Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.46 KB | None | 0 0
  1. using Android.App;
  2. using Android.OS;
  3. using Android.Support.V7.App;
  4.  
  5. namespace VirtualTour.Droid.Activities
  6. {
  7.     [Activity(Label = "BaseActivity")]
  8.     public abstract class BaseActivity : AppCompatActivity
  9.     {
  10.         protected abstract int LayoutResource { get; }
  11.  
  12.         protected override void OnCreate(Bundle savedInstanceState)
  13.         {
  14.             base.OnCreate(savedInstanceState);
  15.             SetContentView(LayoutResource);
  16.         }
  17.  
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement