Which user button should I use, which can be moved left and right, for example, by turning on / off the location button in the Android twitter app, as shown below:
as well as any link or guide to create such a button?
thanks
Use a simple ToggleButton in combination with StateListDrawable set as background.
A sample ToggleButton can be found here .
ToggleButton
Basically you create an image for the marked and unchecked state of the button. You set the appropriate images to StateListDrawable and set that StateListDrawable as the background of ToggleButtos .
StateListDrawable
ToggleButtos
Source: https://habr.com/ru/post/1396806/More articles:Finding multiple attributes from a GROUP BY function in a query - sqlHow to apply Zend_Filter_StripTags to an array in zendFramework? - phpDetecting unused CSS classes - cssarray types and their position - cAndroid Button Toggle / Segmented Button - androidhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1396807/custom-warning-as-printfs-too-many-arguments-for-format&usg=ALkJrhgOrURKfCpLt-Jc4woQ9nNrKkOIAQclass vs auxiliary routines - C ++ - c ++Reordering list items so that consecutive items replace each other? - sortingAre there any versions of WebRTC that allow you to record video? - browserconverting byte [] to string - javaAll Articles