Initial-Release
BIN
res/drawable-hdpi/bg.jpg
Normal file
|
After Width: | Height: | Size: 124 KiB |
BIN
res/drawable-hdpi/ic_action_autor.png
Normal file
|
After Width: | Height: | Size: 3.6 KiB |
BIN
res/drawable-hdpi/ic_action_exit.png
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
BIN
res/drawable-hdpi/ic_action_kategorie.png
Normal file
|
After Width: | Height: | Size: 4.6 KiB |
BIN
res/drawable-hdpi/ic_action_refresh.png
Normal file
|
After Width: | Height: | Size: 5.7 KiB |
BIN
res/drawable-hdpi/ic_action_search.png
Normal file
|
After Width: | Height: | Size: 5.2 KiB |
BIN
res/drawable-hdpi/ic_blank.png
Normal file
|
After Width: | Height: | Size: 976 B |
BIN
res/drawable-hdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 5.1 KiB |
BIN
res/drawable-ldpi/bg.jpg
Normal file
|
After Width: | Height: | Size: 23 KiB |
BIN
res/drawable-ldpi/ic_action_autor.png
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
res/drawable-ldpi/ic_action_exit.png
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
res/drawable-ldpi/ic_action_kategorie.png
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
res/drawable-ldpi/ic_action_refresh.png
Normal file
|
After Width: | Height: | Size: 4.0 KiB |
BIN
res/drawable-ldpi/ic_action_search.png
Normal file
|
After Width: | Height: | Size: 3.6 KiB |
BIN
res/drawable-ldpi/ic_blank.png
Normal file
|
After Width: | Height: | Size: 959 B |
BIN
res/drawable-ldpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
res/drawable-mdpi/bg.jpg
Normal file
|
After Width: | Height: | Size: 51 KiB |
BIN
res/drawable-mdpi/ic_action_autor.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
res/drawable-mdpi/ic_action_exit.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
res/drawable-mdpi/ic_action_kategorie.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
res/drawable-mdpi/ic_action_refresh.png
Normal file
|
After Width: | Height: | Size: 3.5 KiB |
BIN
res/drawable-mdpi/ic_action_search.png
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
BIN
res/drawable-mdpi/ic_blank.png
Normal file
|
After Width: | Height: | Size: 953 B |
BIN
res/drawable-mdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
BIN
res/drawable-xhdpi/bg.jpg
Normal file
|
After Width: | Height: | Size: 200 KiB |
BIN
res/drawable-xhdpi/ic_action_autor.png
Normal file
|
After Width: | Height: | Size: 5.1 KiB |
BIN
res/drawable-xhdpi/ic_action_exit.png
Normal file
|
After Width: | Height: | Size: 3.9 KiB |
BIN
res/drawable-xhdpi/ic_action_kategorie.png
Normal file
|
After Width: | Height: | Size: 6.3 KiB |
BIN
res/drawable-xhdpi/ic_action_refresh.png
Normal file
|
After Width: | Height: | Size: 8.1 KiB |
BIN
res/drawable-xhdpi/ic_action_search.png
Normal file
|
After Width: | Height: | Size: 7.4 KiB |
BIN
res/drawable-xhdpi/ic_blank.png
Normal file
|
After Width: | Height: | Size: 1009 B |
BIN
res/drawable-xhdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 7.6 KiB |
BIN
res/drawable-xxhdpi/bg.jpg
Normal file
|
After Width: | Height: | Size: 439 KiB |
BIN
res/drawable-xxhdpi/ic_action_autor.png
Normal file
|
After Width: | Height: | Size: 8.3 KiB |
BIN
res/drawable-xxhdpi/ic_action_exit.png
Normal file
|
After Width: | Height: | Size: 5.8 KiB |
BIN
res/drawable-xxhdpi/ic_action_kategorie.png
Normal file
|
After Width: | Height: | Size: 9.9 KiB |
BIN
res/drawable-xxhdpi/ic_action_refresh.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
res/drawable-xxhdpi/ic_action_search.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
res/drawable-xxhdpi/ic_blank.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
res/drawable-xxhdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
res/drawable-xxxhdpi/bg.jpg
Normal file
|
After Width: | Height: | Size: 643 KiB |
37
res/drawable/buttonshape.xml
Normal file
@@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_pressed="true" >
|
||||
<shape>
|
||||
<solid
|
||||
android:color="#a276eb" />
|
||||
<stroke
|
||||
android:width="1dp"
|
||||
android:color="#6a3ab2" />
|
||||
<corners
|
||||
android:radius="3dp" />
|
||||
<padding
|
||||
android:left="10dp"
|
||||
android:top="10dp"
|
||||
android:right="10dp"
|
||||
android:bottom="10dp" />
|
||||
</shape>
|
||||
</item>
|
||||
<item>
|
||||
<shape>
|
||||
<gradient
|
||||
android:startColor="#a276eb"
|
||||
android:endColor="#6a3ab2"
|
||||
android:angle="270" />
|
||||
<stroke
|
||||
android:width="1dp"
|
||||
android:color="#6a3ab2" />
|
||||
<corners
|
||||
android:radius="4dp" />
|
||||
<padding
|
||||
android:left="10dp"
|
||||
android:top="10dp"
|
||||
android:right="10dp"
|
||||
android:bottom="10dp" />
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
BIN
res/drawable/ic_action_autor.png
Normal file
|
After Width: | Height: | Size: 4.5 KiB |
BIN
res/drawable/ic_action_exit.png
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
res/drawable/ic_action_kategorie.png
Normal file
|
After Width: | Height: | Size: 4.8 KiB |
BIN
res/drawable/ic_action_refresh.png
Normal file
|
After Width: | Height: | Size: 6.4 KiB |
BIN
res/drawable/ic_action_search.png
Normal file
|
After Width: | Height: | Size: 6.8 KiB |
BIN
res/drawable/ic_blank.png
Normal file
|
After Width: | Height: | Size: 212 B |
7
res/drawable/layout_bg.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="#80FFFFFF"/>
|
||||
<stroke android:width="1dip" android:color="#B1BCBE" />
|
||||
<corners android:radius="3dip"/>
|
||||
<padding android:left="0dip" android:top="0dip" android:right="0dip" android:bottom="0dip" />
|
||||
</shape>
|
||||
8
res/drawable/list_row_bg.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<gradient
|
||||
android:startColor="@color/list_row_start_color"
|
||||
android:endColor="@color/list_row_end_color"
|
||||
android:angle="270" />
|
||||
</shape>
|
||||
10
res/drawable/list_row_bg_hover.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle" >
|
||||
|
||||
<gradient
|
||||
android:angle="270"
|
||||
android:endColor="@color/list_row_hover_end_color"
|
||||
android:startColor="@color/list_row_hover_start_color" />
|
||||
|
||||
</shape>
|
||||
8
res/drawable/list_row_selector.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item android:drawable="@drawable/list_row_bg" android:state_pressed="false" android:state_selected="false"/>
|
||||
<item android:drawable="@drawable/list_row_bg_hover" android:state_pressed="true"/>
|
||||
<item android:drawable="@drawable/list_row_bg_hover" android:state_pressed="false" android:state_selected="true"/>
|
||||
|
||||
</selector>
|
||||
16
res/layout/activity_autoren.xml
Normal file
@@ -0,0 +1,16 @@
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@drawable/bg"
|
||||
tools:context=".MainActivity">
|
||||
|
||||
<ListView
|
||||
android:id="@+id/list"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:divider="@color/list_divider"
|
||||
android:dividerHeight="1dp"
|
||||
android:listSelector="@drawable/list_row_selector" />
|
||||
|
||||
</RelativeLayout>
|
||||
16
res/layout/activity_kategorie.xml
Normal file
@@ -0,0 +1,16 @@
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@drawable/bg"
|
||||
tools:context=".MainActivity" >
|
||||
|
||||
<ListView
|
||||
android:id="@+id/list"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:divider="@color/list_divider"
|
||||
android:dividerHeight="1dp"
|
||||
android:listSelector="@drawable/list_row_selector" />
|
||||
|
||||
</RelativeLayout>
|
||||
16
res/layout/activity_main.xml
Normal file
@@ -0,0 +1,16 @@
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@drawable/bg"
|
||||
tools:context=".MainActivity" >
|
||||
|
||||
<ListView
|
||||
android:id="@+id/list"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:divider="@color/list_divider"
|
||||
android:dividerHeight="1dp"
|
||||
android:listSelector="@drawable/list_row_selector" />
|
||||
|
||||
</RelativeLayout>
|
||||
80
res/layout/activity_news.xml
Normal file
@@ -0,0 +1,80 @@
|
||||
<ScrollView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/android:list"
|
||||
android:layout_width="match_parent"
|
||||
android:background="@drawable/bg"
|
||||
android:layout_height="match_parent" >
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".MainActivity" >
|
||||
|
||||
<!-- ObjetcID -->
|
||||
<TextView
|
||||
android:id="@+id/objectid"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="1dip"
|
||||
android:visibility = "gone"
|
||||
android:textSize="@dimen/rating" />
|
||||
|
||||
<!-- Autoren Thumbnail Image -->
|
||||
<com.android.volley.toolbox.NetworkImageView
|
||||
android:id="@+id/news_image"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_marginTop="30dp"
|
||||
android:layout_marginBottom="30dp"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="80dp"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_below="@id/objectid"
|
||||
android:clickable="true"
|
||||
android:onClick="showImage"
|
||||
android:layout_marginRight="8dp" />
|
||||
|
||||
<!-- AutorenText -->
|
||||
<TextView
|
||||
android:id="@+id/news_title"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="30dp"
|
||||
android:textStyle="bold|italic"
|
||||
android:shadowColor="#ff797979"
|
||||
android:shadowDx="3"
|
||||
android:shadowDy="3"
|
||||
android:shadowRadius="1.5"
|
||||
android:layout_toRightOf="@+id/news_image"
|
||||
android:layout_below="@id/objectid"
|
||||
android:textSize="@dimen/title" />
|
||||
|
||||
</RelativeLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical|center_horizontal"
|
||||
android:background="@drawable/layout_bg"
|
||||
android:layout_margin="5dp"
|
||||
android:padding="5dp"
|
||||
android:orientation="horizontal">
|
||||
<TextView
|
||||
android:id="@+id/news_content"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:layout_marginLeft="15dp"
|
||||
android:layout_marginRight="15dp"
|
||||
android:layout_marginBottom="45dp"
|
||||
android:textSize="@dimen/rating" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</ScrollView>
|
||||
61
res/layout/activity_suchen.xml
Normal file
@@ -0,0 +1,61 @@
|
||||
<ScrollView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/android:list"
|
||||
android:layout_width="match_parent"
|
||||
android:background="@drawable/bg"
|
||||
android:layout_height="match_parent" >
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<!-- ObjetcID -->
|
||||
<TextView
|
||||
android:id="@+id/objectid"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="1dip"
|
||||
android:visibility = "gone"
|
||||
android:textSize="@dimen/rating" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical|center_horizontal"
|
||||
android:background="@drawable/layout_bg"
|
||||
android:layout_margin="5dp"
|
||||
android:padding="5dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
|
||||
<EditText
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/searchtext"
|
||||
android:hint="@string/searchlabel"
|
||||
android:layout_marginLeft="15dp"
|
||||
android:layout_marginRight="15dp" />
|
||||
</LinearLayout>
|
||||
|
||||
<Button
|
||||
android:id="@+id/suchen_button"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/button_suchen"
|
||||
android:layout_marginTop="20dp"
|
||||
android:layout_marginLeft="15dp"
|
||||
android:layout_marginRight="15dp"
|
||||
android:onClick="searchNow"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="15sp"
|
||||
android:background="@drawable/buttonshape"
|
||||
android:shadowColor="#A8A8A8"
|
||||
android:shadowDx="0"
|
||||
android:shadowDy="0"
|
||||
android:shadowRadius="5"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</ScrollView>
|
||||
16
res/layout/activity_suchenbyid.xml
Normal file
@@ -0,0 +1,16 @@
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@drawable/bg"
|
||||
tools:context=".MainActivity" >
|
||||
|
||||
<ListView
|
||||
android:id="@+id/list"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:divider="@color/list_divider"
|
||||
android:dividerHeight="1dp"
|
||||
android:listSelector="@drawable/list_row_selector" />
|
||||
|
||||
</RelativeLayout>
|
||||
205
res/layout/activity_zitat.xml
Normal file
@@ -0,0 +1,205 @@
|
||||
<ScrollView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/android:list"
|
||||
android:layout_width="match_parent"
|
||||
android:background="@drawable/bg"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:orientation="vertical">
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical|center_horizontal"
|
||||
android:background="@drawable/layout_bg"
|
||||
android:layout_margin="5dp"
|
||||
android:orientation="horizontal">
|
||||
<!-- Zitat -->
|
||||
<TextView
|
||||
android:id="@+id/zitat"
|
||||
android:layout_marginTop="30dp"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_marginRight="10dp"
|
||||
android:layout_marginBottom="30dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAlignment="center"
|
||||
android:textColor="#ff797979"
|
||||
android:gravity="center"
|
||||
android:textSize="@dimen/zitat"
|
||||
android:shadowColor="#000000"
|
||||
android:shadowDx="3"
|
||||
android:shadowDy="3"
|
||||
android:shadowRadius="1.5"
|
||||
android:textStyle="bold|italic" />
|
||||
|
||||
<!-- ObjetcID -->
|
||||
<TextView
|
||||
android:id="@+id/objectid"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="1dip"
|
||||
android:visibility = "gone"
|
||||
android:textSize="@dimen/rating" />
|
||||
|
||||
|
||||
<!-- AutorenID -->
|
||||
<TextView
|
||||
android:id="@+id/autoren_id"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="1dip"
|
||||
android:visibility = "gone"
|
||||
android:textSize="@dimen/rating" />
|
||||
|
||||
<!-- KategorieID -->
|
||||
<TextView
|
||||
android:id="@+id/kategorie_id"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="1dip"
|
||||
android:visibility = "gone"
|
||||
android:textSize="@dimen/rating" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical|center_horizontal"
|
||||
android:background="@drawable/layout_bg"
|
||||
android:layout_marginTop="15dp"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:layout_marginRight="5dp"
|
||||
android:paddingTop="10dp"
|
||||
android:paddingBottom="5dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".MainActivity">
|
||||
|
||||
<!-- Autoren Thumbnail Image -->
|
||||
<ImageView
|
||||
android:id="@+id/autoren_imagepic"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="80dp"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:clickable="true"
|
||||
android:onClick="showImage"
|
||||
android:layout_marginRight="8dp"
|
||||
/>
|
||||
|
||||
|
||||
<!-- AutorenText -->
|
||||
<TextView
|
||||
android:id="@+id/autoren_text"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textStyle="bold"
|
||||
android:layout_toRightOf="@+id/autoren_imagepic"
|
||||
android:textSize="@dimen/rating" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/autoren_beschreibung"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/autoren_text"
|
||||
android:layout_marginTop="5dp"
|
||||
android:layout_toRightOf="@+id/autoren_imagepic"
|
||||
android:textSize="@dimen/rating" />
|
||||
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical|center_horizontal"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:layout_marginRight="5dp"
|
||||
android:paddingTop="10dp"
|
||||
android:paddingBottom="10dp"
|
||||
android:background="@drawable/layout_bg"
|
||||
android:id="@+id/autoren_infoview"
|
||||
android:orientation="horizontal">
|
||||
<TextView
|
||||
android:id="@+id/autoren_imagequelle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textStyle="bold|italic"
|
||||
android:gravity="left"
|
||||
android:clickable="true"
|
||||
android:textSize="@dimen/quelle" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/autoren_moreinfo"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textStyle="bold|italic"
|
||||
android:clickable="true"
|
||||
android:gravity="right"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:textSize="@dimen/quelle" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical|center_horizontal"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:layout_marginRight="5dp"
|
||||
android:paddingTop="10dp"
|
||||
android:background="@drawable/layout_bg"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".MainActivity">
|
||||
|
||||
<!-- Kategorie Thumbnail Image -->
|
||||
<com.android.volley.toolbox.NetworkImageView
|
||||
android:id="@+id/kategorie_image"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_marginBottom="20dp"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="80dp"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_marginRight="8dp" />
|
||||
|
||||
<!-- KategorieText -->
|
||||
<TextView
|
||||
android:id="@+id/kategorie_text"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textStyle="bold"
|
||||
android:layout_toRightOf="@+id/kategorie_image"
|
||||
android:textSize="@dimen/rating" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/kategorie_beschreibung"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/kategorie_text"
|
||||
android:layout_marginTop="5dp"
|
||||
android:layout_toRightOf="@+id/kategorie_image"
|
||||
android:textSize="@dimen/rating" />
|
||||
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
225
res/layout/activity_zufallzitat.xml
Normal file
@@ -0,0 +1,225 @@
|
||||
<ScrollView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/android:list"
|
||||
android:layout_width="match_parent"
|
||||
android:background="@drawable/bg"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:orientation="vertical">
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical|center_horizontal"
|
||||
android:background="@drawable/layout_bg"
|
||||
android:layout_margin="5dp"
|
||||
android:orientation="horizontal">
|
||||
<!-- Zitat -->
|
||||
<TextView
|
||||
android:id="@+id/zitat"
|
||||
android:layout_marginTop="30dp"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_marginRight="10dp"
|
||||
android:layout_marginBottom="30dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAlignment="center"
|
||||
android:textColor="#ff797979"
|
||||
android:gravity="center"
|
||||
android:textSize="@dimen/zitat"
|
||||
android:shadowColor="#000000"
|
||||
android:shadowDx="3"
|
||||
android:shadowDy="3"
|
||||
android:shadowRadius="1.5"
|
||||
android:textStyle="bold|italic" />
|
||||
|
||||
<!-- ObjetcID -->
|
||||
<TextView
|
||||
android:id="@+id/objectid"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="1dip"
|
||||
android:visibility = "gone"
|
||||
android:textSize="@dimen/rating" />
|
||||
|
||||
|
||||
<!-- AutorenID -->
|
||||
<TextView
|
||||
android:id="@+id/autoren_id"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="1dip"
|
||||
android:visibility = "gone"
|
||||
android:textSize="@dimen/rating" />
|
||||
|
||||
<!-- KategorieID -->
|
||||
<TextView
|
||||
android:id="@+id/kategorie_id"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="1dip"
|
||||
android:visibility = "gone"
|
||||
android:textSize="@dimen/rating" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical|center_horizontal"
|
||||
android:background="@drawable/layout_bg"
|
||||
android:layout_marginTop="15dp"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:layout_marginRight="5dp"
|
||||
android:paddingTop="10dp"
|
||||
android:paddingBottom="5dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".MainActivity">
|
||||
|
||||
|
||||
<!-- Autoren Thumbnail Image -->
|
||||
<ImageView
|
||||
android:id="@+id/autoren_imagepic"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="80dp"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:clickable="true"
|
||||
android:onClick="showImage"
|
||||
android:layout_marginRight="8dp"
|
||||
/>
|
||||
|
||||
|
||||
<!-- AutorenText -->
|
||||
<TextView
|
||||
android:id="@+id/autoren_text"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textStyle="bold"
|
||||
android:layout_toRightOf="@+id/autoren_imagepic"
|
||||
android:textSize="@dimen/rating" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/autoren_beschreibung"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/autoren_text"
|
||||
android:layout_marginTop="5dp"
|
||||
android:layout_toRightOf="@+id/autoren_imagepic"
|
||||
android:textSize="@dimen/rating" />
|
||||
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical|center_horizontal"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:layout_marginRight="5dp"
|
||||
android:paddingTop="10dp"
|
||||
android:paddingBottom="10dp"
|
||||
android:background="@drawable/layout_bg"
|
||||
android:id="@+id/autoren_infoview"
|
||||
android:orientation="horizontal">
|
||||
<TextView
|
||||
android:id="@+id/autoren_imagequelle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textStyle="bold|italic"
|
||||
android:gravity="left"
|
||||
android:clickable="true"
|
||||
android:textSize="@dimen/quelle" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/autoren_moreinfo"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textStyle="bold|italic"
|
||||
android:clickable="true"
|
||||
android:gravity="right"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:textSize="@dimen/quelle" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical|center_horizontal"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:layout_marginRight="5dp"
|
||||
android:paddingTop="10dp"
|
||||
android:background="@drawable/layout_bg"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".MainActivity">
|
||||
|
||||
<!-- Kategorie Thumbnail Image -->
|
||||
<com.android.volley.toolbox.NetworkImageView
|
||||
android:id="@+id/kategorie_image"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:layout_marginBottom="20dp"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="80dp"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_marginRight="8dp" />
|
||||
|
||||
<!-- KategorieText -->
|
||||
<TextView
|
||||
android:id="@+id/kategorie_text"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textStyle="bold"
|
||||
android:layout_toRightOf="@+id/kategorie_image"
|
||||
android:textSize="@dimen/rating" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/kategorie_beschreibung"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/kategorie_text"
|
||||
android:layout_marginTop="5dp"
|
||||
android:layout_toRightOf="@+id/kategorie_image"
|
||||
android:textSize="@dimen/rating" />
|
||||
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<Button
|
||||
android:id="@+id/zitat_more_zitat"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/button_load_next_zitat"
|
||||
android:layout_below="@id/kategorie_image"
|
||||
android:layout_marginTop="15dp"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:layout_marginRight="5dp"
|
||||
android:onClick="loadNextZitat"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="15sp"
|
||||
android:background="@drawable/buttonshape"
|
||||
android:shadowColor="#A8A8A8"
|
||||
android:shadowDx="0"
|
||||
android:shadowDy="0"
|
||||
android:shadowRadius="5"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
61
res/layout/list_autoren.xml
Normal file
@@ -0,0 +1,61 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/list_row_selector"
|
||||
android:padding="8dp" >
|
||||
|
||||
<!-- Thumbnail Image -->
|
||||
<ImageView
|
||||
android:id="@+id/thumbnail"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="80dp"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_marginRight="8dp"/>
|
||||
|
||||
|
||||
<!-- Title -->
|
||||
<TextView
|
||||
android:id="@+id/title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignTop="@+id/thumbnail"
|
||||
android:layout_toRightOf="@+id/thumbnail"
|
||||
android:textSize="@dimen/zitatlist"
|
||||
android:textStyle="bold" />
|
||||
|
||||
|
||||
<!-- Beschreibung -->
|
||||
<TextView
|
||||
android:id="@+id/beschreibung"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/title"
|
||||
android:layout_marginTop="1dip"
|
||||
android:layout_toRightOf="@+id/thumbnail"
|
||||
android:textSize="@dimen/rating" />
|
||||
|
||||
<!-- ObjetcID -->
|
||||
<TextView
|
||||
android:id="@+id/objectid"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/beschreibung"
|
||||
android:layout_marginTop="1dip"
|
||||
android:layout_toRightOf="@+id/thumbnail"
|
||||
android:visibility = "gone"
|
||||
android:textSize="@dimen/rating" />
|
||||
|
||||
<!-- Anzahl -->
|
||||
<TextView
|
||||
android:id="@+id/anzahl"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/objectid"
|
||||
android:layout_marginTop="5dp"
|
||||
android:layout_toRightOf="@+id/thumbnail"
|
||||
android:textColor="@color/genre"
|
||||
android:textSize="@dimen/genre" />
|
||||
|
||||
|
||||
</RelativeLayout>
|
||||
71
res/layout/list_autorenbyid.xml
Normal file
@@ -0,0 +1,71 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/list_row_selector"
|
||||
android:padding="8dp" >
|
||||
|
||||
<!-- Thumbnail Image -->
|
||||
<com.android.volley.toolbox.NetworkImageView
|
||||
android:id="@+id/thumbnail"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="80dp"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_marginRight="8dp" />
|
||||
|
||||
<!-- Zitat -->
|
||||
<TextView
|
||||
android:id="@+id/zitat"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignTop="@+id/thumbnail"
|
||||
android:layout_toRightOf="@+id/thumbnail"
|
||||
android:textSize="@dimen/zitatlist"
|
||||
android:textStyle="bold" />
|
||||
|
||||
|
||||
<!-- Zitatfooter -->
|
||||
<TextView
|
||||
android:id="@+id/zitatfooter"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/zitat"
|
||||
android:layout_marginTop="5dp"
|
||||
android:layout_toRightOf="@+id/thumbnail"
|
||||
android:textColor="@color/genre"
|
||||
android:textSize="@dimen/genre" />
|
||||
|
||||
<!-- ObjetcID -->
|
||||
<TextView
|
||||
android:id="@+id/objectid"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/zitatfooter"
|
||||
android:layout_marginTop="1dip"
|
||||
android:layout_toRightOf="@+id/thumbnail"
|
||||
android:visibility = "gone"
|
||||
android:textSize="@dimen/rating" />
|
||||
|
||||
<!-- AutorenID -->
|
||||
<TextView
|
||||
android:id="@+id/autoren_id"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/objectid"
|
||||
android:layout_marginTop="1dip"
|
||||
android:layout_toRightOf="@+id/thumbnail"
|
||||
android:visibility = "gone"
|
||||
android:textSize="@dimen/rating" />
|
||||
|
||||
<!-- KategorieID -->
|
||||
<TextView
|
||||
android:id="@+id/kategorie_id"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/autoren_id"
|
||||
android:layout_marginTop="1dip"
|
||||
android:layout_toRightOf="@+id/thumbnail"
|
||||
android:visibility = "gone"
|
||||
android:textSize="@dimen/rating" />
|
||||
|
||||
</RelativeLayout>
|
||||
60
res/layout/list_kategorie.xml
Normal file
@@ -0,0 +1,60 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/list_row_selector"
|
||||
android:padding="8dp" >
|
||||
|
||||
<!-- Thumbnail Image -->
|
||||
<com.android.volley.toolbox.NetworkImageView
|
||||
android:id="@+id/thumbnail"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="80dp"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_marginRight="8dp" />
|
||||
|
||||
<!-- Title -->
|
||||
<TextView
|
||||
android:id="@+id/title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignTop="@+id/thumbnail"
|
||||
android:layout_toRightOf="@+id/thumbnail"
|
||||
android:textSize="@dimen/title"
|
||||
android:textStyle="bold" />
|
||||
|
||||
|
||||
<!-- Beschreibung -->
|
||||
<TextView
|
||||
android:id="@+id/beschreibung"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/title"
|
||||
android:layout_marginTop="1dip"
|
||||
android:layout_toRightOf="@+id/thumbnail"
|
||||
android:textSize="@dimen/rating" />
|
||||
|
||||
<!-- ObjetcID -->
|
||||
<TextView
|
||||
android:id="@+id/objectid"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/beschreibung"
|
||||
android:layout_marginTop="1dip"
|
||||
android:layout_toRightOf="@+id/thumbnail"
|
||||
android:visibility = "gone"
|
||||
android:textSize="@dimen/rating" />
|
||||
|
||||
<!-- Anzahl -->
|
||||
<TextView
|
||||
android:id="@+id/anzahl"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/objectid"
|
||||
android:layout_marginTop="5dp"
|
||||
android:layout_toRightOf="@+id/thumbnail"
|
||||
android:textColor="@color/genre"
|
||||
android:textSize="@dimen/genre" />
|
||||
|
||||
|
||||
</RelativeLayout>
|
||||
71
res/layout/list_kategoriebyid.xml
Normal file
@@ -0,0 +1,71 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/list_row_selector"
|
||||
android:padding="8dp" >
|
||||
|
||||
<!-- Thumbnail Image -->
|
||||
<com.android.volley.toolbox.NetworkImageView
|
||||
android:id="@+id/thumbnail"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="80dp"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_marginRight="8dp" />
|
||||
|
||||
<!-- Zitat -->
|
||||
<TextView
|
||||
android:id="@+id/zitat"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignTop="@+id/thumbnail"
|
||||
android:layout_toRightOf="@+id/thumbnail"
|
||||
android:textSize="@dimen/zitatlist"
|
||||
android:textStyle="bold" />
|
||||
|
||||
|
||||
<!-- Zitatfooter -->
|
||||
<TextView
|
||||
android:id="@+id/zitatfooter"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/zitat"
|
||||
android:layout_marginTop="5dp"
|
||||
android:layout_toRightOf="@+id/thumbnail"
|
||||
android:textColor="@color/genre"
|
||||
android:textSize="@dimen/genre" />
|
||||
|
||||
<!-- ObjetcID -->
|
||||
<TextView
|
||||
android:id="@+id/objectid"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/zitatfooter"
|
||||
android:layout_marginTop="1dip"
|
||||
android:layout_toRightOf="@+id/thumbnail"
|
||||
android:visibility = "gone"
|
||||
android:textSize="@dimen/rating" />
|
||||
|
||||
<!-- AutorenID -->
|
||||
<TextView
|
||||
android:id="@+id/autoren_id"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/objectid"
|
||||
android:layout_marginTop="1dip"
|
||||
android:layout_toRightOf="@+id/thumbnail"
|
||||
android:visibility = "gone"
|
||||
android:textSize="@dimen/rating" />
|
||||
|
||||
<!-- KategorieID -->
|
||||
<TextView
|
||||
android:id="@+id/kategorie_id"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/autoren_id"
|
||||
android:layout_marginTop="1dip"
|
||||
android:layout_toRightOf="@+id/thumbnail"
|
||||
android:visibility = "gone"
|
||||
android:textSize="@dimen/rating" />
|
||||
|
||||
</RelativeLayout>
|
||||
61
res/layout/list_mainmenue.xml
Normal file
@@ -0,0 +1,61 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/list_row_selector"
|
||||
android:padding="8dp" >
|
||||
|
||||
<!-- Thumbnail Image -->
|
||||
<com.android.volley.toolbox.NetworkImageView
|
||||
android:id="@+id/thumbnail"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="80dp"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_marginRight="8dp" />
|
||||
|
||||
<!-- Title -->
|
||||
<TextView
|
||||
android:id="@+id/title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignTop="@+id/thumbnail"
|
||||
android:layout_toRightOf="@+id/thumbnail"
|
||||
android:textSize="@dimen/title"
|
||||
android:textStyle="bold" />
|
||||
|
||||
|
||||
<!-- Beschreibung -->
|
||||
<TextView
|
||||
android:id="@+id/beschreibung"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/title"
|
||||
android:layout_marginTop="1dip"
|
||||
android:layout_toRightOf="@+id/thumbnail"
|
||||
android:textSize="@dimen/rating" />
|
||||
|
||||
<!-- ObjetcID -->
|
||||
<TextView
|
||||
android:id="@+id/objectid"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/beschreibung"
|
||||
android:layout_marginTop="1dip"
|
||||
android:layout_toRightOf="@+id/thumbnail"
|
||||
android:visibility = "gone"
|
||||
android:textSize="@dimen/rating" />
|
||||
|
||||
<!-- Anzahl -->
|
||||
<TextView
|
||||
android:id="@+id/anzahl"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/objectid"
|
||||
android:layout_marginTop="5dp"
|
||||
android:layout_toRightOf="@+id/thumbnail"
|
||||
android:textColor="@color/genre"
|
||||
android:visibility = "gone"
|
||||
android:textSize="@dimen/genre" />
|
||||
|
||||
|
||||
</RelativeLayout>
|
||||
57
res/layout/list_row.xml
Normal file
@@ -0,0 +1,57 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/list_row_selector"
|
||||
android:padding="8dp" >
|
||||
|
||||
<!-- Thumbnail Image -->
|
||||
<com.android.volley.toolbox.NetworkImageView
|
||||
android:id="@+id/thumbnail"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="80dp"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_marginRight="8dp" />
|
||||
|
||||
<!-- Movie Title -->
|
||||
<TextView
|
||||
android:id="@+id/title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignTop="@+id/thumbnail"
|
||||
android:layout_toRightOf="@+id/thumbnail"
|
||||
android:textSize="@dimen/title"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<!-- Rating -->
|
||||
<TextView
|
||||
android:id="@+id/rating"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/title"
|
||||
android:layout_marginTop="1dip"
|
||||
android:layout_toRightOf="@+id/thumbnail"
|
||||
android:textSize="@dimen/rating" />
|
||||
|
||||
<!-- Genre -->
|
||||
<TextView
|
||||
android:id="@+id/genre"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/rating"
|
||||
android:layout_marginTop="5dp"
|
||||
android:layout_toRightOf="@+id/thumbnail"
|
||||
android:textColor="@color/genre"
|
||||
android:textSize="@dimen/genre" />
|
||||
|
||||
<!-- Release Year -->
|
||||
<TextView
|
||||
android:id="@+id/releaseYear"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:textColor="@color/year"
|
||||
android:textSize="@dimen/year" />
|
||||
|
||||
</RelativeLayout>
|
||||
71
res/layout/list_suchenbyid.xml
Normal file
@@ -0,0 +1,71 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/list_row_selector"
|
||||
android:padding="8dp" >
|
||||
|
||||
<!-- Thumbnail Image -->
|
||||
<com.android.volley.toolbox.NetworkImageView
|
||||
android:id="@+id/thumbnail"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="80dp"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_marginRight="8dp" />
|
||||
|
||||
<!-- Zitat -->
|
||||
<TextView
|
||||
android:id="@+id/zitat"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignTop="@+id/thumbnail"
|
||||
android:layout_toRightOf="@+id/thumbnail"
|
||||
android:textSize="@dimen/zitatlist"
|
||||
android:textStyle="bold" />
|
||||
|
||||
|
||||
<!-- Zitatfooter -->
|
||||
<TextView
|
||||
android:id="@+id/zitatfooter"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/zitat"
|
||||
android:layout_marginTop="5dp"
|
||||
android:layout_toRightOf="@+id/thumbnail"
|
||||
android:textColor="@color/genre"
|
||||
android:textSize="@dimen/genre" />
|
||||
|
||||
<!-- ObjetcID -->
|
||||
<TextView
|
||||
android:id="@+id/objectid"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/zitatfooter"
|
||||
android:layout_marginTop="1dip"
|
||||
android:layout_toRightOf="@+id/thumbnail"
|
||||
android:visibility = "gone"
|
||||
android:textSize="@dimen/rating" />
|
||||
|
||||
<!-- AutorenID -->
|
||||
<TextView
|
||||
android:id="@+id/autoren_id"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/objectid"
|
||||
android:layout_marginTop="1dip"
|
||||
android:layout_toRightOf="@+id/thumbnail"
|
||||
android:visibility = "gone"
|
||||
android:textSize="@dimen/rating" />
|
||||
|
||||
<!-- KategorieID -->
|
||||
<TextView
|
||||
android:id="@+id/kategorie_id"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/autoren_id"
|
||||
android:layout_marginTop="1dip"
|
||||
android:layout_toRightOf="@+id/thumbnail"
|
||||
android:visibility = "gone"
|
||||
android:textSize="@dimen/rating" />
|
||||
|
||||
</RelativeLayout>
|
||||
38
res/menu/autor_menu.xml
Normal file
@@ -0,0 +1,38 @@
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
|
||||
<item
|
||||
android:id="@+id/action_search"
|
||||
android:orderInCategory="1"
|
||||
android:icon="@drawable/ic_action_search"
|
||||
android:showAsAction="always"
|
||||
android:title="@string/action_search"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/action_refresh"
|
||||
android:orderInCategory="2"
|
||||
android:icon="@drawable/ic_action_refresh"
|
||||
android:showAsAction="always"
|
||||
android:title="@string/action_refresh"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/action_kategorie"
|
||||
android:orderInCategory="3"
|
||||
android:icon="@drawable/ic_action_kategorie"
|
||||
android:showAsAction="never|withText"
|
||||
android:title="@string/action_kategorie"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/action_autoren"
|
||||
android:orderInCategory="4"
|
||||
android:icon="@drawable/ic_action_autor"
|
||||
android:showAsAction="never|withText"
|
||||
android:title="@string/action_autoren"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/action_quit"
|
||||
android:orderInCategory="5"
|
||||
android:icon="@drawable/ic_action_exit"
|
||||
android:showAsAction="never|withText"
|
||||
android:title="@string/action_quit"/>
|
||||
|
||||
</menu>
|
||||
38
res/menu/kategorie_menu.xml
Normal file
@@ -0,0 +1,38 @@
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
|
||||
<item
|
||||
android:id="@+id/action_search"
|
||||
android:orderInCategory="1"
|
||||
android:icon="@drawable/ic_action_search"
|
||||
android:showAsAction="always"
|
||||
android:title="@string/action_search"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/action_refresh"
|
||||
android:orderInCategory="2"
|
||||
android:icon="@drawable/ic_action_refresh"
|
||||
android:showAsAction="always"
|
||||
android:title="@string/action_refresh"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/action_kategorie"
|
||||
android:orderInCategory="3"
|
||||
android:icon="@drawable/ic_action_kategorie"
|
||||
android:showAsAction="never|withText"
|
||||
android:title="@string/action_kategorie"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/action_autoren"
|
||||
android:orderInCategory="4"
|
||||
android:icon="@drawable/ic_action_autor"
|
||||
android:showAsAction="never|withText"
|
||||
android:title="@string/action_autoren"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/action_quit"
|
||||
android:orderInCategory="5"
|
||||
android:icon="@drawable/ic_action_exit"
|
||||
android:showAsAction="never|withText"
|
||||
android:title="@string/action_quit"/>
|
||||
|
||||
</menu>
|
||||
17
res/menu/main_menu.xml
Normal file
@@ -0,0 +1,17 @@
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
|
||||
<item
|
||||
android:id="@+id/action_refresh"
|
||||
android:orderInCategory="1"
|
||||
android:showAsAction="always"
|
||||
android:icon="@drawable/ic_action_refresh"
|
||||
android:title="@string/action_refresh"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/action_quit"
|
||||
android:orderInCategory="2"
|
||||
android:showAsAction="never"
|
||||
android:icon="@drawable/ic_action_exit"
|
||||
android:title="@string/action_quit"/>
|
||||
|
||||
</menu>
|
||||
38
res/menu/news_menu.xml
Normal file
@@ -0,0 +1,38 @@
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
|
||||
<item
|
||||
android:id="@+id/action_search"
|
||||
android:orderInCategory="1"
|
||||
android:icon="@drawable/ic_action_search"
|
||||
android:showAsAction="always"
|
||||
android:title="@string/action_search"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/action_refresh"
|
||||
android:orderInCategory="2"
|
||||
android:icon="@drawable/ic_action_refresh"
|
||||
android:showAsAction="always"
|
||||
android:title="@string/action_refresh"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/action_kategorie"
|
||||
android:orderInCategory="3"
|
||||
android:icon="@drawable/ic_action_kategorie"
|
||||
android:showAsAction="never|withText"
|
||||
android:title="@string/action_kategorie"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/action_autoren"
|
||||
android:orderInCategory="4"
|
||||
android:icon="@drawable/ic_action_autor"
|
||||
android:showAsAction="never|withText"
|
||||
android:title="@string/action_autoren"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/action_quit"
|
||||
android:orderInCategory="5"
|
||||
android:icon="@drawable/ic_action_exit"
|
||||
android:showAsAction="never|withText"
|
||||
android:title="@string/action_quit"/>
|
||||
|
||||
</menu>
|
||||
24
res/menu/search_menu.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
|
||||
<item
|
||||
android:id="@+id/action_kategorie"
|
||||
android:orderInCategory="1"
|
||||
android:icon="@drawable/ic_action_kategorie"
|
||||
android:showAsAction="never|withText"
|
||||
android:title="@string/action_kategorie"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/action_autoren"
|
||||
android:orderInCategory="2"
|
||||
android:icon="@drawable/ic_action_autor"
|
||||
android:showAsAction="never|withText"
|
||||
android:title="@string/action_autoren"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/action_quit"
|
||||
android:orderInCategory="3"
|
||||
android:icon="@drawable/ic_action_exit"
|
||||
android:showAsAction="never|withText"
|
||||
android:title="@string/action_quit"/>
|
||||
|
||||
</menu>
|
||||
31
res/menu/zitat_menu.xml
Normal file
@@ -0,0 +1,31 @@
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_item_share"
|
||||
android:orderInCategory="1"
|
||||
android:showAsAction="always"
|
||||
android:title="Share"
|
||||
android:actionProviderClass="android.widget.ShareActionProvider" />
|
||||
|
||||
<item
|
||||
android:id="@+id/action_kategorie"
|
||||
android:orderInCategory="2"
|
||||
android:showAsAction="never"
|
||||
android:icon="@drawable/ic_action_kategorie"
|
||||
android:title="@string/action_kategorie"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/action_autoren"
|
||||
android:orderInCategory="3"
|
||||
android:showAsAction="never"
|
||||
android:icon="@drawable/ic_action_autor"
|
||||
android:title="@string/action_autoren"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/action_quit"
|
||||
android:orderInCategory="100"
|
||||
android:showAsAction="never"
|
||||
android:icon="@drawable/ic_action_exit"
|
||||
android:title="@string/action_quit"/>
|
||||
|
||||
</menu>
|
||||
8
res/values-sw600dp/dimens.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<resources>
|
||||
|
||||
<!--
|
||||
Customize dimensions originally defined in res/values/dimens.xml (such as
|
||||
screen margins) for sw600dp devices (e.g. 7" tablets) here.
|
||||
-->
|
||||
|
||||
</resources>
|
||||
9
res/values-sw720dp-land/dimens.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<resources>
|
||||
|
||||
<!--
|
||||
Customize dimensions originally defined in res/values/dimens.xml (such as
|
||||
screen margins) for sw720dp devices (e.g. 10" tablets) in landscape here.
|
||||
-->
|
||||
<dimen name="activity_horizontal_margin">128dp</dimen>
|
||||
|
||||
</resources>
|
||||
13
res/values-v11/styles.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<resources>
|
||||
|
||||
<!--
|
||||
Base application theme for API 11+. This theme completely replaces
|
||||
AppBaseTheme from res/values/styles.xml on API 11+ devices.
|
||||
-->
|
||||
<style name="AppBaseTheme" parent="android:Theme.Holo.Light">
|
||||
<!-- API 11 theme customizations can go here. -->
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
</resources>
|
||||
14
res/values-v14/styles.xml
Normal file
@@ -0,0 +1,14 @@
|
||||
<resources>
|
||||
|
||||
<!--
|
||||
Base application theme for API 14+. This theme completely replaces
|
||||
AppBaseTheme from BOTH res/values/styles.xml and
|
||||
res/values-v11/styles.xml on API 14+ devices.
|
||||
-->
|
||||
<style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar">
|
||||
<!-- API 14 theme customizations can go here. -->
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
</resources>
|
||||
12
res/values/colors.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<color name="genre">#666666</color>
|
||||
<color name="year">#888888</color>
|
||||
<color name="list_divider">#d9d9d9</color>
|
||||
<color name="list_row_start_color">#80ffffff</color>
|
||||
<color name="list_row_end_color">#80ffffff</color>
|
||||
<color name="list_row_hover_start_color">#80ebeef0</color>
|
||||
<color name="list_row_hover_end_color">#80ebeef0</color>
|
||||
|
||||
</resources>
|
||||
11
res/values/dimens.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<resources>
|
||||
|
||||
<dimen name="title">25dp</dimen>
|
||||
<dimen name="zitat">30dp</dimen>
|
||||
<dimen name="zitatlist">15dp</dimen>
|
||||
<dimen name="rating">15dip</dimen>
|
||||
<dimen name="genre">13dip</dimen>
|
||||
<dimen name="year">12dip</dimen>
|
||||
<dimen name="quelle">12dip</dimen>
|
||||
|
||||
</resources>
|
||||
30
res/values/strings.xml
Normal file
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<string name="app_name">Sapientia</string>
|
||||
|
||||
<string name="action_settings">Einstellungen</string>
|
||||
<string name="action_refresh">Aktualisieren</string>
|
||||
<string name="action_quit">Beenden</string>
|
||||
<string name="action_search">Suchen</string>
|
||||
<string name="action_kategorie">Kategorien</string>
|
||||
<string name="action_autoren">Autoren</string>
|
||||
|
||||
<string name="hello_world">Hello world!</string>
|
||||
<string name="title_kategorie_activity">Kategorien</string>
|
||||
<string name="title_kategoriebyid_activity">Kategorie-Inhalt</string>
|
||||
<string name="title_zitat_activity">Zitat</string>
|
||||
<string name="title_news_activity">News</string>
|
||||
<string name="title_autoren_activity">Autoren</string>
|
||||
<string name="button_load_more_news">Weitere News</string>
|
||||
<string name="title_suchen_activity">Suchen</string>
|
||||
<string name="button_suchen">Jetzt Suchen</string>
|
||||
<string name="button_load_next_zitat">Noch Eins...</string>
|
||||
<string name="searchlabel">Geben Sie einen Suchbegriff ein:</string>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</resources>
|
||||
28
res/values/styles.xml
Normal file
@@ -0,0 +1,28 @@
|
||||
<resources>
|
||||
|
||||
<!--
|
||||
Base application theme, dependent on API level. This theme is replaced
|
||||
by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
|
||||
-->
|
||||
<style name="AppBaseTheme" parent="android:Theme.Light">
|
||||
<!--
|
||||
Theme customizations available in newer API levels can go in
|
||||
res/values-vXX/styles.xml, while customizations related to
|
||||
backward-compatibility can go here.
|
||||
-->
|
||||
</style>
|
||||
|
||||
<!-- Application theme. -->
|
||||
<style name="AppTheme" parent="AppBaseTheme">
|
||||
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
|
||||
</style>
|
||||
|
||||
<style name="Divider">
|
||||
<item name="android:layout_width">match_parent</item>
|
||||
<item name="android:layout_height">1dp</item>
|
||||
<item name="android:color">#ABA19FA3</item>
|
||||
<item name="android:background">#ABA19FA3</item>
|
||||
<item name="android:layout_marginBottom">1dp</item>
|
||||
<item name="android:layout_marginTop">1dp</item>
|
||||
</style>
|
||||
</resources>
|
||||