Back to project page sqlite-provider.
The source code is released under:
Apache License
If you think the Android project sqlite-provider listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.novoda.sqliteprovider.demo.ui.widget; /* w w w .ja v a2 s . co m*/ import android.content.Context; import android.util.AttributeSet; import android.widget.LinearLayout; import android.widget.TextView; import com.novoda.sqliteprovider.demo.R; public class UriSqlView extends LinearLayout { private TextView uriTextView; private TextView sqlTextView; public UriSqlView(Context context, AttributeSet attrs) { super(context, attrs); init(); } public UriSqlView(Context context) { super(context); init(); } private void init() { } @Override protected void onFinishInflate() { super.onFinishInflate(); uriTextView = (TextView) findViewById(R.id.view_uri_sql_uri); sqlTextView = (TextView) findViewById(R.id.view_uri_sql_sql); } public void setUri(String uri) { if (uriTextView != null) { uriTextView.setText(uri); } } public void setSql(String sql) { if (sqlTextView != null) { sqlTextView.setText(sql); } } }