コード例 #1
0
ファイル: FileTextView.cs プロジェクト: TakajiMesser/TagIt
        public void SetFile(string filePath)
        {
            _filePath = filePath;
            _adapter  = new TextRowAdapter(Context)
            {
                RowTextSize          = RowTextSize,
                RowTextColor         = RowTextColor,
                RowTypeface          = RowTypeface,
                RowBackground        = RowBackground,
                LineNumberTextSize   = LineNumberTextSize,
                LineNumberColor      = LineNumberColor,
                LineNumberTypeface   = LineNumberTypeface,
                LineNumberBackground = LineNumberBackground,
                VerticalDivider      = VerticalRowDivider
            };
            _adapter.ItemClick     += Adapter_ItemClick;
            _adapter.ItemLongClick += Adapter_ItemLongClick;
            _adapter.AddRows(GetNextRowSet());

            _rows.SetAdapter(_adapter);
        }
コード例 #2
0
 public TextRowFilter(TextRowAdapter adapter)
 {
     _adapter = adapter;
 }