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