English 中文(简体)
如何在时间表中显示数据?
原标题:How to show data in a timetable?

Me and a friend are trying to do a timetable of a train schedule , but we are now stuck in how to show the data from the Sqlite database. We can show the data, but not how we want it.

我画了幅画来展示我们想做什么

https://i.stistic.net/5XUfV.png

当垂直滚动到“台站”表上方时,“台站”和“时站”都应该垂直滚动,但在滚动到“时”上方时,只有“时站”应该水平滚动(台站应该保持不变)。

有没有人知道我们应该怎么做(我们是编程和编程的初学者)?

谢谢!

编辑 :

我找到一个应用程序 做我想做的事 这样大家都更容易理解

< a href=>"https://play.google.com/store/apps/details? id=com.chingy1788.sydney_rail" rel=“无尾随” >Google Play - Sydney Rail Beta

i.stack.imgur.com/ktS8J.jpg i.

问题回答

垂直滚动可使用 ScrollView (http://developer.android.com/referr.com/refer/android/widget/scrollView.html )

我不知道为什么你在滚动站点时需要滚动时要滚动《时报》,但您可以使用这样修改的“水平滚动View ”同步滚动滚动滚动滚动滚动位置 -和roid

在“滚动改变”方法中,您可以使用水平滚动视图的滚动图方法滚动到理想位置。





相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签