1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-26 02:42:16 -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:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_margin="0dp"
android:layout_margin="0px"
android:unselectedAlpha="100"
android:spacing="5dp"
android:unselectedAlpha="100"/>
android:padding="0dp" />
</ViewSwitcher>
<org.yaaic.view.ConversationSwitcher
android:id="@+id/dots"

View File

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

View File

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