diff options
Diffstat (limited to 'org.fox.ttrss/src/main/res/layout')
24 files changed, 1487 insertions, 0 deletions
diff --git a/org.fox.ttrss/src/main/res/layout/article_fragment.xml b/org.fox.ttrss/src/main/res/layout/article_fragment.xml new file mode 100644 index 00000000..56d42d89 --- /dev/null +++ b/org.fox.ttrss/src/main/res/layout/article_fragment.xml @@ -0,0 +1,103 @@ +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/article_fragment" + android:layout_width="fill_parent" + android:layout_height="match_parent" + android:background="?articleBackground"> + + <org.fox.ttrss.util.NoChildFocusScrollView + android:id="@+id/article_scrollview" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:fillViewport="false" > + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" > + + <LinearLayout + android:id="@+id/article_header" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:paddingBottom="6dp" > + + <TextView + android:id="@+id/title" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_weight="1" + android:paddingTop="4dp" + android:text="My simple headline" + android:textColor="?linkColor" + android:textSize="18sp" /> + + <TextView + android:id="@+id/comments" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_weight="1" + android:fontFamily="sans-serif-light" + android:paddingTop="4dp" + android:text="24 comments" + android:textColor="?linkColor" + android:textSize="12sp" /> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_weight="1" + android:paddingTop="4dp" + android:paddingBottom="4dp" > + + <TextView + android:id="@+id/tags" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="1" + android:ellipsize="middle" + android:singleLine="true" + android:fontFamily="sans-serif-light" + android:text="Example Feed" + android:textColor="?headlineSecondaryTextColor" + android:textSize="12sp" /> + + <TextView + android:id="@+id/date" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="0" + android:gravity="right" + android:layout_marginLeft="10dp" + android:fontFamily="sans-serif-light" + android:text="Jan 01, 12:00" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="?headlineSecondaryTextColor" + android:textSize="12sp" /> + + </LinearLayout> + + </LinearLayout> + + <TextView + android:id="@+id/note" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_weight="1" + android:background="?articleNoteBackground" + android:textColor="?articleNoteTextColor" + android:textSize="13sp" + android:padding="2dp" + android:layout_marginBottom="6dp" + android:text="[Article note]" /> + + <org.fox.ttrss.util.LessBrokenWebView + android:id="@+id/content" + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + + </LinearLayout> + </org.fox.ttrss.util.NoChildFocusScrollView> + + +</RelativeLayout>
\ No newline at end of file diff --git a/org.fox.ttrss/src/main/res/layout/article_fragment_compat.xml b/org.fox.ttrss/src/main/res/layout/article_fragment_compat.xml new file mode 100644 index 00000000..01264703 --- /dev/null +++ b/org.fox.ttrss/src/main/res/layout/article_fragment_compat.xml @@ -0,0 +1,79 @@ +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/article_fragment" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:background="?articleBackground" + android:orientation="vertical" + android:padding="5sp" > + + <org.fox.ttrss.util.TitleWebView + android:id="@+id/content" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_weight="1"> + + <LinearLayout + android:id="@+id/article_header" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_weight="0" + android:orientation="vertical" + android:paddingBottom="2dp" > + + <TextView + android:id="@+id/title" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_weight="1" + android:paddingBottom="4dp" + android:text="My simple headline" + android:textColor="?linkColor" + android:textSize="18sp" /> + + <TextView + android:id="@+id/comments" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_weight="1" + android:gravity="right" + android:text="24 comments" + android:fontFamily="sans-serif-light" + android:textColor="?linkColor" + android:textSize="12sp" /> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingBottom="4dp" + android:layout_weight="1" > + + <TextView + android:id="@+id/tags" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="0.5" + android:ellipsize="end" + android:singleLine="true" + android:text="Example Feed" + android:fontFamily="sans-serif-light" + android:textColor="?headlineSecondaryTextColor" + android:textSize="12sp" /> + + <TextView + android:id="@+id/date" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="0.5" + android:gravity="right" + android:text="Jan 01, 12:00" + android:fontFamily="sans-serif-light" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="?headlineSecondaryTextColor" + android:textSize="12sp" /> + </LinearLayout> + </LinearLayout> + + + </org.fox.ttrss.util.TitleWebView> + +</LinearLayout>
\ No newline at end of file diff --git a/org.fox.ttrss/src/main/res/layout/article_pager.xml b/org.fox.ttrss/src/main/res/layout/article_pager.xml new file mode 100644 index 00000000..fd5fa057 --- /dev/null +++ b/org.fox.ttrss/src/main/res/layout/article_pager.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/article_pager_container" + android:layout_width="fill_parent" + android:layout_height="fill_parent" > + + <android.support.v4.view.ViewPager + android:id="@+id/article_pager" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_alignParentTop="true" > + + </android.support.v4.view.ViewPager> + + <com.viewpagerindicator.UnderlinePageIndicator + android:id="@+id/article_titles" + android:layout_width="fill_parent" + android:layout_height="2dp" + android:layout_alignParentBottom="true" + android:layout_alignParentLeft="true" /> + +</RelativeLayout>
\ No newline at end of file diff --git a/org.fox.ttrss/src/main/res/layout/cats_fragment.xml b/org.fox.ttrss/src/main/res/layout/cats_fragment.xml new file mode 100644 index 00000000..4216ebb2 --- /dev/null +++ b/org.fox.ttrss/src/main/res/layout/cats_fragment.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="utf-8"?> +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/cats_fragment.xml" + android:layout_width="match_parent" + android:layout_height="fill_parent" > + + <LinearLayout + android:id="@+id/loading_container" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:gravity="center" > + + <TextView + android:id="@+id/loading_message" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceLarge" > + </TextView> + </LinearLayout> + + <android.support.v4.widget.SwipeRefreshLayout + android:id="@+id/feeds_swipe_container" + android:layout_width="match_parent" + android:layout_height="match_parent" > + + <ListView + android:id="@+id/feeds" + android:layoutAnimation="@anim/layout_feeds" + android:layout_width="match_parent" + android:layout_height="match_parent" > + </ListView> + </android.support.v4.widget.SwipeRefreshLayout> + + <TextView + android:id="@+id/no_feeds" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:text="@string/no_feeds" + android:textAppearance="?android:attr/textAppearanceLarge" + android:visibility="invisible" > + </TextView> + +</FrameLayout>
\ No newline at end of file diff --git a/org.fox.ttrss/src/main/res/layout/dummy_fragment.xml b/org.fox.ttrss/src/main/res/layout/dummy_fragment.xml new file mode 100644 index 00000000..dd1e9876 --- /dev/null +++ b/org.fox.ttrss/src/main/res/layout/dummy_fragment.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="utf-8"?> +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/dummy_fragment" + android:layout_width="fill_parent" + android:layout_height="fill_parent" > + +</FrameLayout>
\ No newline at end of file diff --git a/org.fox.ttrss/src/main/res/layout/feeds.xml b/org.fox.ttrss/src/main/res/layout/feeds.xml new file mode 100644 index 00000000..8af9c50d --- /dev/null +++ b/org.fox.ttrss/src/main/res/layout/feeds.xml @@ -0,0 +1,29 @@ +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/main" + android:fitsSystemWindows="true" + android:orientation="vertical" + android:layout_width="fill_parent" + android:layout_height="fill_parent" > + + <LinearLayout + android:id="@+id/loading_container" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:gravity="center" + android:visibility="gone" > + + <TextView + android:id="@+id/loading_message" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceLarge" /> + </LinearLayout> + + <FrameLayout + android:id="@+id/feeds_fragment" + android:background="?smallScreenBackground" + android:layout_width="match_parent" + android:layout_height="match_parent" > + </FrameLayout> + +</LinearLayout>
\ No newline at end of file diff --git a/org.fox.ttrss/src/main/res/layout/feeds_fragment.xml b/org.fox.ttrss/src/main/res/layout/feeds_fragment.xml new file mode 100644 index 00000000..b57f0bac --- /dev/null +++ b/org.fox.ttrss/src/main/res/layout/feeds_fragment.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="utf-8"?> +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/feeds_fragment" + android:layout_width="match_parent" + android:layout_height="fill_parent" > + + <LinearLayout + android:id="@+id/loading_container" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:gravity="center" > + + <TextView + android:id="@+id/loading_message" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceLarge" > + </TextView> + </LinearLayout> + + <android.support.v4.widget.SwipeRefreshLayout + android:id="@+id/feeds_swipe_container" + android:layout_width="match_parent" + android:layout_height="match_parent" > + + <ListView + android:id="@+id/feeds" + android:layoutAnimation="@anim/layout_feeds" + android:layout_width="match_parent" + android:layout_height="match_parent" > + </ListView> + </android.support.v4.widget.SwipeRefreshLayout> + + <TextView + android:id="@+id/no_feeds" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:text="@string/no_feeds" + android:textAppearance="?android:attr/textAppearanceLarge" + android:visibility="invisible" > + </TextView> + +</FrameLayout>
\ No newline at end of file diff --git a/org.fox.ttrss/src/main/res/layout/feeds_row.xml b/org.fox.ttrss/src/main/res/layout/feeds_row.xml new file mode 100644 index 00000000..9424fde8 --- /dev/null +++ b/org.fox.ttrss/src/main/res/layout/feeds_row.xml @@ -0,0 +1,64 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/feeds_row" + android:layout_width="match_parent" + android:layout_height="?android:attr/listPreferredItemHeight" + android:descendantFocusability="blocksDescendants" + android:gravity="center_vertical" + android:orientation="horizontal" + android:paddingBottom="10dip" + android:paddingLeft="8dip" + android:paddingRight="8dip" + android:paddingTop="10dip" > + + <ImageView + android:id="@+id/icon" + android:layout_width="20dp" + android:layout_height="20dp" + android:layout_weight="0" + android:scaleType="fitXY" + android:src="@drawable/ic_unpublished" /> + + <TextView + android:id="@+id/title" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:layout_weight="1" + android:ellipsize="end" + android:paddingLeft="8dip" + android:singleLine="true" + android:text="{FEED}" + android:textColor="?feedlistTextColor" + android:textSize="18dip" /> + + <TextView + android:id="@+id/unread_counter" + android:layout_width="45dp" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:layout_marginRight="6dp" + android:layout_weight="0" + android:background="?attr/unreadCounterBackground" + android:gravity="center" + android:paddingBottom="4dp" + android:paddingLeft="4dp" + android:paddingRight="4dp" + android:paddingTop="4dp" + android:singleLine="true" + android:text="3200" + android:textColor="?unreadCounterColor" + android:textSize="12sp" + android:textStyle="bold" /> + + <ImageButton + android:id="@+id/feed_menu_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="0" + android:background="@null" + android:paddingLeft="8dp" + android:paddingRight="4dp" + android:src="@drawable/ic_action_overflow" /> + +</LinearLayout>
\ No newline at end of file diff --git a/org.fox.ttrss/src/main/res/layout/feeds_row_selected.xml b/org.fox.ttrss/src/main/res/layout/feeds_row_selected.xml new file mode 100644 index 00000000..674e9f23 --- /dev/null +++ b/org.fox.ttrss/src/main/res/layout/feeds_row_selected.xml @@ -0,0 +1,65 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/feeds_row" + android:layout_width="match_parent" + android:layout_height="?android:attr/listPreferredItemHeight" + android:background="?feedsSelectedBackground" + android:descendantFocusability="blocksDescendants" + android:gravity="center_vertical" + android:orientation="horizontal" + android:paddingBottom="10dip" + android:paddingLeft="8dip" + android:paddingRight="8dip" + android:paddingTop="10dip" > + + <ImageView + android:id="@+id/icon" + android:layout_width="20dp" + android:layout_height="20dp" + android:layout_weight="0" + android:scaleType="fitXY" + android:src="@drawable/ic_unpublished" /> + + <TextView + android:id="@+id/title" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:layout_weight="1" + android:ellipsize="end" + android:paddingLeft="8dip" + android:singleLine="true" + android:text="{FEED}" + android:textColor="?feedlistSelectedTextColor" + android:textSize="18dip" /> + + <TextView + android:id="@+id/unread_counter" + android:layout_width="45dp" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:layout_marginRight="6dp" + android:layout_weight="0" + android:background="?attr/unreadSelectedCounterBackground" + android:gravity="center" + android:paddingBottom="4dp" + android:paddingLeft="4dp" + android:paddingRight="4dp" + android:paddingTop="4dp" + android:singleLine="true" + android:text="3200" + android:textColor="?unreadCounterColor" + android:textSize="12sp" + android:textStyle="bold" /> + + <ImageButton + android:id="@+id/feed_menu_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="0" + android:background="@null" + android:paddingLeft="8dp" + android:paddingRight="4dp" + android:src="@drawable/ic_action_overflow" /> + +</LinearLayout>
\ No newline at end of file diff --git a/org.fox.ttrss/src/main/res/layout/headlines.xml b/org.fox.ttrss/src/main/res/layout/headlines.xml new file mode 100644 index 00000000..4e9bb566 --- /dev/null +++ b/org.fox.ttrss/src/main/res/layout/headlines.xml @@ -0,0 +1,29 @@ +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/headlines" + android:fitsSystemWindows="true" + android:orientation="vertical" + android:layout_width="fill_parent" + android:layout_height="fill_parent" > + + <LinearLayout + android:id="@+id/loading_container" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:gravity="center" + android:visibility="gone" > + + <TextView + android:id="@+id/loading_message" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceLarge" /> + </LinearLayout> + + <FrameLayout + android:id="@+id/headlines_fragment" + android:background="?smallScreenBackground" + android:layout_width="match_parent" + android:layout_height="match_parent" > + </FrameLayout> + +</LinearLayout>
\ No newline at end of file diff --git a/org.fox.ttrss/src/main/res/layout/headlines_articles.xml b/org.fox.ttrss/src/main/res/layout/headlines_articles.xml new file mode 100644 index 00000000..27895b38 --- /dev/null +++ b/org.fox.ttrss/src/main/res/layout/headlines_articles.xml @@ -0,0 +1,50 @@ +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/headlines" + android:fitsSystemWindows="true" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical" > + + <LinearLayout + android:id="@+id/loading_container" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="?loadingBackground" + android:gravity="center" + android:orientation="vertical" + android:visibility="visible" > + + <TextView + android:id="@+id/loading_message" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center_horizontal" + android:text="@string/loading_message" + android:textAppearance="?android:attr/textAppearanceLarge" /> + </LinearLayout> + + <LinearLayout + android:id="@+id/fragment_container" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:baselineAligned="false" + android:orientation="horizontal" > + + <FrameLayout + android:id="@+id/headlines_fragment" + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="0" + android:background="?feedlistBackground" > + </FrameLayout> + + <FrameLayout + android:id="@+id/article_fragment" + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="1" + android:background="?articleBackground" > + </FrameLayout> + </LinearLayout> + +</LinearLayout>
\ No newline at end of file diff --git a/org.fox.ttrss/src/main/res/layout/headlines_fragment.xml b/org.fox.ttrss/src/main/res/layout/headlines_fragment.xml new file mode 100644 index 00000000..63f7f856 --- /dev/null +++ b/org.fox.ttrss/src/main/res/layout/headlines_fragment.xml @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="utf-8"?> +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/headlines_fragment" + android:layout_width="fill_parent" + android:layout_height="fill_parent"> + + <android.support.v4.widget.SwipeRefreshLayout + android:id="@+id/headlines_swipe_container" + android:layout_width="match_parent" + android:layout_height="match_parent" > + + <ListView + android:id="@+id/headlines" + android:layout_width="match_parent" + android:layoutAnimation="@anim/layout_headline" + android:dividerHeight="0dp" + android:divider="@null" + android:paddingTop="3dp" + android:layout_height="match_parent" > + </ListView> + </android.support.v4.widget.SwipeRefreshLayout> + + <LinearLayout + android:id="@+id/loading_container" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:gravity="center" > + + <TextView + android:id="@+id/loading_message" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceLarge" > + </TextView> + </LinearLayout> + + <TextView + android:id="@+id/no_headlines" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:text="@string/no_headlines" + android:textAppearance="?android:attr/textAppearanceLarge" + android:visibility="invisible" > + </TextView> + +</FrameLayout>
\ No newline at end of file diff --git a/org.fox.ttrss/src/main/res/layout/headlines_row.xml b/org.fox.ttrss/src/main/res/layout/headlines_row.xml new file mode 100644 index 00000000..52f17ba3 --- /dev/null +++ b/org.fox.ttrss/src/main/res/layout/headlines_row.xml @@ -0,0 +1,162 @@ +<?xml version="1.0" encoding="utf-8"?> +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:id="@+id/headlines_row" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:paddingBottom="3dp" + android:paddingLeft="6dp" + android:paddingRight="6dp" + android:paddingTop="3dp" + tools:ignore="HardcodedText" > + + <LinearLayout + android:id="@+id/inner_row" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="?headlineNormalBackground" + android:orientation="vertical" + android:paddingBottom="2dp" + android:paddingLeft="6dp" + android:paddingRight="6dp" + android:paddingTop="6dp" > + + <LinearLayout + android:id="@+id/linearLayout6" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center_vertical" + android:orientation="horizontal" > + + <TextView + android:id="@+id/title" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_weight="1" + android:gravity="center_vertical" + android:singleLine="false" + android:text="Sample entry title" + android:textColor="?headlineTextColor" + android:textSize="18sp" /> + </LinearLayout> + + <LinearLayout + android:id="@+id/linearLayout1" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_weight="1" + android:gravity="center_vertical" + android:orientation="horizontal" + android:paddingTop="3dp" > + + <TextView + android:id="@+id/feed_title" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="1" + android:ellipsize="end" + android:gravity="center_vertical" + android:singleLine="true" + android:text="Example Feed" + android:fontFamily="sans-serif-light" + android:textColor="?headlineSecondaryTextColor" + android:textSize="12sp" /> + + <TextView + android:id="@+id/date" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="1" + android:gravity="right|center_vertical" + android:text="Jan 01, 12:00" + android:fontFamily="sans-serif-light" + android:textColor="?headlineSecondaryTextColor" + android:textSize="12sp" /> + </LinearLayout> + + <FrameLayout + android:paddingTop="3dp" + android:id="@+id/flavorImageHolder" + android:layout_width="match_parent" + android:layout_gravity="center" + android:layout_height="wrap_content" > + + <org.fox.ttrss.util.EnlargingImageView + android:id="@+id/flavor_image" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:adjustViewBounds="true" + android:background="@drawable/flavor_image_border" + android:scaleType="fitCenter" + android:cropToPadding="true" + android:padding="2dp" + android:visibility="gone" /> + </FrameLayout> + + <TextView + android:id="@+id/excerpt" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:paddingTop="3dp" + android:lineSpacingExtra="2sp" + android:text="Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." + android:textColor="?headlineExcerptTextColor" + android:textSize="13sp" /> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center_vertical" > + + <CheckBox + android:id="@+id/selected" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="0" + android:focusable="false" /> + + <TextView + android:id="@+id/author" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_weight="1" + android:ellipsize="end" + android:gravity="center_vertical" + android:singleLine="true" + android:text="by Author" + android:fontFamily="sans-serif-light" + android:textStyle="italic" + android:textColor="?headlineSecondaryTextColor" + android:textSize="12sp" /> + + <ImageView + android:id="@+id/marked" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginRight="8dp" + android:layout_weight="0" + android:clickable="true" + android:src="@drawable/ic_star_empty" /> + + <ImageView + android:id="@+id/published" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginRight="6dp" + android:layout_weight="0" + android:clickable="true" + android:src="@drawable/ic_unpublished" /> + + <ImageView + android:id="@+id/article_menu_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="0" + android:paddingLeft="6dp" + android:paddingRight="6dp" + android:src="@drawable/ic_action_overflow" /> + </LinearLayout> + </LinearLayout> + +</FrameLayout>
\ No newline at end of file diff --git a/org.fox.ttrss/src/main/res/layout/headlines_row_loadmore.xml b/org.fox.ttrss/src/main/res/layout/headlines_row_loadmore.xml new file mode 100644 index 00000000..c8f41688 --- /dev/null +++ b/org.fox.ttrss/src/main/res/layout/headlines_row_loadmore.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/headlines_row_loadmore" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:background="?headlineNormalBackground" + android:gravity="center" + android:padding="5dp" + android:orientation="horizontal" > + + + <ProgressBar + android:id="@+id/loadmore_progress" + style="?android:attr/progressBarStyleSmall" + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> + + <TextView + android:paddingLeft="6dp" + android:id="@+id/loadmore_label" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textColor="?headlineTextColor" + android:text="@string/loading_message" /> + +</LinearLayout>
\ No newline at end of file diff --git a/org.fox.ttrss/src/main/res/layout/headlines_row_selected.xml b/org.fox.ttrss/src/main/res/layout/headlines_row_selected.xml new file mode 100644 index 00000000..149ff555 --- /dev/null +++ b/org.fox.ttrss/src/main/res/layout/headlines_row_selected.xml @@ -0,0 +1,160 @@ +<?xml version="1.0" encoding="utf-8"?> +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/headlines_row" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:paddingBottom="3dp" + android:paddingLeft="6dp" + android:paddingRight="6dp" + android:paddingTop="3dp" > + + <LinearLayout + android:id="@+id/inner_row" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="?headlineSelectedBackground" + android:orientation="vertical" + android:paddingBottom="2dp" + android:paddingLeft="6dp" + android:paddingRight="6dp" + android:paddingTop="6dp" > + + <LinearLayout + android:id="@+id/linearLayout6" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center_vertical" + android:orientation="horizontal" > + + <TextView + android:id="@+id/title" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_weight="1" + android:gravity="center_vertical" + android:singleLine="false" + android:text="Sample entry title" + android:textColor="?attr/headlineSelectedTextColor" + android:textSize="18sp" /> + </LinearLayout> + + <LinearLayout + android:id="@+id/linearLayout1" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_weight="1" + android:gravity="center_vertical" + android:orientation="horizontal" + android:paddingTop="3dp" > + + <TextView + android:id="@+id/feed_title" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="1" + android:ellipsize="end" + android:gravity="center_vertical" + android:singleLine="true" + android:fontFamily="sans-serif-light" + android:text="Example Feed" + android:textColor="?headlineSelectedSecondaryTextColor" + android:textSize="12sp" /> + + <TextView + android:id="@+id/date" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="1" + android:gravity="right|center_vertical" + android:text="Jan 01, 12:00" + android:fontFamily="sans-serif-light" + android:textColor="?headlineSelectedSecondaryTextColor" + android:textSize="12sp" /> + </LinearLayout> + + <FrameLayout + android:paddingTop="3dp" + android:id="@+id/flavorImageHolder" + android:layout_width="match_parent" + android:layout_gravity="center" + android:layout_height="wrap_content" > + + <org.fox.ttrss.util.EnlargingImageView + android:id="@+id/flavor_image" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:adjustViewBounds="true" + android:background="@drawable/flavor_image_border" + android:scaleType="fitCenter" + android:cropToPadding="true" + android:padding="2dp" + android:visibility="gone" /> + </FrameLayout> + + <TextView + android:id="@+id/excerpt" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:paddingTop="3dp" + android:lineSpacingExtra="2sp" + android:text="Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." + android:textColor="?headlineSelectedExcerptTextColor" + android:textSize="13sp" /> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center_vertical" > + + <CheckBox + android:id="@+id/selected" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="0" + android:focusable="false" /> + + <TextView + android:id="@+id/author" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_weight="1" + android:ellipsize="end" + android:gravity="center_vertical" + android:singleLine="true" + android:text="by Author" + android:fontFamily="sans-serif-light" + android:textStyle="italic" + android:textColor="?headlineSelectedSecondaryTextColor" + android:textSize="12sp" /> + + <ImageView + android:id="@+id/marked" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginRight="8dp" + android:layout_weight="0" + android:clickable="true" + android:src="@drawable/ic_star_empty" /> + + <ImageView + android:id="@+id/published" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginRight="6dp" + android:layout_weight="0" + android:clickable="true" + android:src="@drawable/ic_unpublished" /> + + <ImageView + android:id="@+id/article_menu_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="0" + android:paddingLeft="6dp" + android:paddingRight="6dp" + android:src="@drawable/ic_action_overflow" /> + </LinearLayout> + </LinearLayout> + +</FrameLayout>
\ No newline at end of file diff --git a/org.fox.ttrss/src/main/res/layout/headlines_row_selected_unread.xml b/org.fox.ttrss/src/main/res/layout/headlines_row_selected_unread.xml new file mode 100644 index 00000000..833c09e2 --- /dev/null +++ b/org.fox.ttrss/src/main/res/layout/headlines_row_selected_unread.xml @@ -0,0 +1,161 @@ +<?xml version="1.0" encoding="utf-8"?> +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/headlines_row" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:paddingBottom="3dp" + android:paddingLeft="6dp" + android:paddingRight="6dp" + android:paddingTop="3dp" > + + <LinearLayout + android:id="@+id/inner_row" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="?headlineSelectedBackground" + android:orientation="vertical" + android:paddingBottom="2dp" + android:paddingLeft="6dp" + android:paddingRight="6dp" + android:paddingTop="6dp" > + + <LinearLayout + android:id="@+id/linearLayout6" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center_vertical" + android:orientation="horizontal" > + + <TextView + android:id="@+id/title" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_weight="1" + android:gravity="center_vertical" + android:singleLine="false" + android:text="Sample entry title" + android:textColor="?headlineSelectedTextColor" + android:textSize="18sp" + android:textStyle="bold" /> + </LinearLayout> + + <LinearLayout + android:id="@+id/linearLayout1" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_weight="1" + android:gravity="center_vertical" + android:orientation="horizontal" + android:paddingTop="3dp" > + + <TextView + android:id="@+id/feed_title" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="1" + android:ellipsize="end" + android:gravity="center_vertical" + android:singleLine="true" + android:text="Example Feed" + android:fontFamily="sans-serif-light" + android:textColor="?headlineSelectedSecondaryTextColor" + android:textSize="12sp" /> + + <TextView + android:id="@+id/date" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="1" + android:gravity="right|center_vertical" + android:fontFamily="sans-serif-light" + android:text="Jan 01, 12:00" + android:textColor="?headlineSelectedSecondaryTextColor" + android:textSize="12sp" /> + </LinearLayout> + + <FrameLayout + android:paddingTop="3dp" + android:id="@+id/flavorImageHolder" + android:layout_width="match_parent" + android:layout_gravity="center" + android:layout_height="wrap_content" > + + <org.fox.ttrss.util.EnlargingImageView + android:id="@+id/flavor_image" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:adjustViewBounds="true" + android:background="@drawable/flavor_image_border" + android:scaleType="fitCenter" + android:cropToPadding="true" + android:padding="2dp" + android:visibility="gone" /> + </FrameLayout> + + <TextView + android:id="@+id/excerpt" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:paddingTop="3dp" + android:lineSpacingExtra="2sp" + android:text="Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." + android:textColor="?headlineSelectedExcerptTextColor" + android:textSize="13sp" /> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center_vertical" > + + <CheckBox + android:id="@+id/selected" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="0" + android:focusable="false" /> + + <TextView + android:id="@+id/author" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_weight="1" + android:ellipsize="end" + android:gravity="center_vertical" + android:singleLine="true" + android:text="by Author" + android:fontFamily="sans-serif-light" + android:textStyle="italic" + android:textColor="?headlineSelectedSecondaryTextColor" + android:textSize="12sp" /> + + <ImageView + android:id="@+id/marked" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginRight="8dp" + android:layout_weight="0" + android:clickable="true" + android:src="@drawable/ic_star_empty" /> + + <ImageView + android:id="@+id/published" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginRight="6dp" + android:layout_weight="0" + android:clickable="true" + android:src="@drawable/ic_unpublished" /> + + <ImageView + android:id="@+id/article_menu_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="0" + android:paddingLeft="6dp" + android:paddingRight="6dp" + android:src="@drawable/ic_action_overflow" /> + </LinearLayout> + </LinearLayout> + +</FrameLayout> diff --git a/org.fox.ttrss/src/main/res/layout/headlines_row_unread.xml b/org.fox.ttrss/src/main/res/layout/headlines_row_unread.xml new file mode 100644 index 00000000..b5e9d3f6 --- /dev/null +++ b/org.fox.ttrss/src/main/res/layout/headlines_row_unread.xml @@ -0,0 +1,160 @@ +<?xml version="1.0" encoding="utf-8"?> +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/headlines_row" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:paddingBottom="3dp" + android:paddingLeft="6dp" + android:paddingRight="6dp" + android:paddingTop="3dp" > + + <LinearLayout + android:id="@+id/inner_row" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="?headlineUnreadBackground" + android:orientation="vertical" + android:paddingBottom="2dp" + android:paddingLeft="6dp" + android:paddingRight="6dp" + android:paddingTop="6dp" > + + <LinearLayout + android:id="@+id/linearLayout6" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center_vertical" + android:orientation="horizontal" > + + <TextView + android:id="@+id/title" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_weight="1" + android:gravity="center_vertical" + android:singleLine="false" + android:text="Sample entry title" + android:textColor="?headlineUnreadTextColor" + android:textSize="18sp" + android:textStyle="bold" /> + </LinearLayout> + + <LinearLayout + android:id="@+id/linearLayout1" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_weight="1" + android:gravity="center_vertical" + android:orientation="horizontal" + android:paddingTop="3dp" > + + <TextView + android:id="@+id/feed_title" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="1" + android:ellipsize="end" + android:fontFamily="sans-serif-light" + android:gravity="center_vertical" + android:singleLine="true" + android:text="Example Feed" + android:textColor="?headlineSecondaryTextColor" + android:textSize="12sp" /> + + <TextView + android:id="@+id/date" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="1" + android:fontFamily="sans-serif-light" + android:gravity="right|center_vertical" + android:text="Jan 01, 12:00" + android:textColor="?headlineSecondaryTextColor" + android:textSize="12sp" /> + </LinearLayout> + + <FrameLayout + android:id="@+id/flavorImageHolder" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:padding="10dp" > + + <org.fox.ttrss.util.EnlargingImageView + android:id="@+id/flavor_image" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:adjustViewBounds="true" + android:background="@drawable/flavor_image_border" + android:scaleType="fitCenter" + android:cropToPadding="true" + android:padding="2dp" + android:visibility="gone" /> + </FrameLayout> + + <TextView + android:id="@+id/excerpt" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:lineSpacingExtra="2sp" + android:paddingTop="3dp" + android:text="Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." + android:textColor="?headlineExcerptTextColor" + android:textSize="13sp" /> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center_vertical" > + + <CheckBox + android:id="@+id/selected" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="0" + android:focusable="false" /> + + <TextView + android:id="@+id/author" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_weight="1" + android:ellipsize="end" + android:fontFamily="sans-serif-light" + android:gravity="center_vertical" + android:singleLine="true" + android:text="by Author" + android:textColor="?headlineSecondaryTextColor" + android:textSize="12sp" + android:textStyle="italic" /> + + <ImageView + android:id="@+id/marked" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginRight="8dp" + android:layout_weight="0" + android:clickable="true" + android:src="@drawable/ic_star_empty" /> + + <ImageView + android:id="@+id/published" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginRight="6dp" + android:layout_weight="0" + android:clickable="true" + android:src="@drawable/ic_unpublished" /> + + <ImageView + android:id="@+id/article_menu_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="0" + android:paddingLeft="6dp" + android:paddingRight="6dp" + android:src="@drawable/ic_action_overflow" /> + </LinearLayout> + </LinearLayout> + +</FrameLayout>
\ No newline at end of file diff --git a/org.fox.ttrss/src/main/res/layout/loading_fragment.xml b/org.fox.ttrss/src/main/res/layout/loading_fragment.xml new file mode 100644 index 00000000..b9b3e977 --- /dev/null +++ b/org.fox.ttrss/src/main/res/layout/loading_fragment.xml @@ -0,0 +1,14 @@ + + <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent" > + + + <ProgressBar + android:id="@+id/progress" + style="?android:attr/progressBarStyleLarge" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" /> + + </FrameLayout> diff --git a/org.fox.ttrss/src/main/res/layout/login.xml b/org.fox.ttrss/src/main/res/layout/login.xml new file mode 100644 index 00000000..2cfc44b1 --- /dev/null +++ b/org.fox.ttrss/src/main/res/layout/login.xml @@ -0,0 +1,15 @@ +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/loading_container" + android:layout_width="fill_parent" + android:fitsSystemWindows="true" + android:gravity="center" + android:layout_height="fill_parent" > + + <TextView + android:id="@+id/loading_message" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center_horizontal" + android:text="@string/loading_message" /> + +</LinearLayout>
\ No newline at end of file diff --git a/org.fox.ttrss/src/main/res/layout/select_font_size_dialog.xml b/org.fox.ttrss/src/main/res/layout/select_font_size_dialog.xml new file mode 100644 index 00000000..f77cc151 --- /dev/null +++ b/org.fox.ttrss/src/main/res/layout/select_font_size_dialog.xml @@ -0,0 +1,22 @@ +<LinearLayout 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:orientation="vertical" > + + <TextView + android:id="@+id/text_progress" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="6dip" + android:gravity="center_horizontal" > + </TextView> + + <SeekBar + android:id="@+id/seek_bar" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginBottom="6dip" + android:layout_marginTop="6dip" /> + +</LinearLayout>
\ No newline at end of file diff --git a/org.fox.ttrss/src/main/res/layout/share.xml b/org.fox.ttrss/src/main/res/layout/share.xml new file mode 100644 index 00000000..dfd09003 --- /dev/null +++ b/org.fox.ttrss/src/main/res/layout/share.xml @@ -0,0 +1,55 @@ +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/main" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:padding="5dp" > + + <EditText + android:id="@+id/title" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentLeft="true" + android:layout_alignParentRight="true" + android:layout_alignParentTop="true" + android:ems="10" + android:hint="@string/share_title_hint" + android:singleLine="true" /> + + <EditText + android:id="@+id/url" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignLeft="@+id/title" + android:layout_alignParentRight="true" + android:layout_below="@+id/title" + android:ems="10" + android:hint="@string/share_url_hint" + android:singleLine="true" /> + + + <EditText + android:id="@+id/content" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentLeft="true" + android:layout_alignRight="@+id/url" + android:layout_below="@+id/url" + android:ems="10" + android:hint="@string/share_content_hint" + android:inputType="textMultiLine" + android:maxLines="3" > + + <requestFocus /> + </EditText> + + + <Button + android:id="@+id/share_button" + android:layout_width="100dp" + android:layout_height="wrap_content" + android:layout_alignParentLeft="true" + android:layout_alignRight="@+id/content" + android:layout_below="@+id/content" + android:text="@string/share_share_button" /> + +</RelativeLayout>
\ No newline at end of file diff --git a/org.fox.ttrss/src/main/res/layout/subscribe.xml b/org.fox.ttrss/src/main/res/layout/subscribe.xml new file mode 100644 index 00000000..8daa1169 --- /dev/null +++ b/org.fox.ttrss/src/main/res/layout/subscribe.xml @@ -0,0 +1,51 @@ +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/main" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:padding="5dp" > + + <EditText + android:id="@+id/feed_url" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentLeft="true" + android:layout_alignParentRight="true" + android:ems="10" + android:hint="@string/feed_url" + android:inputType="textUri" + android:maxLines="3" > + + <requestFocus /> + </EditText> + + <Spinner + android:id="@+id/category_spinner" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignLeft="@+id/feed_url" + android:layout_alignParentRight="true" + android:layout_below="@+id/feed_url" /> + + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignLeft="@+id/category_spinner" + android:layout_alignRight="@+id/category_spinner" + android:layout_below="@+id/category_spinner" > + + <Button + android:id="@+id/cats_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="0.5" + android:text="Update categories" /> + + <Button + android:id="@+id/subscribe_button" + android:layout_width="wrap_content" + android:layout_weight="0.5" + android:layout_height="wrap_content" + android:text="@string/subscribe_to_feed" /> + </LinearLayout> + +</RelativeLayout>
\ No newline at end of file diff --git a/org.fox.ttrss/src/main/res/layout/tasker_settings.xml b/org.fox.ttrss/src/main/res/layout/tasker_settings.xml new file mode 100644 index 00000000..efdd76ab --- /dev/null +++ b/org.fox.ttrss/src/main/res/layout/tasker_settings.xml @@ -0,0 +1,36 @@ +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/main" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:padding="5dp" > + + <Button + android:id="@+id/close_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:layout_centerHorizontal="true" + android:text="@string/tasker_save_and_close" /> + + <RadioGroup + android:id="@+id/taskerActions" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentRight="true" + android:layout_alignParentTop="true" > + + <RadioButton + android:id="@+id/actionDownload" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:checked="true" + android:text="@string/download_articles_and_go_offline" /> + + <RadioButton + android:id="@+id/actionUpload" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/synchronize_read_articles_and_go_online" /> + </RadioGroup> + +</RelativeLayout>
\ No newline at end of file diff --git a/org.fox.ttrss/src/main/res/layout/widget_small.xml b/org.fox.ttrss/src/main/res/layout/widget_small.xml new file mode 100644 index 00000000..e8e68a4e --- /dev/null +++ b/org.fox.ttrss/src/main/res/layout/widget_small.xml @@ -0,0 +1,42 @@ +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/widget_main" + android:layout_width="match_parent" + android:layout_height="fill_parent" > + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" > + + <ImageView + android:id="@+id/imageView1" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_horizontal" + android:paddingTop="2dp" + android:src="@drawable/icon" /> + + <TextView + android:id="@+id/counter" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_horizontal" + android:gravity="center" + android:text="-1" + android:shadowColor="#cc000000" + android:shadowDx="0" + android:shadowDy="3" + android:shadowRadius="3" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="@android:color/primary_text_dark" /> + + </LinearLayout> + + <ProgressBar + android:id="@+id/progress" + style="?android:attr/progressBarStyleLarge" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:visibility="gone" /> + +</FrameLayout>
\ No newline at end of file |