如何使用:
<com.example.administrator.buzhouview.UnderLineLinearLayout
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/underline_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:line_margin_side="25dp"
app:line_dynamic_dimen="8dp"
android:orientation="vertical"
android:background="@android:color/white">
</com.example.administrator.buzhouview.UnderLineLinearLayout>
mUnderLineLinearLayout = (UnderLineLinearLayout) findViewById(R.id.underline_layout);
添加节点
View v = LayoutInflater.from(this).inflate(R.layout.item_test, mUnderLineLinearLayout, false);
((TextView) v.findViewById(R.id.tx_action)).setText("this is test " + i);
((TextView) v.findViewById(R.id.tx_action_time)).setText("2016-01-21");
((TextView) v.findViewById(R.id.tx_action_status)).setText("finish");
mUnderLineLinearLayout.addView(v);