Hi
I'm trying insert a searchview on appcompat actionbar:
But a get this error:
ACToolBarLight1.AddView(sv,50%x,7%y,Gravity.NO_GR
javac 1.8.0_121
src\b4a\example\main.java:360: error: incompatible types: ACSearchViewWrapper cannot be converted to View
mostCurrent._actoolbarlight1.AddView((android.view.View)(mostCurrent._sv),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (50),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (7),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.Gravity.NO_GRAVITY);
I'm trying insert a searchview on appcompat actionbar:
B4X:
Dim sv As ACSearchView
B4X:
sv.Initialize("")
sv.QueryHint = "Search"
ACToolBarLight1.AddView(sv,50%x,7%y,Gravity.NO_GRAVITY)
But a get this error:
ACToolBarLight1.AddView(sv,50%x,7%y,Gravity.NO_GR
javac 1.8.0_121
src\b4a\example\main.java:360: error: incompatible types: ACSearchViewWrapper cannot be converted to View
mostCurrent._actoolbarlight1.AddView((android.view.View)(mostCurrent._sv),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (50),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (7),mostCurrent.activityBA),anywheresoftware.b4a.keywords.Common.Gravity.NO_GRAVITY);