layout
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:background="@color/colorPrimary"
android:layout_height="wrap_content">
<TextView
android:id="@+id/item_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:textSize="25sp" />
</RelativeLayout>
0x01 findViewById
private TextView item_tv;
item_tv = findViewById(R.id.item_tv);
item_tv.setText("text1");
0x02 getResources().getIdentifier()
int viewId = getResources().getIdentifier("item_tv", "id", getPackageNa