android.widget.TableLayout.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(3.0k)|赞(0)|评价(0)|浏览(136)

本文整理了Java中android.widget.TableLayout.<init>()方法的一些代码示例,展示了TableLayout.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TableLayout.<init>()方法的具体详情如下:
包路径:android.widget.TableLayout
类名称:TableLayout
方法名:<init>

TableLayout.<init>介绍

暂无

代码示例

代码示例来源:origin: firebase/firebase-jobdispatcher-android

private View createViewForJob(JobParameters job) {
 TableLayout tableLayout = new TableLayout(this);
 addRow(tableLayout, "TAG = " + job.getTag());
 addRow(tableLayout, "SERVICE = " + job.getService());
 if (job.getTriggerReason() != null
   && job.getTrigger() instanceof JobTrigger.ContentUriTrigger) {
  ContentUriTrigger trigger = (ContentUriTrigger) job.getTrigger();
  addRow(tableLayout, "OBSERVED URIs = ");
  for (ObservedUri uri : trigger.getUris()) {
   addRow(
     tableLayout,
     "URI = " + uri.getUri() + ", flags = " + Integer.toBinaryString(uri.getFlags()));
  }
  addRow(tableLayout, "TRIGGERED URIs = ");
  for (Uri uri : job.getTriggerReason().getTriggeredContentUris()) {
   addRow(tableLayout, uri.toString());
  }
 }
 ScrollView scrollView = new ScrollView(this);
 scrollView.addView(tableLayout);
 return scrollView;
}

代码示例来源:origin: Catrobat/Paintroid

public PresetSelectorView(Context context) {
  super(context);
  tableLayout = new TableLayout(context);
  init(context);
}

代码示例来源:origin: Catrobat/Paintroid

public PresetSelectorView(Context context, AttributeSet attrs) {
  super(context, attrs);
  tableLayout = new TableLayout(context, attrs);
  init(context);
}

代码示例来源:origin: org.metawidget.modules/metawidget-all

/**
   * Initialize the TableLayout.
   * <p>
   * We don't initialize the TableLayout unless we find we have something to put into it, because
   * Android doesn't like empty TableLayouts.
   */

  @Override
  protected android.widget.TableLayout getLayout( ViewGroup container ) {

    if ( container.getChildCount() == 0 || !( container.getChildAt( container.getChildCount() - 1 ) instanceof android.widget.TableLayout ) ) {
      android.widget.TableLayout layout = new android.widget.TableLayout( container.getContext() );
      layout.setOrientation( android.widget.LinearLayout.VERTICAL );
      layout.setColumnStretchable( 1, true );

      container.addView( layout, new android.widget.LinearLayout.LayoutParams( ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT ) );
      return layout;
    }

    return (android.widget.TableLayout) container.getChildAt( container.getChildCount() - 1 );
  }
}

代码示例来源:origin: daquexian/chaoli-forum-for-android-2

TableLayout tableLayout = new TableLayout(mContext);

代码示例来源:origin: firelotus/Meteorite

tableLayout = new TableLayout(DBFlowManagerActivity.this);
tableLayout.setHorizontalScrollBarEnabled(true);
hsv.addView(tableLayout);

代码示例来源:origin: fire3/sailorcast

TableLayout tableLayout = new TableLayout(getActivity());
p = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);
p.setMargins(10,0,10,0);

代码示例来源:origin: livroandroid/5ed

getActionBar().setDisplayHomeAsUpEnabled(true);
TableLayout tabela = new TableLayout(this);
tabela.setPadding(10, 10, 10, 10);
tabela.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));

相关文章