예제 #1
0
        private void InitView()
        {
            //设置标题栏
            var btn_header_back = FindViewById <Button> (Resource.Id.btn_header_back);

            btn_header_back.Click += (sender, e) =>
            {
                this.Finish();
                OverridePendingTransition(Android.Resource.Animation.SlideInLeft, Android.Resource.Animation.SlideOutRight);
            };
            var tv_header_title = FindViewById <TextView> (Resource.Id.tv_header_title);

            tv_header_title.Text = "关于我们";
            var tv_appversion = FindViewById <TextView> (Resource.Id.tv_appversion);

            tv_appversion.Text = "乐老族Android版 V" + EldYoungUtil.GetAppVersionCode(this);
        }
예제 #2
0
        private void InitView()
        {
            //设置标题栏
            var img_header_back = FindViewById <ImageView> (Resource.Id.img_header_back);

            img_header_back.Click += (sender, e) =>
            {
                this.Finish();
                OverridePendingTransition(Android.Resource.Animation.SlideInLeft, Android.Resource.Animation.SlideOutRight);
            };

            var tv_back = FindViewById <TextView> (Resource.Id.tv_back);

            tv_back.Text = "返回";
            var tv_desc = FindViewById <TextView> (Resource.Id.tv_desc);

            tv_desc.Text = "关于我们";
            var tv_appversion = FindViewById <TextView> (Resource.Id.tv_appversion);

            tv_appversion.Text = "社区中心Android版 V" + EldYoungUtil.GetAppVersionCode(this);
        }