mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-12-23 16:08:48 -05:00
Rounded corners for conversation views
This commit is contained in:
parent
da1a11fca0
commit
c88322a922
30
res/layout/rounded.xml
Normal file
30
res/layout/rounded.xml
Normal file
@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Yaaic - Yet Another Android IRC Client
|
||||
|
||||
Copyright 2009-2010 Sebastian Kaspari
|
||||
|
||||
This file is part of Yaaic.
|
||||
|
||||
Yaaic is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Yaaic is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Yaaic. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
<shape
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<corners
|
||||
android:bottomRightRadius="10dp"
|
||||
android:bottomLeftRadius="10dp"
|
||||
android:topLeftRadius="10dp"
|
||||
android:topRightRadius="10dp" />
|
||||
</shape>
|
@ -24,6 +24,7 @@ import java.util.Collections;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
import org.yaaic.R;
|
||||
import org.yaaic.model.Conversation;
|
||||
import org.yaaic.view.MessageListView;
|
||||
|
||||
@ -200,7 +201,7 @@ public class DeckAdapter extends BaseAdapter
|
||||
parent.getWidth() / 100 * 85,
|
||||
parent.getHeight() / 100 * 95
|
||||
));
|
||||
list.setBackgroundColor(0xff222222);
|
||||
list.setBackgroundResource(R.layout.rounded);
|
||||
list.setPadding(5, 5, 5, 5);
|
||||
list.setVerticalFadingEdgeEnabled(false);
|
||||
list.setScrollBarStyle(ListView.SCROLLBARS_OUTSIDE_INSET);
|
||||
|
Loading…
Reference in New Issue
Block a user