Issue The imageView start_messaging is not clickable after the searchList visibility is made GONE from VISIBLE even though only the first item in recyclerView is clickable in that fragment but not this button. However the button is clickable before the
Continue readingTag: view
Admob native ads in Jetpack Compose?
Issue I am trying to implement a basic Native ad from adMob to fit the design of my app in Jetpack Compose, but I don’t understand how the onClick is supposed to be handled. I know that it is possible
Continue readingHow can I have common views and code in a parent class and re-utilize them in child Fragments?
Issue I have 3 fragments that have 5 common components: 1 TextView, 2 Button, 1 ProgressBar. Instead of calling findViewById, setText or setOnClickListener methods on each fragment with the same code (see below), I want to have this code in
Continue readingshow layout as view while performing api request
Issue im trying to show view layout which it’s xml layout while performing api request and remove it after the request is done the layout contains TextView and animation and after the layout is showing i need to set TextView
Continue readingHow to acces to a View under a View
Issue I’m a beginner in Android, I have a frameLayout which contains Draw view on top and ImageView (using PhotoView) on the back so I can draw on it. I want to add a feature to my ImageView so I
Continue readingReact native Modal, avoid resizing View when keyboard is opened (Android)
Issue I’m using a react-native Modal, which contains a View. The View has some TextInput elements. When the keyboard pops up, the View elements all collapse to fit into the remaining space, but I don’t want the View to change
Continue readingHow to scroll view to Top of screen
Issue I have a EditText in my android NestedScrollView and I want it to go to top when It’s focused, something like this: I tried: SmoothScrolling/Scrolling to a direct pixel, SmoothScrolling/Scrolling to the top of the view(or bottom) none of
Continue readingGet Background Color of a View in hex
Issue I want to get background color of a view in hex format. for example consider int getViewBackgroundColor(View view) my excepted return vaule is 0Xff256e78. How could I do this? thanks. Solution LinearLayout layout = (LinearLayout) findViewById(R.id.lay1); ColorDrawable viewColor =
Continue readingAndroid: Detect softkeyboard open
Issue When the soft keyboard opens I want a scroll view to scroll down to the bottom. For this I can use: fullScroll(View.FOCUS_DOWN); But how do I fire that command after the soft keyboard opening event triggers? Solution Per this
Continue readingFragment – should I reuse view in onCreateView and how should I do that?
Issue Actually, I always reused my view in my fragments like the following: private View mView = null; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { if (mView == null) mView = inflater.inflate(R.layout.view); return mView; } That worked,
Continue reading