Android app crash after setText on a TextView
问题 I'm trying to set the text of a TextView programmatically. In my app I'm calling a method which creates a TableRow with a View inside. This View contains a TextView . And now I'm trying to change the Text with the method setText() . city_layout.xml ... <TextView android:id="@+id/textView_City_Name" android:layout_width="match_parent" android:layout_height="match_parent" android:text="@string/city_name" android:textColor="#FFFFFF" android:textSize="35dp" android:gravity="center_horizontal"