« first day (1715 days earlier)      last day (1760 days later) » 

6:06 PM
no
that should work
 
user8232051
that's strange
 
user8232051
anyways, thanks for the help
 
try setting an onTouchListener instead
 
user8232051
okay
 
Hello
In my XML file, I'm using android.support.v7.widget.AppCompatImageView
Is there a way to write it only with AppCompatImageView?
Do I need the whole extension?
 
6:12 PM
You have to use the full link
same with ConstraintLayout (for reference in this context)
 
Why?
 
because the classes are external
All integrated classes are easily referenced, while external classes need the full link to prevent name conflicts
 
When I change from extends Activity to extends AppCompatActivity in my MainActivity, I don't need the full extension. However, some element styles suffer because of that.
 
If I have a TextView in my project, and add textView in a layout, it adds the default text view and not my custom one
 
Okay
Looking forward to this chat as I'm still beginning app development
 
user8232051
6:19 PM
okay onTouchListener is not working too
 
user8232051
@LunarWatcher
 
user8232051
but
 
user8232051
when I change the background of button
 
user8232051
and click on left bottom corner of the background
 
user8232051
it works
 
user8232051
6:20 PM
on using onClick Listener
 
user8232051
doesn't work if I click at the centre of the button
 
user8232051
complicated af
 
could be the size of the button
 
user8232051
what about it ?
 
OH
!!!
You are setting the background of the play button
change it to source
android:background="@drawable/btn_play" and set it to android:src="@drawable/btn_play"
 
user8232051
6:22 PM
okay
 
user8232051
done that
 
run it and check if it works now
 
user8232051
now it works but only when I click at left bottom corner
 
hm
weird
 
user8232051
so it is clickable at least I guess
 
user8232051
6:25 PM
and if I use android:background = "@null" , it stops working again
 
@nyconing I am making a long book and I want the book to scroll by its self.
@nyconing but when the user touches the screen the animation stops and when the user lifts his finger, the animation goes. (This works)
@nyconing what doesnt work is when the user flings the screen, it should cancel the animation and it should wait until the screen stops moving and then start the animation from that point.
 
7:07 PM
is it better to use FragmentStatePagerAdapter or FragmentPagerAdapter for multiple Fragments?
 

« first day (1715 days earlier)      last day (1760 days later) »