RedApparat / Fotoapparat

Making Camera for Android more friendly. 📸
Apache License 2.0
3.82k stars 405 forks source link

How to enable 'tap to focus' in my Fotoapparat java activity? #214

Closed iamutkarshtiwari closed 6 years ago

iamutkarshtiwari commented 6 years ago

Please check if your issue exists.

Issues should only be posted after you have been able to reproduce them and confirm that they are either a missing functionality or a bug.

What are you trying to achieve or the steps to reproduce?

I checked the sample app but the MainActivity.kt is in kotlin and I didn't find any code for adding the tap-to-focus in the Activity.java. Could anyone please point me in the right direction?

// Wrap code in markdown source tags

How did you initialize FA?

// Wrap code in markdown source tags

What was the result you received?

What did you expect?

Context:

Diolor commented 6 years ago

Hey! @Diederikjh already helped us with this and added the example in the ActivityJava. Take a look again in the master branch!

iamutkarshtiwari commented 6 years ago

@Diolor I am unable to access the .focusView() method of Fotoapparat builder.

screen shot 2018-02-20 at 1 31 22 pm

Diolor commented 6 years ago

Which version are you using? You need -SNAPSHOT, as we have not release this yet

iamutkarshtiwari commented 6 years ago

@Diolor I am using 2.2.0. Thank you for the suggestion :)