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 geek.bin...@gmail.com 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 b...@coolfone.comze.com wrote:

 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 bold) not
 Showing Image on Android 2.2 and not on Android 4.0

 Please help out.



 LinearLayout xmlns:android=http://schemas.**
 android.com/apk/res/android http://schemas.android.com/apk/res/android
 
 
 xmlns:tools=http://schemas.**android.com/toolshttp://schemas.android.com/tools
 
 android:layout_width=match_**parent
 android:layout_height=match_**parent
 android:orientation=vertical 

 LinearLayout
 android:layout_width=fill_**parent
 android:layout_height=fill_**parent
 android:layout_gravity=fill
 android:layout_weight=1 

 ScrollView
 android:layout_width=wrap_**content
 android:layout_height=wrap_**content
 android:id=@+id/**imgScrollView 

 *ImageView*
 *android:id=@+id/imageView1*
 *android:layout_width=fill_parent*
 *android:layout_height=wrap_content*
 *android:adjustViewBounds=true*
 *   /*
 /ScrollView
 /LinearLayout

 !-- Player Footer --

 LinearLayout
 android:id=@+id/player_**footer_bg
 android:layout_width=fill_**parent
 android:layout_height=wrap_**content
 android:layout_weight=0
 android:background=@layout/**bg_player_footer
 android:gravity=center
 android:orientation=vertical**

 !-- Timer Display --

 LinearLayout
 android:id=@+id/timerDisplay
 android:layout_width=fill_**parent
 android:layout_height=wrap_**content
 android:layout_marginBottom=**2dp
 android:layout_marginLeft=**20dp
 android:layout_marginRight=**20dp 

 !-- Current Duration Label --

 TextView
 android:id=@+id/**songCurrentDurationLabel
 android:layout_width=fill_**parent
 android:layout_height=wrap_**content
 android:layout_weight=1
 android:gravity=left
 android:textColor=#ee
 android:textStyle=bold /
 !-- Total Duration Label --

 TextView
 android:id=@+id/**songTotalDurationLabel
 android:layout_width=fill_**parent
 android:layout_height=wrap_**content
 android:layout_weight=1
 android:gravity=right
 android:textColor=#04cbde
 android:textStyle=bold /
 /LinearLayout
 !-- Progress Bar/Seek bar --

 SeekBar
 android:id=@+id/**songProgressBar
 android:layout_width=fill_**parent
 android:layout_height=wrap_**content
 android:layout_marginBottom=**2dp
 android:layout_marginLeft=**20dp
 android:layout_marginRight=**20dp
 android:progressDrawable=@**drawable/seekbar_progress
 android:thumb=@drawable/seek_**handler /

 !-- Player Buttons --

 LinearLayout
 android:layout_width=wrap_**content
 android:layout_height=wrap_**content
 android:background=@layout/**rounded_corner
 android:gravity=center_**vertical
 android:orientation=**horizontal
 android:paddingLeft=10dp
 android:paddingRight=10dp 

 !-- Backward Button --

 ImageButton
 android:id=@+id/btnBackward
 android:layout_width=wrap_**content
 android:layout_height=wrap_**content
 android:background=@null
 android:src=@drawable/btn_**backward /
 !-- Play Button --

 ImageButton
 android:id=@+id/btnPlay
 android:layout_width=wrap_**content
 android:layout_height=wrap_**content
 android:background=@null
 android:src=@drawable/btn_**play /
 !-- Forward Button --

 ImageButton
 android:id=@+id/btnForward
 android:layout_width=wrap_**content
 android:layout_height=wrap_**content
 android:background=@null
 android:src=@drawable/btn_**forward /
 /LinearLayout
 /LinearLayout

 /LinearLayout

  --
 --
 You received this message because you are 

[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 bold) not 
 Showing Image on Android 2.2 and not on Android 4.0

 Please help out.



 LinearLayout xmlns:android=http://schemas.android.com/apk/res/android;
 xmlns:tools=http://schemas.android.com/tools;
 android:layout_width=match_parent
 android:layout_height=match_parent
 android:orientation=vertical 

 LinearLayout
 android:layout_width=fill_parent
 android:layout_height=fill_parent
 android:layout_gravity=fill
 android:layout_weight=1 

 ScrollView
 android:layout_width=wrap_content
 android:layout_height=wrap_content  
 android:id=@+id/imgScrollView 

 *ImageView*
 *android:id=@+id/imageView1*
 *android:layout_width=fill_parent*
 *android:layout_height=wrap_content*
 *android:adjustViewBounds=true*
 *   /*
 /ScrollView
 /LinearLayout

 !-- Player Footer --

 LinearLayout
 android:id=@+id/player_footer_bg
 android:layout_width=fill_parent
 android:layout_height=wrap_content
 android:layout_weight=0
 android:background=@layout/bg_player_footer
 android:gravity=center
 android:orientation=vertical

 !-- Timer Display --

 LinearLayout
 android:id=@+id/timerDisplay
 android:layout_width=fill_parent
 android:layout_height=wrap_content
 android:layout_marginBottom=2dp
 android:layout_marginLeft=20dp
 android:layout_marginRight=20dp 

 !-- Current Duration Label --

 TextView
 android:id=@+id/songCurrentDurationLabel
 android:layout_width=fill_parent
 android:layout_height=wrap_content
 android:layout_weight=1
 android:gravity=left
 android:textColor=#ee
 android:textStyle=bold /
 !-- Total Duration Label --

 TextView
 android:id=@+id/songTotalDurationLabel
 android:layout_width=fill_parent
 android:layout_height=wrap_content
 android:layout_weight=1
 android:gravity=right
 android:textColor=#04cbde
 android:textStyle=bold /
 /LinearLayout
 !-- Progress Bar/Seek bar --

 SeekBar
 android:id=@+id/songProgressBar
 android:layout_width=fill_parent
 android:layout_height=wrap_content
 android:layout_marginBottom=2dp
 android:layout_marginLeft=20dp
 android:layout_marginRight=20dp
 android:progressDrawable=@drawable/seekbar_progress
 android:thumb=@drawable/seek_handler /

 !-- Player Buttons --

 LinearLayout
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:background=@layout/rounded_corner
 android:gravity=center_vertical
 android:orientation=horizontal
 android:paddingLeft=10dp
 android:paddingRight=10dp 

 !-- Backward Button --

 ImageButton
 android:id=@+id/btnBackward
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:background=@null
 android:src=@drawable/btn_backward /
 !-- Play Button --

 ImageButton
 android:id=@+id/btnPlay
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:background=@null
 android:src=@drawable/btn_play /
 !-- Forward Button --

 ImageButton
 android:id=@+id/btnForward
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:background=@null
 android:src=@drawable/btn_forward /
 /LinearLayout
 /LinearLayout

 /LinearLayout


-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop