本文整理汇总了Java中it.sephiroth.android.library.widget.HListView类的典型用法代码示例。如果您正苦于以下问题:Java HListView类的具体用法?Java HListView怎么用?Java HListView使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
HListView类属于it.sephiroth.android.library.widget包,在下文中一共展示了HListView类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: onCreate
import it.sephiroth.android.library.widget.HListView; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_detail);
Bundle tmpExtras = getIntent().getExtras();
dealer = tmpExtras.getParcelable("message");
TextView tmpTextView = (TextView) findViewById(R.id.detail_text);
tmpTextView.setText(dealer.getName());
// Get drink list adapter to later update all available drinks
drinkListAdapter = new DrinkListAdapter(this, new ArrayList<DrinkStatus>());
((HListView) findViewById(R.id.detail_drinks)).setAdapter(drinkListAdapter);
dealerDetailsRequest = new DealerDetailsRequest(dealer.getId());
}
开发者ID:guerda,项目名称:Matekarte,代码行数:17,代码来源:DetailsActivity.java
示例2: attachHolder
import it.sephiroth.android.library.widget.HListView; //导入依赖的package包/类
@Override
protected void attachHolder(View view)
{
ImageView authorProfileImage = (ImageView) view.findViewById(R.id.author_profile_image);
TextView story = (TextView) view.findViewById(R.id.story);
TextView postTime = (TextView) view.findViewById(R.id.post_time);
ImageView sharedAuthorProfileImage = (ImageView) view.findViewById(R.id.shared_author_profile_image);
TextView sharedStory = (TextView) view.findViewById(R.id.shared_story);
TextView sharedPostTime = (TextView) view.findViewById(R.id.shared_post_time);
TextView message = (TextView) view.findViewById(R.id.message);
ImageView postPhoto = (ImageView) view.findViewById(R.id.post_photo);
ImageView postVideoPlay = (ImageView) view.findViewById(R.id.post_video_play);
TextView videoTitle = (TextView) view.findViewById(R.id.post_video_title);
TextView videoUrl = (TextView) view.findViewById(R.id.post_video_url);
ImageView postPicturePlay = (ImageView) view.findViewById(R.id.post_picture_play);
ImageView postLinkBackground = (ImageView) view.findViewById(R.id.stream_link_image_background);
TextView postName = (TextView) view.findViewById(R.id.post_name);
TextView postCaption = (TextView) view.findViewById(R.id.post_caption);
TextView postDescription = (TextView) view.findViewById(R.id.post_description);
HListView streamAlbum = (HListView) view.findViewById(R.id.stream_album);
ViewGroup streamLink = (ViewGroup) view.findViewById(R.id.stream_link);
Button likeButton = (Button) view.findViewById(R.id.like_button);
Button commentButton = (Button) view.findViewById(R.id.comment_button);
ImageButton shareButton = (ImageButton) view.findViewById(R.id.share_button);
ImageButton overflowButton = (ImageButton) view.findViewById(R.id.overflow_button);
ViewGroup buttonBar = (ViewGroup) view.findViewById(R.id.button_bar);
View buttonBarDivider = (View) view.findViewById(R.id.button_bar_divider);
StreamHolder holder = new StreamHolder(authorProfileImage, story, postTime, sharedAuthorProfileImage, sharedStory, sharedPostTime, message,
postPhoto, postVideoPlay, videoTitle, videoUrl, postPicturePlay, postLinkBackground, postName, postCaption, postDescription,
likeButton, commentButton, shareButton, overflowButton, streamAlbum, streamLink, buttonBar, buttonBarDivider);
setHolder(view, holder);
}
开发者ID:jonathangerbaud,项目名称:Klyph,代码行数:35,代码来源:StreamAdapter2.java
示例3: attachHolder
import it.sephiroth.android.library.widget.HListView; //导入依赖的package包/类
@Override
protected void attachHolder(View view)
{
ImageView authorProfileImage = (ImageView) view.findViewById(R.id.author_profile_image);
TextView story = (TextView) view.findViewById(R.id.story);
TextView postTime = (TextView) view.findViewById(R.id.post_time);
ImageView sharedAuthorProfileImage = (ImageView) view.findViewById(R.id.shared_author_profile_image);
TextView sharedStory = (TextView) view.findViewById(R.id.shared_story);
TextView sharedPostTime = (TextView) view.findViewById(R.id.shared_post_time);
TextView message = (TextView) view.findViewById(R.id.message);
ImageView postPhoto = (ImageView) view.findViewById(R.id.post_photo);
ImageView postVideoPlay = (ImageView) view.findViewById(R.id.post_video_play);
TextView videoTitle = (TextView) view.findViewById(R.id.post_video_title);
TextView videoUrl = (TextView) view.findViewById(R.id.post_video_url);
ImageView postPicturePlay = (ImageView) view.findViewById(R.id.post_picture_play);
ImageView postLinkBackground = (ImageView) view.findViewById(R.id.stream_link_image_background);
TextView postName = (TextView) view.findViewById(R.id.post_name);
TextView postCaption = (TextView) view.findViewById(R.id.post_caption);
TextView postDescription = (TextView) view.findViewById(R.id.post_description);
Button likeButton = (Button) view.findViewById(R.id.like_button);
Button commentButton = (Button) view.findViewById(R.id.comment_button);
ImageButton shareButton = (ImageButton) view.findViewById(R.id.share_button);
ImageButton overflowButton = (ImageButton) view.findViewById(R.id.overflow_button);
HListView streamAlbum = (HListView) view.findViewById(R.id.stream_album);
ViewGroup streamLink = (ViewGroup) view.findViewById(R.id.stream_link);
ViewGroup buttonBar = (ViewGroup) view.findViewById(R.id.button_bar);
View buttonBarDivider = (View) view.findViewById(R.id.button_bar_divider);
StreamHolder holder = new StreamHolder(authorProfileImage, story,
postTime, sharedAuthorProfileImage, sharedStory,
sharedPostTime, message, postPhoto, postVideoPlay,
videoTitle, videoUrl, postPicturePlay, postLinkBackground, postName, postCaption,
postDescription, likeButton, commentButton, shareButton, overflowButton, streamAlbum, streamLink, buttonBar,
buttonBarDivider);
setHolder(view, holder);
}
开发者ID:jonathangerbaud,项目名称:Klyph,代码行数:38,代码来源:StreamAdapter.java
示例4: StreamHolder
import it.sephiroth.android.library.widget.HListView; //导入依赖的package包/类
public StreamHolder(ImageView authorProfileImage, TextView story, TextView postTime, ImageView sharedAuthorProfileImage, TextView sharedStory,
TextView sharedPostTime, TextView message, ImageView postPhoto, ImageView postVideoPlay, TextView videoTitle, TextView videoUrl,
ImageView postPicturePlay, ImageView postLinkBackground, TextView postName, TextView postCaption,
TextView postDescription, Button likeButton, Button commentButton,
ImageButton shareButton, ImageButton overflowButton, HListView streamAlbum, ViewGroup streamLink, ViewGroup buttonBar,
View buttonBarDivider)
{
this.authorProfileImage = authorProfileImage;
this.story = story;
this.postTime = postTime;
this.sharedAuthorProfileImage = sharedAuthorProfileImage;
this.sharedStory = sharedStory;
this.sharedPostTime = sharedPostTime;
this.message = message;
this.postPhoto = postPhoto;
this.postVideoPlay = postVideoPlay;
this.videoTitle = videoTitle;
this.videoUrl = videoUrl;
this.postPicturePlay = postPicturePlay;
this.postLinkBackground = postLinkBackground;
this.postName = postName;
this.postCaption = postCaption;
this.postDescription = postDescription;
this.likeButton = likeButton;
this.commentButton = commentButton;
this.shareButton = shareButton;
this.overflowButton = overflowButton;
this.streamAlbum = streamAlbum;
this.streamLink = streamLink;
this.buttonBar = buttonBar;
this.buttonBarDivider = buttonBarDivider;
}
开发者ID:jonathangerbaud,项目名称:Klyph,代码行数:33,代码来源:StreamHolder.java
示例5: onContentChanged
import it.sephiroth.android.library.widget.HListView; //导入依赖的package包/类
@Override
public void onContentChanged() {
super.onContentChanged();
listView = (HListView) findViewById(R.id.hListView1);
mButton1 = (Button) findViewById(R.id.button1);
mButton2 = (Button) findViewById(R.id.button2);
mButton3 = (Button) findViewById(R.id.button3);
}
开发者ID:sephiroth74,项目名称:HListViewAnimations,代码行数:10,代码来源:SimpleHListActivity.java
示例6: initialize
import it.sephiroth.android.library.widget.HListView; //导入依赖的package包/类
public void initialize() {
mis = getIntent().getStringExtra("mis");
FSMID = getIntent().getIntExtra("FSMID", 0);
SID = getIntent().getStringExtra("SID");
name = getIntent().getStringExtra("name");
title = (TextView) findViewById(R.id.title);
edit = (ImageButton) findViewById(R.id.ibEdit);
present = (TextView) findViewById(R.id.tvPresent);
absent = (TextView) findViewById(R.id.tvAbsent);
percentage = (TextView) findViewById(R.id.tvAttendance);
lvAttendance = (HListView) findViewById(R.id.lvAttendance);
title.setText(mis);
edit.setOnClickListener(this);
databaseHelper = new DatabaseHelper(this);
attendance = new List[3];
attendance[0] = new ArrayList<>();
attendance[1] = new ArrayList<>();
attendance[2] = new ArrayList<>();
backgroundForDateMap = new HashMap<>();
textForDateMap = new HashMap<>();
presentDates = new ArrayList<>();
absentDates = new ArrayList<>();
timeAttend = new ArrayList[2];
modify = new ArrayList[3];
modified = new ArrayList[3];
modify[0] = new ArrayList<>();
modify[1] = new ArrayList<>();
modify[2] = new ArrayList<>();
modified[0] = new ArrayList<>();
modified[1] = new ArrayList<>();
modified[2] = new ArrayList<>();
listener = new CaldroidListener() {
@Override
public void onSelectDate(Date date, View view) {
SimpleDateFormat sdf = new SimpleDateFormat("dd-MM-yyyy");
String date_string = sdf.format(date);
date_string = parseDateToddMMyyyy(date_string, 2);
timeAttend = getTimeForDate(date_string); //getting all lecture times for selected date
AttendanceAdapter adapter = new AttendanceAdapter(getApplicationContext(), timeAttend[0], timeAttend[1], parseDateToddMMyyyy(date_string, 1), present, absent, percentage);
lvAttendance.setAdapter(adapter);
lvAttendance.setVisibility(View.VISIBLE);
}
};
}
开发者ID:CoepPortal,项目名称:PortalApp,代码行数:57,代码来源:StudentAttendanceDialogActivity.java
示例7: getStreamAlbum
import it.sephiroth.android.library.widget.HListView; //导入依赖的package包/类
public HListView getStreamAlbum()
{
return streamAlbum;
}
开发者ID:jonathangerbaud,项目名称:Klyph,代码行数:5,代码来源:StreamHolder.java
示例8: getPositionForView
import it.sephiroth.android.library.widget.HListView; //导入依赖的package包/类
/**
* Get the position within the adapter's dataset for the view, where view is an adapter item or a descendant of an adapter
* item.
* Unlike {@link android.widget.AdapterView#getPositionForView(android.view.View)},
* returned position will reflect the position of the item given view is representing,
* by subtracting the header views count.
*
* @param adapterView the AdapterView containing the view.
* @param view an adapter item or a descendant of an adapter item. This must be visible in given AdapterView at the
* time of the call.
* @return the position of the item in the AdapterView represented by given view,
* or {@link android.widget.AdapterView#INVALID_POSITION} if the view does not
* correspond to a list item (or it is not visible).
*/
public static int getPositionForView(final AdapterView<?> adapterView, final View view) {
int position = adapterView.getPositionForView(view);
if (adapterView instanceof HListView) {
position -= ((HListView) adapterView).getHeaderViewsCount();
}
return position;
}
开发者ID:sephiroth74,项目名称:HListViewAnimations,代码行数:24,代码来源:AdapterViewUtil.java
注:本文中的it.sephiroth.android.library.widget.HListView类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论