Re: [android-developers] Re: ImageView not showing

2016-03-02 Thread Elijah Smith
I don't have that as an option. I want to store that layout in a variable, and the only R.id thing I could use is R.id.class. There is no option for R.id.activity_menu_on_loadup. What should I do instead? On Wed, Mar 2, 2016 at 10:02 AM, Justin Anderson wrote: > "RelativeLayout layout = (Relati

Re: [android-developers] Re: ImageView not showing

2016-03-02 Thread Justin Anderson
"RelativeLayout layout = (RelativeLayout) this.findViewById(R.layout. activity_menu_on_loadup);" findViewById requires an id resource... not a layout resource. That means what you pass in to findViewById should look like this: R.id.my_view_id On Tue, Mar 1, 2016 at 8:05 PM Elijah Smith wrote:

[android-developers] Re: ImageView not showing

2016-03-01 Thread Elijah Smith
I added the imageview to the layout, but accessing the layout has an underline in Intellij. It says: "Expected resource of the type int". I don't call this an error because it doesn't seem to actually be causing one, but I am confused as to what it wants me to do. RelativeLayout layout = (Relat

Re: [android-developers] Re: Imageview not Showing Image on Android 2.2 and not on Android 4.0

2013-03-12 Thread Brad Stintson
Group please help me out. On Mar 9, 2013 5:30 PM, "Brad Stintson" wrote: > Dear Group, > > I have attached the images of the above mentioned problem. > > Please help me why this problem is occurring. > > > On Wed, Mar 6, 2013 at 12:48 AM, bob wrote: > >> Why would you have a ScrollView where the

[android-developers] Re: Imageview not Showing Image on Android 2.2 and not on Android 4.0

2013-03-05 Thread bob
Why would you have a ScrollView where the width and height are set to * wrap_content*? How will it ever have anything to scroll if it is always sized to its content? On Tuesday, March 5, 2013 10:46:22 AM UTC-6, Geek wrote: > > I wrote following code in xml file but Imageview (shown in bol

[android-developers] Re: ImageView not showing image

2011-04-25 Thread kaundinya
Hi, Try changing the image name to some alpha character like imgone, imgtwo... and running the code. regards, Nagaraj Rao On Apr 25, 3:54 pm, mack2978 wrote: > Hi All, > > I am trying to display the image on run time using ImageView, but it > is not showing up, below is the code: Please sugegst

[android-developers] Re: ImageView not showing image

2011-04-25 Thread Vishal
may be help try this ImageView mImageView = new ImageView(this); mImageView.setScaleType(ImageView.ScaleType.FIT_CENTER); mImageView.setImageResource(R.drawable.wall_img02); mImageView.setFocusable(true); mImageView.setFocusableInTouchMode(true); mImageView.invalidate(); setContentView(R.layout.my

[android-developers] Re: ImageView not showing image

2011-04-25 Thread Vishal
try this ImageView mImageView = new ImageView(this); mImageView.setScaleType(ImageView.ScaleType.FIT_CENTER); mImageView.setImageResource(R.drawable.wall_img02); mImageView.setFocusable(true); mImageView.setFocusableInTouchMode(true); mImageView.invalidate(); setContentView(R.layout.myimagevie

[android-developers] Re: ImageView not showing image

2011-04-25 Thread mack2978
Got fix...Thanks On Apr 25, 4:29 pm, Filip Havlicek wrote: > Urging for help won't help you, unless you want to repel those who might > give you an advice. > > Post your R.layout.myimageview XML. Does it crash or just not showing up? > > Best regards, > Filip Havlicek > > 2011/4/25 mack2978 > >

Re: [android-developers] Re: ImageView not showing image

2011-04-25 Thread Filip Havlicek
Urging for help won't help you, unless you want to repel those who might give you an advice. Post your R.layout.myimageview XML. Does it crash or just not showing up? Best regards, Filip Havlicek 2011/4/25 mack2978 > Pls help.. > > On Apr 25, 3:54 pm, mack2978 wrote: > > Hi All, > > > > I am

[android-developers] Re: ImageView not showing image

2011-04-25 Thread mack2978
Pls help.. On Apr 25, 3:54 pm, mack2978 wrote: > Hi All, > > I am trying to display the image on run time using ImageView, but it > is not showing up, below is the code: Please sugegst what is the issue > > super.onCreate(savedInstanceState); > setContentView(R.layout.myimageview); > mImageView =