Top "Findviewbyid" questions

findViewById(int id) is a method of the View and Activity classes.

adding touch listener for liner layout filled with buttons

I added a touch event to a linear layout to respond to swipe gestures, and it works well. However, when …

button android-linearlayout touch-event swipe-gesture findviewbyid
How to use findViewById variable in another method. Java Android

I am very new to programming and am teaching myself so sorry if my code is ugly. I am trying …

java android variables switch-statement findviewbyid
How does findViewById work?

package com.example.dell.helloworld; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.LayoutInflater; import …

android findviewbyid
Android Activity findviewbyid() is null

import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.widget.Button; public class FileExplorerActivity extends …

android android-intent findviewbyid
Kotlin Android View Binding: findViewById vs Butterknife vs Kotlin Android Extension

I'm trying to figure out the best way to do Android View Binding in Kotlin. It seems like there are …

android kotlin findviewbyid butterknife kotlin-android-extensions
NoSuchFieldError on findViewById()

There's two android projects I want to merge, one is Main and the other is linked as Library. But I …

android runtime-error findviewbyid
NullPointerException when use findViewById() in AlertDialog.Builder

This is my code @Override public void onClick(View v) { final AlertDialog.Builder adb = new AlertDialog.Builder(getApplicationContext()); adb.setView(…

android dialog nullpointerexception findviewbyid
Difference between view.findViewById(R.id....) and just findViewById(R.id...)

I'm trying to implement a Custom Array Adapter , Problem is my code crashes when I use ImageView imageView=(ImageView)findViewById(…

android android-view findviewbyid
Loading timePickerDialog from a fragment

I am trying to use a custom time picker and then run the picker from a fragment. This is the …

android datetimepicker timepicker layout-inflater findviewbyid