I was using TabLayout, but after copying it in my src, I am getting following errors:
(1) android.support.v7.internal.widget.CompatTextView can not be resolved
(2) styleable cannot be resolved or is not a field Though I checked other answers in stackoverflow, but failed to get proper solution. I already imported android.R
(3) I checked that in my android-support-v7-appcompat.jar the class CompatTextView is missing. How this can be possible.
(4) Will there be any legal issue if I copy the TabLayout class given by google for my app? Please help.
- Update:
I added
import android.support.v7.appcompat.R;instead ofandroid.Rand getting following several error likeWidget_Design_TabLayout cannot be resolved or is not a fieldTabLayout_tabIndicatorHeight cannot be resolved or is not a fieldTabLayout_tabIndicatorColor cannot be resolved or is not a fieldetc. Please suggest.