android - 如何创建用户界面,如所附照片

标签 android android-layout user-interface styles adapter

谁能告诉我这种照片效果叫什么。我想知道如何为这个附加图像效果创建一个适配器。

@已编辑: 这是 Android 市场的示例照片。我想创建这样的布局。我想这应该覆盖 GridView 适配器。

纵向截图


Photo

横向截图


Photo


另一个截图


Photo

非常抱歉我的问题你们不清楚。

可能 duplicate .

最佳答案

你试过这个吗:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical" >
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="0.54" >
        <Button
            android:id="@+id/Button01"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="1.00"
            android:text="Button" />    
        <Button
            android:id="@+id/Button02"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="1.00"
            android:text="Button" />    
    </LinearLayout>
    <Button
        android:id="@+id/button3"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="Button" />  
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="99dp" > 
        <Button
            android:id="@+id/button1"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="1"
            android:text="Button" />  
        <Button
            android:id="@+id/button2"
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="1"
            android:text="Button" />    
    </LinearLayout>   
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1" >    
        <LinearLayout
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="1"
            android:orientation="vertical" >   
            <Button
                android:id="@+id/button4"
                android:layout_width="match_parent"
                android:layout_height="152dp"
                android:text="Button" />    
            <Button
                android:id="@+id/button5"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="Button" />    
        </LinearLayout>    
        <LinearLayout
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="1"
            android:orientation="vertical" >
            <Button
                android:id="@+id/button6"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="Button" />
            <Button
                android:id="@+id/button7"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:text="Button" />
        </LinearLayout>
    </LinearLayout>

</LinearLayout>

检查此线程:Heterogeneous GridLayout

enter image description here

关于android - 如何创建用户界面,如所附照片,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11606548/

相关文章:

java - Android 的 Java 版本与 Java SE 版本有何关系?

java - 启用 proguard 时出现 Jackson 错误(缩小)

android - 自定义 View 不会添加到预定义的 XML 布局中

ruby - 使用 Ruby 编写一个简单的 Windows 7 GUI 应用程序

java - 如何在 Android 中用手指删除图像

android - 当键盘出现时我的页脚出现

java - Android如何知道应用程序已启动并根据启动时间确定应用程序优先级

c - 使用 Turbo C 在 C 语言中进行 GUI 编程

performance - Delphi - 如果用户仍在输入则延迟处理

android - Android Market中的堆栈跟踪问题