本文整理匯總了Java中com.felipecsl.asymmetricgridview.library.widget.AsymmetricGridView類的典型用法代碼示例。如果您正苦於以下問題:Java AsymmetricGridView類的具體用法?Java AsymmetricGridView怎麽用?Java AsymmetricGridView使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
AsymmetricGridView類屬於com.felipecsl.asymmetricgridview.library.widget包,在下文中一共展示了AsymmetricGridView類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: onCreate
import com.felipecsl.asymmetricgridview.library.widget.AsymmetricGridView; //導入依賴的package包/類
@Override
@SuppressWarnings("unchecked")
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
listView = (AsymmetricGridView) findViewById(R.id.listView);
adapter = new ListAdapter(this, listView, new ArrayList<DemoItem>());
adapter.appendItems(getMoreItems(50));
listView.setRequestedColumnCount(3);
listView.setAdapter(adapter);
listView.setDebugging(true);
listView.setOnItemClickListener(this);
}
示例2: onCreateView
import com.felipecsl.asymmetricgridview.library.widget.AsymmetricGridView; //導入依賴的package包/類
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_fodex_base, container, false);
mGridView = (AsymmetricGridView) view.findViewById(R.id.grid_view);
mFloatingActionMenu = (FloatingActionsMenu) view.findViewById(R.id.floating_menu);
mTagButton = (FloatingActionButton) view.findViewById(R.id.floating_tag_button);
mPtrLayout = (PtrClassicFrameLayout) view.findViewById(R.id.swipe_container);
setupFloatingButtonsAndMenu();
setupAsymmetricGridView();
setupPullToRefresh();
setupImagePreload();
return view;
}
示例3: ListAdapter
import com.felipecsl.asymmetricgridview.library.widget.AsymmetricGridView; //導入依賴的package包/類
public ListAdapter(final Context context, final AsymmetricGridView listView, final List<DemoItem> items) {
super(context, listView, items);
}
示例4: FodexAdapter
import com.felipecsl.asymmetricgridview.library.widget.AsymmetricGridView; //導入依賴的package包/類
public FodexAdapter(Context context, AsymmetricGridView listView, List items) {
super(context, listView, items);
}