1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-22 08:52:18 -05:00

Fix width issues in gallery.

This commit is contained in:
liato 2011-03-16 04:25:15 +01:00 committed by Sebastian Kaspari
parent 7563437343
commit b49ead73ad
3 changed files with 7 additions and 6 deletions

View File

@ -53,9 +53,10 @@ along with Yaaic. If not, see <http://www.gnu.org/licenses/>.
android:id="@+id/deck" android:id="@+id/deck"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:layout_height="fill_parent"
android:layout_margin="0dp" android:layout_margin="0px"
android:unselectedAlpha="100"
android:spacing="5dp" android:spacing="5dp"
android:unselectedAlpha="100"/> android:padding="0dp" />
</ViewSwitcher> </ViewSwitcher>
<org.yaaic.view.ConversationSwitcher <org.yaaic.view.ConversationSwitcher
android:id="@+id/dots" android:id="@+id/dots"
@ -79,4 +80,4 @@ along with Yaaic. If not, see <http://www.gnu.org/licenses/>.
android:drawableLeft="@android:drawable/ic_btn_speak_now" android:drawableLeft="@android:drawable/ic_btn_speak_now"
android:visibility="gone" /> android:visibility="gone" />
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>

View File

@ -212,7 +212,7 @@ public class DeckAdapter extends BaseAdapter
list.setDivider(null); list.setDivider(null);
list.setLayoutParams(new Gallery.LayoutParams( list.setLayoutParams(new Gallery.LayoutParams(
parent.getWidth() / 100 * 85, new Double(parent.getWidth()*0.85).intValue(),
parent.getHeight() parent.getHeight()
)); ));

View File

@ -95,8 +95,8 @@ public class MessageListView extends ListView
parentHeight = parent.getHeight(); parentHeight = parent.getHeight();
this.setLayoutParams(new Gallery.LayoutParams( this.setLayoutParams(new Gallery.LayoutParams(
parent.getWidth() / 100 * 85, new Double(parentWidth*0.85).intValue(),
parent.getHeight() parentHeight
)); ));
} }