2016-04-14 8 views
0

私はPalabreアプリケーションのようなレイアウトを実現しようとしています。ここではそのアプリの基本的なレイアウトは次のとおりです。Palabreのようなレイアウトを実装する方法

enter image description here

また、私はgithubのからこのライブラリを使用しています: AsymmetricGridViewが、まだ希望のレイアウトを達成することができませんでし。

ここで何人かは私を案内してください。

+0

あなたは、単にそれが可能である重み –

+0

@VivekMishraでリニアレイアウトを作成することができますが、私は、各セルでのサービスとは異なる応答を取得する必要があるとその6グリッドビューだけでなく、セル。あなたが示唆していることは、セル1、セル2、およびセル3を1つのレイアウトにすると、それらのセルにデータをどのように解析するのですか? –

+0

さらに多くのセルがある場合は、ウェイトを使用するオプションはありません –

答えて

1

リストの場合は、この素晴らしいライブラリを使用して、千鳥形式のリストを作成します。

https://github.com/lucasr/twoway-view

それがリストでない場合 - >

<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="wrap_content" 
     android:orientation="horizontal"> 
     <TextView 
      android:layout_width="match_parent" 
      android:text="Cell1" 
      android:layour_weight="1" 
      android:layout_height="wrap_content"/> 
     <TextView 
      android:layout_width="match_parent" 
      android:text="Cell2" 
      android:layour_weight="1" 
      android:layout_height="wrap_content"/> 
    </LinearLayout> 
     <TextView 
     android:layout_width="match_parent" 
     android:text="Cell3" 
     android:layout_height="wrap_content"/> 
    </LinearLayout> 
+0

私の要件はグリッドビューです。しかし、このライブラリを試してみましょう。 –

+0

私はこのライブラリをテストしましたが、望みの外観を達成することができませんでした。これについて私は助けてくれますか?私はちょうど初心者です –

+0

あなたのライブラリを試してみました。 – crashOveride

関連する問題