the onclick attribute i cannot find it can u plz give me the solution
@abdohashem54844 жыл бұрын
@@PracticalCoding I cannot find onclick attribute in the attributes
@abdohashem54844 жыл бұрын
@@PracticalCoding it gives error also but i changed the computer but also android studio gives me a error called "Ambiguous method call. Both findViewById (int) in AppCompatActivity and findViewById (int) in Activity match" i cannot solve it if u solved it for me i will be glade for that
@abdohashem54844 жыл бұрын
can you give me your whatsapp number to send photo of that error
@PracticalCoding4 жыл бұрын
Moved my account to a brand account so my comments got deleted. Just added some o them back @abdo hashem What I would try doing is going into the XML file that contains your button and manually writing in the onClick attribute. Just type in android:onClick="NameOfYourFunction" within the button tag and you should be good to go. I'm not sure why it's not in the panel by default but that line of code should work. Let me know if this solves the issue. If not we can try something else
@PracticalCoding4 жыл бұрын
@abdo hashem I don't have a whatsapp account but you can send me a DM on Instagram if you want. My username is _jasonsubick