简体   繁体   English

如何创建自定义布局?

[英]How to create custom Layout?

In my apps i want to display images and text in three ways 在我的应用程序中,我想以三种方式显示图像和文本

  1. ListView
  2. GridView
  3. FullScreen

i have 500+ images and text that i parse using JSON and store into SQLite . 我有500多个图像和文本,我使用JSON解析并存储到SQLite

I know how to create ListView & GridView but problem is I don't know how to create the custom layout. 我知道如何创建ListViewGridView但问题是我不知道如何创建自定义布局。

I have image but due to my low reputation i am not able to post image. 我有图像,但由于我的声誉低,我无法发布图像。

I try to explain what i need. 我试着解释一下我需要什么。

I need custom fullscreen layout that has 2 buttons, one on the left and other on the right and between those 2 buttons I need Imageview that display the fullscreen image. 我需要自定义全屏布局,有2个按钮,一个在左边,另一个在右边,在这两个按钮之间我需要Imageview显示全屏图像。

thanks in advance 提前致谢

Use UniversalImageLoader library, as it has all the modes you need. 使用UniversalImageLoader库,因为它具有您需要的所有模式。 It also supports caching and lazy load, which you will definitely need on 500 images. 它还支持缓存和延迟加载,您肯定需要500张图像。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM