<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Adventures in Code - Latest Comments</title><link>http://devsmart.disqus.com/</link><description></description><atom:link href="https://devsmart.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 31 Oct 2012 22:30:37 -0000</lastBuildDate><item><title>Re: Android Horizontal ListView</title><link>http://www.dev-smart.com/archives/34#comment-697517977</link><description>&lt;p&gt;when i use this Horizontailistview in listview, scroll can't  fluency and fling.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">coolstar1204@sina.com</dc:creator><pubDate>Wed, 31 Oct 2012 22:30:37 -0000</pubDate></item><item><title>Re: Android Horizontal ListView</title><link>http://www.dev-smart.com/archives/34#comment-697182241</link><description>&lt;p&gt;Hi,&lt;br&gt;Has anyone figured out a method to make this list wrap_content on the height attribute, and add several others view below this one in a layout? Currently this list occupies all the layout surface. Any feedback would be a lot appreciated.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Luna August</dc:creator><pubDate>Wed, 31 Oct 2012 13:35:26 -0000</pubDate></item><item><title>Re: Android Horizontal ListView</title><link>http://www.dev-smart.com/archives/34#comment-696065195</link><description>&lt;p&gt;Hello everyone,&lt;br&gt;I am trying to extend this component to support right to left items arrangement.&lt;br&gt;Can you please explain me the meaning of the following members?&lt;br&gt;mMaxX&lt;br&gt;mCurrentX&lt;br&gt;mNextX&lt;br&gt;mLeftViewIndex&lt;br&gt;mRightViewIndex&lt;/p&gt;&lt;p&gt;Thanks!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael</dc:creator><pubDate>Tue, 30 Oct 2012 05:57:33 -0000</pubDate></item><item><title>Re: Android Horizontal ListView</title><link>http://www.dev-smart.com/archives/34#comment-696043115</link><description>&lt;p&gt;very good ,I appriciate it ,&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">flzm</dc:creator><pubDate>Tue, 30 Oct 2012 04:45:54 -0000</pubDate></item><item><title>Re: Android Horizontal ListView</title><link>http://www.dev-smart.com/archives/34#comment-695068380</link><description>&lt;p&gt;Thanks..nice post..but inside HorizontalListView class , i have override  setonItemLongClickListener and setonDragListener is not working ...why..?can u help me abt this question plz....&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nithya</dc:creator><pubDate>Mon, 29 Oct 2012 02:25:05 -0000</pubDate></item><item><title>Re: Android Horizontal ListView</title><link>http://www.dev-smart.com/archives/34#comment-689231037</link><description>&lt;p&gt;hi thanks for your good code &lt;br&gt;can you help me about this question &lt;br&gt;&lt;a href="http://stackoverflow.com/questions/13014753/add-arrow-icon-to-list-view-in-android" rel="nofollow noopener" target="_blank" title="http://stackoverflow.com/questions/13014753/add-arrow-icon-to-list-view-in-android"&gt;http://stackoverflow.com/qu...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael</dc:creator><pubDate>Mon, 22 Oct 2012 11:36:56 -0000</pubDate></item><item><title>Re: Android Horizontal ListView</title><link>http://www.dev-smart.com/archives/34#comment-685244696</link><description>&lt;p&gt;The author has a lot of typos in the example code, including "Horizontial". Try fixing that...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mike</dc:creator><pubDate>Wed, 17 Oct 2012 10:54:30 -0000</pubDate></item><item><title>Re: Android Horizontal ListView</title><link>http://www.dev-smart.com/archives/34#comment-679846390</link><description>&lt;p&gt;Sorry for dummy question, how to run demo from your repo? &lt;br&gt;How to use your approach in my project? &lt;br&gt;Do I need just copy all files from your project to my project or somehow build jar file and include to my project?&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Artem</dc:creator><pubDate>Fri, 12 Oct 2012 10:53:49 -0000</pubDate></item><item><title>Re: Android Horizontal ListView</title><link>http://www.dev-smart.com/archives/34#comment-664412394</link><description>&lt;p&gt;I need setSelection() functionality.Please so many people are witing for that.You did a good work but please make this also it would be helpful for all&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">srikanth</dc:creator><pubDate>Thu, 27 Sep 2012 05:35:27 -0000</pubDate></item><item><title>Re: Android Horizontal ListView</title><link>http://www.dev-smart.com/archives/34#comment-663835914</link><description>&lt;p&gt;This only seems to work after you scrolled. How can the items be centered initially?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Josch</dc:creator><pubDate>Wed, 26 Sep 2012 19:35:56 -0000</pubDate></item><item><title>Re: Android Horizontal ListView</title><link>http://www.dev-smart.com/archives/34#comment-663066434</link><description>&lt;p&gt;I would like to know is there any way to select specific sell from the code (i want to implement something like next button between the list cells).&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">skucher</dc:creator><pubDate>Wed, 26 Sep 2012 07:35:03 -0000</pubDate></item><item><title>Re: Android Horizontal ListView</title><link>http://www.dev-smart.com/archives/34#comment-657549674</link><description>&lt;p&gt;Could you please tell what changes should be made to the project to list scrolls automatically and infinitely?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">dimetil</dc:creator><pubDate>Fri, 21 Sep 2012 03:54:44 -0000</pubDate></item><item><title>Re: Android Fragment Support for the Facebook SDK</title><link>http://www.dev-smart.com/archives/368#comment-654610639</link><description>&lt;p&gt;Awesome.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">James Patillo</dc:creator><pubDate>Tue, 18 Sep 2012 12:20:06 -0000</pubDate></item><item><title>Re: Android Horizontal ListView</title><link>http://www.dev-smart.com/archives/34#comment-635990496</link><description>&lt;p&gt;Good comment. Except that I am not used to see arrows.&lt;br&gt;I believe a fading effect would be better&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Utilisateur</dc:creator><pubDate>Fri, 31 Aug 2012 17:19:02 -0000</pubDate></item><item><title>Re: Android Horizontal ListView</title><link>http://www.dev-smart.com/archives/34#comment-635988246</link><description>&lt;p&gt;Why do you use private mItemClickListener rather than super.getItemClickListener() ?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Utilisateur</dc:creator><pubDate>Fri, 31 Aug 2012 17:16:37 -0000</pubDate></item><item><title>Re: Android Horizontal ListView</title><link>http://www.dev-smart.com/archives/34#comment-632226652</link><description>&lt;p&gt;ListView accepts attribute dividerHeight to create a margin between items. What about HorizontalListView?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Utilisateur</dc:creator><pubDate>Tue, 28 Aug 2012 14:20:57 -0000</pubDate></item><item><title>Re: Android Horizontal ListView</title><link>http://www.dev-smart.com/archives/34#comment-630621141</link><description>&lt;p&gt;works perfectly&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">pro</dc:creator><pubDate>Mon, 27 Aug 2012 01:58:05 -0000</pubDate></item><item><title>Re: MooDB the embedded NoSQL Database.</title><link>http://www.dev-smart.com/archives/326#comment-627241652</link><description>&lt;p&gt;no support for offset and limit yet. I would love your github pull requests&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">dinocore</dc:creator><pubDate>Thu, 23 Aug 2012 23:13:06 -0000</pubDate></item><item><title>Re: MooDB the embedded NoSQL Database.</title><link>http://www.dev-smart.com/archives/326#comment-624606607</link><description>&lt;p&gt;Is there support for offset and limit?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alfred Tascon</dc:creator><pubDate>Mon, 20 Aug 2012 23:40:18 -0000</pubDate></item><item><title>Re: Android Horizontal ListView</title><link>http://www.dev-smart.com/archives/34#comment-624573193</link><description>&lt;p&gt;I want to create a horizontal gallery, and i try to implement HorizontalListView with Base adapter. I use AsyncTask to load bitmaps to ImageView container, and i failed to set size. The photos eventually shown up as small icons. Please advise.&lt;/p&gt;&lt;p&gt;	class LoadBitmapTask extends AsyncTask&amp;lt;void, void,="" bitmap=""&amp;gt; {&lt;br&gt;		ViewHolder v;&lt;br&gt;		FlickrPhotos mPhoto;&lt;br&gt;		int position;&lt;br&gt;		public LoadBitmapTask(ViewHolder v, int position, FlickrPhotos mPhoto) {&lt;br&gt;			this.mPhoto = mPhoto;&lt;br&gt;			this.v = v;&lt;br&gt;			this.position = position;&lt;br&gt;		}&lt;br&gt;		@Override&lt;br&gt;		protected Bitmap doInBackground(Void... params) {&lt;br&gt;			// TODO Auto-generated method stub&lt;br&gt;			try {&lt;br&gt;				URL url = new URL(mPhoto.medium);&lt;br&gt;				URLConnection conn = url.openConnection();&lt;br&gt;				InputStream is = conn.getInputStream();&lt;br&gt;				Bitmap b = BitmapFactory.decodeStream(is);&lt;br&gt;				return b;&lt;br&gt;			} catch (MalformedURLException e) {&lt;br&gt;				// TODO Auto-generated catch block&lt;br&gt;				System.out.println("This may be an incorrect url");&lt;br&gt;				e.printStackTrace();&lt;/p&gt;&lt;p&gt;			} catch (IOException e) {&lt;br&gt;				// TODO Auto-generated catch block&lt;br&gt;				e.printStackTrace();&lt;br&gt;			}&lt;br&gt;			return null;&lt;br&gt;		}&lt;/p&gt;&lt;p&gt;		@Override&lt;br&gt;		protected void onPostExecute(Bitmap result) {&lt;br&gt;			// TODO Auto-generated method stub&lt;br&gt;			super.onPostExecute(result);&lt;br&gt;			mPhoto.bitmap = result;&lt;br&gt;			mCache.put(position, mPhoto);&lt;br&gt;			if (result != null) {&lt;br&gt;				v.iv.setVisibility(View.VISIBLE);&lt;br&gt;				v.iv.setImageBitmap(mPhoto.bitmap);&lt;br&gt;//				System.out.println(mPhoto.bitmap.getHeight());&lt;br&gt;//				System.out.println(mPhoto.bitmap.getWidth());&lt;br&gt;//				System.out.println("Setted Images");&lt;br&gt;//				v.tv.setText("Position: " + mPhoto.photo_id);&lt;br&gt;//				v.ownerTv.setText(mPhoto.owner);&lt;br&gt;//				v.dateTv.setText(&lt;a href="http://mPhoto.date" rel="nofollow noopener" target="_blank" title="mPhoto.date"&gt;mPhoto.date&lt;/a&gt;);&lt;br&gt;//				v.titleTv.setText(mPhoto.title);&lt;br&gt;			}&lt;br&gt;		}&lt;/p&gt;&lt;p&gt;My List View Container&lt;/p&gt;&lt;p&gt;&amp;lt;framelayout xmlns:android="&lt;a href="http://schemas.android.com/apk/res/android" rel="nofollow noopener" target="_blank" title="http://schemas.android.com/apk/res/android"&gt;http://schemas.android.com/...&lt;/a&gt;" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal"&amp;gt;&lt;/p&gt;&lt;p&gt;         &amp;lt;imagebutton android:id="@+id/user_image_container" android:layout_width="match_parent" android:layout_height="wrap_content" android:padding="0dip" android:layout_margin="2dip" android:contentdescription="photos"/&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;/framelayout&amp;gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ray</dc:creator><pubDate>Mon, 20 Aug 2012 22:44:06 -0000</pubDate></item><item><title>Re: Android Horizontal ListView</title><link>http://www.dev-smart.com/archives/34#comment-618855894</link><description>&lt;p&gt;Hi, thanks for the horizontal livewview, works a treat.&lt;/p&gt;&lt;p&gt;Im new to android development and am trying to add a context menu to the view but im having a few issues if you could please help.&lt;br&gt;basically the context menu appears while scrolling, and i was wondering if theres a way to stop the long click handeler for this while scrolling and enable it if theres no scrolling.&lt;br&gt;also the context menu is unable to get the menuinfo so i can get what item was clicked.&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Deepam Trivedi</dc:creator><pubDate>Tue, 14 Aug 2012 05:40:57 -0000</pubDate></item><item><title>Re: Android Horizontal ListView</title><link>http://www.dev-smart.com/archives/34#comment-616081157</link><description>&lt;p&gt; I am not sure if there is an default way to do it but i have achived desired action by something like this:&lt;/p&gt;&lt;p&gt;            @Override&lt;br&gt;            public void onItemClick(AdapterView  parent, View v, int position,&lt;br&gt;                    long id) {    &lt;br&gt;                //new selected item so i change its color to white here as highlight indication&lt;br&gt;                v.setBackgroundColor(Color.WHITE);&lt;br&gt;                if(selectedImageView!=null)&lt;br&gt;                    //here i set previous selected item's color to default (0xff999999 is my default color)&lt;br&gt;                    selectedImageView.setBackgroundColor(0xff999999);&lt;br&gt;                selectedImageView = v;&lt;br&gt;            }&lt;br&gt;             &lt;br&gt;             View selectedImageView = null; // This is a global variable that keeps the track of previous selected item so we can change its color to default one.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dirhem</dc:creator><pubDate>Fri, 10 Aug 2012 21:15:39 -0000</pubDate></item><item><title>Re: Android Horizontal ListView</title><link>http://www.dev-smart.com/archives/34#comment-615729847</link><description>&lt;p&gt;Thanks for sharing your code, it's very great...&lt;/p&gt;&lt;p&gt;I'm using the HorizontalListView to show some jpeg, so I figure out everything about handling image stuff to set the imageview, but I'm stuck with the image view alignment inside the HorizontalListView.&lt;/p&gt;&lt;p&gt;When the device is hold in vertical orientation and showing a horizontal picture format, the picture is Top Align.&lt;/p&gt;&lt;p&gt;How can I force the HorizontalListView to set the ImagView in Vertical Center ?&lt;br&gt;Thanks&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sylvain</dc:creator><pubDate>Fri, 10 Aug 2012 12:54:00 -0000</pubDate></item><item><title>Re: Android Horizontal ListView</title><link>http://www.dev-smart.com/archives/34#comment-615001100</link><description>&lt;p&gt;I am unable to set the selection/ highlight color when an item is pressed. I'm an android newbie so I'm not sure if this is an easy fix or not, but please advise me on what should be done to implement selection.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Charles Gnirut</dc:creator><pubDate>Thu, 09 Aug 2012 19:31:52 -0000</pubDate></item><item><title>Re: Android Horizontal ListView</title><link>http://www.dev-smart.com/archives/34#comment-614326546</link><description>&lt;p&gt; Hi,&lt;br&gt;Somehow I can't expand the list height to fill_parent.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">q3</dc:creator><pubDate>Thu, 09 Aug 2012 04:56:24 -0000</pubDate></item></channel></rss>