MainActivity.java
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
...
myList.create(this, R.id.mylist)
...
}
MyList.java
public void create(Activity activity, int id)
{
...
CustomAdapter adapter = new CustomAdapter(activity, R.layout.someTextView,
someVector);
...
}
CustomAdapter.java
@Override
public View getView(int position, View view, ViewGroup parent) {
...
EditText tx = view.findViewsWithText(R.id.someTextView);
...
}
If I try get EditText from another layout someTextView.xml
where is only EditView
i have error
Error inflating class EditText
I tried clean/rebuild my project I've tried method from this thread:
enter link description here but it not work for my case
I saw in other threads that it can be problem with this line in build.gradle
classpath 'com.android.tools.build:gradle:3.3.0'
but it was with 2.2-alpha (downgrade to 2.1)
How can I get access to EditText
from another layout?