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:
parent
7563437343
commit
b49ead73ad
@ -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"
|
||||
|
@ -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()
|
||||
));
|
||||
|
||||
|
@ -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
|
||||
));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user