Android中的水平ListView?(Horizontal ListView in Android?)
是否可以使
ListView
水平? 我已经使用图库视图,但所选项目自动到达屏幕的中心。 我不想让所选项目在我点击的同一个地方。 如何纠正这个问题? 我的想法是用水平滚动来设置ListView
。 分享你的想法?Is it possible to make the
ListView
horizontally? I have done this Using gallery view, but the selected item comes to the center of the screen automatically. I don't want the selected item at the same spot I clicked. How can I Rectify this Problem? My Idea was to set theListView
with horizontal scroll. Share your idea?
原文:https://stackoverflow.com/questions/3240331
最满意答案
我认为这是一个错字,你已经在频道联系人之前放置了频道表的连接,因此尚未识别channels_contanct。 试试这个:
SELECT channels.id, channels.kind, channels.publish_date, channel_contacts.id_channel, channel_contacts.id_contact, channel_contacts.archived, channel_events.id, channel_events.id_channel_contacts, channel_events.code, channel_events.details, channel_events.occation FROM channel_events JOIN channel_contacts ON channel_contacts.id= channel_events.id_channel_contacts JOIN channels ON channels.id = channel_contacts.id_channel where channels.id_account = 123;
I think its a typo ,You've placed the join with channels table before channels contacts, so channels_contanct isn't recognized yet. Try this:
SELECT channels.id, channels.kind, channels.publish_date, channel_contacts.id_channel, channel_contacts.id_contact, channel_contacts.archived, channel_events.id, channel_events.id_channel_contacts, channel_events.code, channel_events.details, channel_events.occation FROM channel_events JOIN channel_contacts ON channel_contacts.id= channel_events.id_channel_contacts JOIN channels ON channels.id = channel_contacts.id_channel where channels.id_account = 123;
相关问答
更多-
TCP/IP模型是一个________。[2023-10-02]
a -
下列中不属于面向对象的编程语言的是?[2022-05-30]
a -
我认为这是一个错字,你已经在频道联系人之前放置了频道表的连接,因此尚未识别channels_contanct。 试试这个: SELECT channels.id, channels.kind, channels.publish_date, channel_contacts.id_channel, channel_contacts.id_contact, channel_contacts.archived, channel_events.id, channel_events.id_channel_contac ...
-
这个查询的想法是将每个组视为每个其他组。 然后计算id匹配的次数。 这涉及cross join以生成所有组对,然后进行一些连接和聚合: select b.group, a.group from (select group, count(*) as cnt b group by group) bg cross join (select distinct group a) ag left join b on b.group = bg.group left join a ...
-
也许这是更快一点: SELECT w.name FROM words w WHERE NOT EXISTS (SELECT 1 FROM choices c WHERE c.class = 1 and c.wid = w.id) Maybe this is a bit faster: SELECT w.name FROM words w WHERE NOT EXISTS (SELECT 1 FROM choices c WHERE c.class = 1 a ...
-
对列进行计算并在where子句中引用它将产生可怕的性能。 这是一个更好的方法: select EmpCode,EventDate1 as EventDate,InTime, case when OutTime is null then 'N/A' else Outtime end as OutTime from TMS_HOURCALC WHERE intime1 >= dateadd(dd,(datediff(DD,-1,getdate())/7)*7-7,-1) and intime1 < ...
-
我这样做是正常的(我觉得它更容易阅读): var q = from c in ctx.TabC from b in ctx.TabB.Where(b=> b.id2 == c.id2) from a in ctx.TabA.Where(a=> a.id2 == b.id2) where a.id1 == inputID select new {....}; 我希望这有帮助! I normaly do it this way(I find it easier to read): var q = from ...
-
select person_id, count(*) from groupmembership where group_id in ([your list of group ids]) group by person_id having count(*) = [size of your list of group ids] 编辑:谢谢dotjoe! select person_id, count(*) from groupmembership where group_id in ([your list o ...
-
查询参数未映射(Query Parameters are not getting mapped)[2022-02-19]
问题是url具有新名称,而注释具有旧名称 @QueryParam("groupIdFilter") consumerGroupIdFilter The problem is that the url has the new name and the annotation has the old one @QueryParam("groupIdFilter") consumerGroupIdFilter -
这个查询怎么样: SELECT FROM tkr_restaurants AS a JOIN tkr_divisions AS b ON a.restaurant_id = b.restaurant_id LEFT OUTER JOIN tkr_meals_to_restaurants_divisions AS c ON (c.mapped_restaurant_id = a.restaurant_id OR c.mapped_division_id = b.division_id) 作为基地四你 ...