コード例 #1
0
ファイル: BeiKe.cs プロジェクト: junbao520/AndroidApp
        protected override void InitBrokenRules()
        {
            mainLinerLayout = (LinearLayout)this.FindViewById(Resource.Id.RuleBreakTable);
            LinearLayout linearLayout = (LinearLayout)LayoutInflater.From(this).Inflate(Resource.Layout.tableBeiKe, null);

            TableTextView txt = (TableTextView)linearLayout.FindViewById(Resource.Id.list_1_1);

            txt.SetText("序号", TextView.BufferType.Normal);
            txt.SetTextColor(Color.Black);
            txt.SetBackgroundColor(Color.White);

            txt = (TableTextView)linearLayout.FindViewById(Resource.Id.list_1_2);
            txt.SetText("错误信息", TextView.BufferType.Normal);
            txt.SetTextColor(Color.Black);
            txt.SetBackgroundColor(Color.White);

            txt = (TableTextView)linearLayout.FindViewById(Resource.Id.list_1_3);
            txt.SetText("扣分", TextView.BufferType.Normal);
            txt.SetTextColor(Color.Black);
            txt.SetBackgroundColor(Color.White);

            txt = (TableTextView)linearLayout.FindViewById(Resource.Id.list_1_4);
            txt.SetText("时间", TextView.BufferType.Normal);
            txt.SetTextColor(Color.Black);
            txt.SetBackgroundColor(Color.White);

            txt = (TableTextView)linearLayout.FindViewById(Resource.Id.list_1_5);
            txt.SetText("代码", TextView.BufferType.Normal);
            txt.SetTextColor(Color.Black);
            txt.SetBackgroundColor(Color.White);

            mainLinerLayout.AddView(linearLayout);
        }
コード例 #2
0
ファイル: JingTang.cs プロジェクト: junbao520/AndroidApp
        private void InitBrokenRules()
        {
            mainLinerLayout = (LinearLayout)this.FindViewById(Resource.Id.RuleBreakTable);
            relativeLayout  = (RelativeLayout)LayoutInflater.From(this).Inflate(Resource.Layout.tableJingTang, null);

            TableTextView txt = (TableTextView)relativeLayout.FindViewById(Resource.Id.list_1_1);

            txt.SetText("序号", TextView.BufferType.Normal);
            txt.SetTextColor(Color.Black);
            txt.SetBackgroundColor(Color.White);

            txt = (TableTextView)relativeLayout.FindViewById(Resource.Id.list_1_2);
            txt.SetText("错误信息", TextView.BufferType.Normal);
            txt.SetTextColor(Color.Black);
            txt.SetBackgroundColor(Color.White);

            txt = (TableTextView)relativeLayout.FindViewById(Resource.Id.list_1_3);
            txt.SetText("扣分", TextView.BufferType.Normal);
            txt.SetTextColor(Color.Black);
            txt.SetBackgroundColor(Color.White);

            txt = (TableTextView)relativeLayout.FindViewById(Resource.Id.list_1_4);
            txt.SetText("错误时间", TextView.BufferType.Normal);
            txt.SetTextColor(Color.Black);
            txt.SetBackgroundColor(Color.White);

            txt = (TableTextView)relativeLayout.FindViewById(Resource.Id.list_1_5);
            txt.SetText("错误代码", TextView.BufferType.Normal);
            txt.SetTextColor(Color.Black);
            txt.SetBackgroundColor(Color.White);

            mainLinerLayout.AddView(relativeLayout);
        }
コード例 #3
0
ファイル: HuaZhongSmall.cs プロジェクト: junbao520/AndroidApp
        private void InitBrokenRules()
        {
            mainLinerLayout = (LinearLayout)this.FindViewById(Resource.Id.RuleBreakTable);
            relativeLayout  = (RelativeLayout)LayoutInflater.From(this).Inflate(Resource.Layout.tableHuaZhongSmall, null);
            mainLinerLayout.RemoveAllViews();

            TableTextView title = (TableTextView)relativeLayout.FindViewById(Resource.Id.list_1_1);

            title.SetText("扣分项目", TextView.BufferType.Normal);
            title.SetTextColor(Color.Black);
            title.SetBackgroundColor(Color.Yellow);

            title = (TableTextView)relativeLayout.FindViewById(Resource.Id.list_1_2);
            title.SetText("扣分", TextView.BufferType.Normal);
            title.SetTextColor(Color.Black);
            title.SetBackgroundColor(Color.Yellow);
            title = (TableTextView)relativeLayout.FindViewById(Resource.Id.list_1_3);
            title.SetText("扣分原因", TextView.BufferType.Normal);
            title.SetTextColor(Color.Black);
            title.SetBackgroundColor(Color.Yellow);
            mainLinerLayout.AddView(relativeLayout);
        }